Current releases publish Debian packages, Arch Linux packages, an OCI image
archive, this user documentation package with the matching OpenAPI
specification, and rust-gvm-api-sbom.tar.gz with its .sha256 checksum. The
SBOM archive contains CycloneDX 1.6 JSON and XML for all seven workspace
packages plus a machine-readable sbomqs-results.json; every JSON score is at
least 8.3 under sbomqs 2.1.4.
Verify the checksum with sha256sum --check rust-gvm-api-sbom.tar.gz.sha256.
Maintainers and source users can additionally run this from a matching checkout:
python3 -B scripts/verify_sbom_release.py \
rust-gvm-api-sbom.tar.gz \
rust-gvm-api-sbom.tar.gz.sha256The archive does not claim dependency completeness, synthesize CPEs, or contain embedded CycloneDX signatures or external attestations; the separate checksum is not an embedded signature.
Choose the package or container form that matches your environment.
A working installation needs:
- a reachable gvmd instance
- a gateway configuration that points to the gvmd socket
- valid gvmd user credentials for the people or systems calling the API
The gateway is a separate service in front of gvmd. It does not replace gvmd.
Packaged installs use:
- example config:
/etc/gvm-gateway/gvm-gateway.toml.example - active config:
/etc/gvm-gateway/gvm-gateway.toml - shipped example in this documentation package:
package-config.example.toml
The package does not create the active config automatically. Copy the example file to the active path and then adjust the values for your deployment.
Container-oriented deployments can start from the settings shown in the shipped container example config:
container-config.example.toml
In a normal container setup the gateway listens on 0.0.0.0:8080 and assumes
it is running behind a TLS-terminating proxy.
Configuration is loaded in this order: built-in defaults, the selected config
file, environment variables, then the supported --bind CLI override. Use
--config <path> to select a file; otherwise the packaged runtime looks for
/etc/gvm-gateway/gvm-gateway.toml and silently uses defaults when that file is
absent. Unknown TOML keys are ignored by the current Technology Preview parser,
so check names carefully.
bindHTTP listener address for the gateway, for example127.0.0.1:8080.gvmd_endpointUnix socket endpoint for gvmd. Current releases expect a Unix socket path such asunix:///run/gvmd/gvmd.sock.shutdown_drain_timeout_secsMaximum time to wait for in-flight requests during graceful shutdown. The built-in default is 30 seconds.
transport_security_modeOne of:disabled: serve plain HTTP intentionallyterminated_by_proxy: serve plain HTTP behind a TLS-terminating proxynative: serve HTTPS directly from the gateway
tls_certificate_pathRequired whentransport_security_mode = "native".tls_private_key_pathRequired whentransport_security_mode = "native".
If transport_security_mode is disabled or terminated_by_proxy, TLS file
paths must not be set.
session_idle_timeout_secsMaximum idle time for a gateway session before it expires.session_max_globalMaximum number of active sessions across all users. Set to0to disable the limit.session_max_per_userMaximum number of active sessions for one user. Set to0to disable the limit.
local_log_outputLocal log sink. Supported values:stdoutjournald
otlp_endpointOptional OTLP trace export endpoint.telemetry_service_nameOpenTelemetryservice.name.telemetry_service_namespaceOpenTelemetryservice.namespace.telemetry_deployment_environmentOpenTelemetrydeployment.environment.telemetry_service_instance_idOpenTelemetryservice.instance.id.
cors_allowed_originsAllowed browser origins for CORS.rate_limit_window_secsWindow size for REST rate limiting.rate_limit_global_per_windowTotal request budget per window. Set to0to disable that limit.rate_limit_subject_per_windowPer-subject request budget per window. Set to0to disable that limit.trusted_proxy_cidrsProxy source CIDRs whose forwarded client IPs may be trusted.
Every file setting has an environment equivalent:
| File setting | Environment variable |
|---|---|
bind |
GVM_GATEWAY_BIND |
gvmd_endpoint |
GVM_GATEWAY_GVMD_ENDPOINT |
shutdown_drain_timeout_secs |
GVM_GATEWAY_SHUTDOWN_DRAIN_TIMEOUT_SECS |
session_idle_timeout_secs |
GVM_GATEWAY_SESSION_IDLE_TIMEOUT_SECS |
session_max_global |
GVM_GATEWAY_SESSION_MAX_GLOBAL |
session_max_per_user |
GVM_GATEWAY_SESSION_MAX_PER_USER |
transport_security_mode |
GVM_GATEWAY_TRANSPORT_SECURITY_MODE |
tls_certificate_path |
GVM_GATEWAY_TLS_CERTIFICATE_PATH |
tls_private_key_path |
GVM_GATEWAY_TLS_PRIVATE_KEY_PATH |
local_log_output |
GVM_GATEWAY_LOCAL_LOG_OUTPUT |
otlp_endpoint |
GVM_GATEWAY_OTLP_ENDPOINT |
telemetry_service_name |
GVM_GATEWAY_TELEMETRY_SERVICE_NAME |
telemetry_service_namespace |
GVM_GATEWAY_TELEMETRY_SERVICE_NAMESPACE |
telemetry_deployment_environment |
GVM_GATEWAY_TELEMETRY_DEPLOYMENT_ENVIRONMENT |
telemetry_service_instance_id |
GVM_GATEWAY_TELEMETRY_SERVICE_INSTANCE_ID |
cors_allowed_origins |
GVM_GATEWAY_CORS_ALLOWED_ORIGINS |
rate_limit_window_secs |
GVM_GATEWAY_RATE_LIMIT_WINDOW_SECS |
rate_limit_global_per_window |
GVM_GATEWAY_RATE_LIMIT_GLOBAL_PER_WINDOW |
rate_limit_subject_per_window |
GVM_GATEWAY_RATE_LIMIT_SUBJECT_PER_WINDOW |
trusted_proxy_cidrs |
GVM_GATEWAY_TRUSTED_PROXY_CIDRS |
The gateway supports two practical authentication patterns:
- session-based access:
- create a session with
POST /gvm/public/v1/sessionusing HTTP Basic auth - reuse the returned bearer token on later requests
- create a session with
- request-scoped HTTP Basic auth:
- for endpoints that allow it, the gateway can authenticate the request directly from Basic credentials instead of reusing a previously created session
For scripts, automation, and multi-step workflows, session-based access is the
normal choice because it avoids sending the username and password on every
request. GET and DELETE /gvm/public/v1/session require the bearer token for the
session being inspected or removed.
Operational probes:
/gvm/health/gvm/ready
Versioned REST API:
/gvm/public/v1/...
OpenAPI document exposed by the running service:
GET /gvm/public/v1/openapi.json
Browser documentation:
GET /gvm/public/v1/docs
This operational UI is outside the REST API contract. It uses the generated
/gvm/public/v1/openapi.json document as its source of truth and loads the
repository-bundled Redoc 2.5.3 asset from the gateway. The route's Content
Security Policy permits scripts and contract requests only from the gateway
itself, so browsers do not need outbound network access to render it.
The running gateway derives /gvm/public/v1/openapi.json from its instrumented Axum
router. Release documentation packages contain the matching curated OpenAPI
files under api/rest/. Contract tests compare the generated and curated
documents so their paths, operations, parameters, request bodies, responses,
headers, media types, and schemas stay aligned.
GET /gvm/public/v1/version reports two distinct values:
apiVersionis the REST contract and package version. It matches the top-level OpenAPIinfo.versionfor that release.gmpVersionis the protocol version reported by the connected gvmd backend.
The REST representation is backed by typed rust-gvm requests and responses. GMP XML is an internal backend protocol and is never part of the public HTTP contract.
See REST API reference for shared request/error semantics and the complete route-family map.