Skip to content

Compliance Attestation Reports

License: pro tier and above (FeatureCompliance), the same tier as geo rules. Collection runs on every node regardless of tier, so upgrading shows months already recorded. See Licensing.

Geo rules enforce where a client's traffic goes. This produces the evidence that they did: a monthly report, signed with an Ed25519 key, that an auditor can verify without trusting Nexus's UI or API.

What is counted

For every answered query the node records one counter, keyed by (UTC day, tenant, service, client country, serving member's region, serving member's country).

  • client country — GeoIP lookup of the client source IP (unknown if GeoIP is not configured or the address is not in the database).
  • member region — the member's configured region. member country — the member's configured proximity country if set, else a GeoIP lookup of the member's IP.
  • violation — a query where a geo rule matched the client's source CIDR but the member that won the answer is outside the region of that rule's target. It is decided at the moment the rule is evaluated, not reconstructed later. If the target is unhealthy and another member in the same region answers, that is not a violation. If either region is unset or unknown, residency cannot be shown, so it is counted.

Queries that matched no geo rule are counted in queries and can never be violations.

Where it lives

compliance_rollups in rqlite. Each node upserts only its own rows (node_id is part of the key) and adds its counters every 30 s and on shutdown, so a crash loses at most 30 s. A report sums across nodes on read. Rows older than 13 months (396 days) are pruned.

API

Endpoint Purpose
GET /api/v1/compliance/attestation?period=YYYY-MM[&service=<domain>] signed report (needs pool:read)
GET /api/v1/compliance/public-key the signing public key, PEM

The response is an envelope:

{ "payload": "{\"version\":1,\"period\":\"2026-06\", ...}",
  "signature": "<base64 Ed25519>",
  "algorithm": "ed25519",
  "publicKey": "-----BEGIN PUBLIC KEY-----..." }

payload is a string: the exact bytes that were signed. The report inside carries queries, violations, per-row breakdown, partial (the month is still running) and daysWithData vs daysInPeriod — a day with no data is a coverage gap, not a clean day, and the report says so rather than hiding it.

?service= is an exact match on the service domain as stored.

Signing key

Generated on first use and stored in the replicated settings table, so every node signs with the same key and any node can serve a report. It is AES-GCM encrypted with GSLB_SECRET_KEY when that is set; otherwise it is stored unencrypted, like the other settings. There is no rotation endpoint yet: to rotate, delete the compliance_signing_key setting and publish the new public key — reports signed earlier still verify against the old one, so keep it.

CLI and UI

gslbctl compliance report --period 2026-06 --out ./june     # writes report.json, report.sig, pubkey.pem
gslbctl compliance pubkey > nexus-attestation.pem

WebUI: Compliance in the sidebar — month picker, the per-row table, and downloads for the signed report and the public key.

Terraform: not applicable (read-only evidence, same as SLA history).

Limits

  • Counts are per-node until flushed; the current month is marked partial.
  • Resolver caching means a "query" is a query Nexus answered, not a client lookup.
  • Only geo-rule matches can be violations. A service with no geo rules reports zero violations because nothing was being enforced, and the report does not claim otherwise.
  • Views (split-horizon) and RUM/proximity routing are not separately attested.