novagateway

novagateway

Every flag the Gateway reads, with its environment variable and default.

novagateway serves Nova's HTTP and SSE API to internet clients and reaches the cluster over gRPC. This page lists every flag, checked against novagateway --help. Each flag also reads an environment variable, and a flag set on the command line wins; there is no config file. The Gateway reads its flags once, at start, so a change needs a restart; only the fleet credential file is read again while it runs. Gateway shows how to deploy it, and Gateway and read plans how it works.

novagateway [global options]

Listener and the cluster

Change these to point the Gateway at the cluster and to turn on bucket host names.

  • One --addr is enough; more are fallbacks. Redirects send the Gateway to each node's advertised address, which must resolve and route from where it runs.
  • With --fleet-addr, the Gateway relays to the nodes' fleet listener and falls back to --addr while that listener is unreachable or refuses its credential, trying it again every 30 s. Under --auth jwt it needs --fleet-credential-file. Under --auth basic, the fleet listener admits only the operator login, so leave --fleet-addr unset. nova_gateway_fleet_fallbacks_total counts each fallback by reason, and nova_gateway_fleet_credential_remaining_seconds shows how long the credential has left.
  • --domain turns on bucket hosts: a request to {bucket}.b.{location}.{domain} is that bucket's. The door, {location}.{domain}, the bare domain, and every other host stay path-style. --domain is repeatable, and each domain names the same buckets. To move to a new domain, list both, then remove the old one once clients have moved.
--listenNOVAGATEWAY_LISTENstringDefault:8080
HTTP listen address.
--addrNOVAGATEWAY_ADDRSstring, repeatable
A novad address; one suffices, more are fallbacks.
--fleet-addrNOVAGATEWAY_FLEET_ADDRSstring, repeatable
The nodes' fleet listener, preferred over --addr.
--fleet-credential-fileNOVAGATEWAY_FLEET_CREDENTIAL_FILEstring
File holding the Gateway's fleet credential, a nova:gateway token, shown beside every relayed token and read again within 10 s of a change.
--domainNOVAGATEWAY_DOMAINSstring, repeatable
A DNS name the deployment owns, such as nova.example; turns on bucket hosts beneath it.
--metrics-listenNOVAGATEWAY_METRICS_LISTENstringDefault:9090
Prometheus /metrics address; empty turns it off.

TLS termination

Change these to terminate TLS at the Gateway. Give both files for TLS 1.2 or newer; with neither, it serves plaintext behind a load balancer that terminates TLS. One without the other stops it at start. The certificate must cover each door and its bucket wildcard, *.b.{door}.

--tls-certNOVAGATEWAY_TLS_CERTstring
PEM certificate that turns on TLS termination.
--tls-keyNOVAGATEWAY_TLS_KEYstring
PEM private key for --tls-cert.

Edge checks and browsers

Change these to check tokens at the edge and to admit browsers. The Gateway always forwards the caller's token, and Nova checks it again. With a JWT source set, the Gateway also checks each request first: a missing or invalid token gets 401, and a token whose scope does not cover the action, bucket, and key gets 403. Public keys are enough. Choose one source. --jwt-issuer, --jwt-audience, and --enforce-limits need a source, or the Gateway stops at start. No browser origin is allowed unless listed.

--jwt-public-keysNOVAGATEWAY_JWT_PUBLIC_KEYSstring
Public JWKS JSON for edge verification.
--jwt-public-keys-fileNOVAGATEWAY_JWT_PUBLIC_KEYS_FILEstring
Public JWKS file for edge verification.
--jwt-jwks-urlNOVAGATEWAY_JWT_JWKS_URLstring
Remote JWKS URL for edge verification.
--jwt-oidc-issuerNOVAGATEWAY_JWT_OIDC_ISSUERstring
OIDC issuer for edge verification.
--jwt-issuerNOVAGATEWAY_JWT_ISSUERstringDefaultunchecked
Required JWT issuer.
--jwt-audienceNOVAGATEWAY_JWT_AUDIENCEstringDefaultunchecked
Required JWT audience.
--enforce-limitsNOVAGATEWAY_ENFORCE_LIMITSDefaultfalse
Enforce the verified nova_aux limits, per Gateway instance.
--cors-originNOVAGATEWAY_CORS_ORIGINstring, repeatable
An exact browser origin to allow.

TLS to Nova

Change these when the nodes' listeners use TLS. Outbound TLS is separate from the Gateway's own certificate. A CA bundle or a client certificate pair also turns outbound TLS on.

--cluster-tlsNOVAGATEWAY_CLUSTER_TLSDefaultfalse
Verify TLS on connections to Nova with the system roots.
--cluster-tls-caNOVAGATEWAY_CLUSTER_TLS_CAstring
CA bundle verifying Nova; turns on outbound TLS.
--cluster-tls-certNOVAGATEWAY_CLUSTER_TLS_CERTstring
Client certificate for a node listener that requires mutual TLS.
--cluster-tls-keyNOVAGATEWAY_CLUSTER_TLS_KEYstring
Private key for the client certificate.

Batch bounds and ingress

Change these whenever the nodes' own flags change, to the same values. The Gateway checks a posted append or queue send against the batch bounds before it forwards it, and sizes request bodies and session frames by them. A record bound above the batch bound, or a negative value, stops it at start. A producer session through the Gateway follows the serving node's own bounds.

--max-record-bytesNOVAGATEWAY_MAX_RECORD_BYTESintDefault0, which takes 1 MiB
Byte cap on one record, as the nodes' --max-record-bytes.
--max-batch-bytesNOVAGATEWAY_MAX_BATCH_BYTESintDefault0, which takes 1 MiB
Byte cap on one append batch, as the nodes' --max-batch-bytes.
--max-batch-recordsNOVAGATEWAY_MAX_BATCH_RECORDSintDefault0, which takes 1000
Record cap on one append batch, as the nodes' --max-batch-records.
--ingress-progressNOVAGATEWAY_INGRESS_PROGRESSdurationDefault0s, which takes 10s
A request body that sends nothing this long is cut off, as the nodes' --ingress-progress.
--ingress-max-waitNOVAGATEWAY_INGRESS_MAX_WAITdurationDefault0s, which takes 30s
The longest a posted body may take to read, as the nodes' --ingress-max-wait. A credential that expires sooner ends the read at its expiry.

Reading from object storage

Change these to turn off direct reads or to let the Gateway fetch raw plans itself. With --serve-plan, the Gateway asks a node for a read plan and fetches stored history and subscription backlogs from object storage. Only raw plans need --storage-bucket and read-only storage credentials; presigned plans work without them. The Gateway needs no cluster membership, coordination access, or peer credentials. The byte budgets take a positive integer with an optional KiB, MiB, or GiB. Raise --fetch-inflight when nova_gateway_fetch_wait_seconds grows and nova_gateway_fetch_inflight_bytes sits at nova_gateway_fetch_limit_bytes; raise --footer-cache-bytes when nova_gateway_footercache_evictions_total climbs with the misses. Each budget costs its size in memory.

--serve-planNOVAGATEWAY_SERVE_PLANDefaulttrue
Serve stored history from object storage; false routes every read through the nodes.
--storage-bucketNOVAGATEWAY_STORAGE_BUCKETstring
Bucket for raw plans, fetched with the Gateway's own storage identity; empty routes raw plans through the nodes.
--storage-endpointNOVAGATEWAY_STORAGE_ENDPOINTstringDefaultAWS
Custom S3 endpoint for --storage-bucket.
--storage-regionNOVAGATEWAY_STORAGE_REGIONstring
Region for --storage-bucket.
--storage-path-styleNOVAGATEWAY_STORAGE_PATH_STYLEDefaultfalse
Path-style addressing for --storage-endpoint, for most non-AWS stores.
--fetch-inflightNOVAGATEWAY_FETCH_INFLIGHTstringDefault64MiB
Bytes in flight across every vended fetch; when full, responses wait.
--footer-cache-bytesNOVAGATEWAY_FOOTER_CACHE_BYTESstringDefault32MiB
Decoded-footer cache budget.

Object cache

Change these to route the Gateway's fetches through the object cache. Use the nodes' instance list, so both warm the same instances. A failed cache fetch goes direct, and an invalid list stops the Gateway at start.

--object-cache-instancesNOVAGATEWAY_OBJECT_CACHE_INSTANCESstring
Cache instance URLs, comma-separated http://host:port; empty fetches directly.
--object-cache-load-factorNOVAGATEWAY_OBJECT_CACHE_LOAD_FACTORfloatDefault1.25
Bounded-load ceiling over the mean in-flight claims per instance; must exceed 1.
--object-cache-connect-budgetNOVAGATEWAY_OBJECT_CACHE_CONNECT_BUDGETdurationDefault1s
Dial budget for one cache attempt; past it the fetch goes direct.
--object-cache-first-byte-budgetNOVAGATEWAY_OBJECT_CACHE_FIRST_BYTE_BUDGETdurationDefault5s
First-byte budget for one cache attempt; keep it above direct S3's p99.

Version

novagateway --version (-v) prints the version, and --help (-h) the flag list.

On this page