Security at Atlas
Atlas assumes the network between your regions is hostile. Here is how gossip, the API, the console and the integrations are protected, what we know is still missing, and how to report a problem privately.
Overview
Atlas assumes the network between regions is hostile.
| Layer | Controls |
|---|---|
| Gossip | AES-256-GCM on every datagram, with forged packets dropped before parsing. AAD protocol binding, a replay window (MAX_CLOCK_SKEW) and a rotatable keyring (1 primary + 3 decrypt-only keys). Bounded sizes and member counts. |
| API | TLS 1.3 only, with optional mTLS and certificate hot reload. Bearer tokens are stored as SHA-256 digests and compared in constant time. Per-IP rate limiting honors forwarded client addresses only from configured trusted proxy CIDRs. Slowloris timeouts, header/body caps and strict security headers. |
| Config | Fails closed: no gossip key, no tokens, weak tokens, or production without TLS each stop startup. Secrets never appear in logs. |
| Container | Distroless, non-root, read-only root FS, cap_drop: ALL, no-new-privileges, resource limits, ports bound to localhost in compose. |
| Kubernetes | Pod Security restricted, default-deny NetworkPolicies, no SA token, seccomp RuntimeDefault, PDB, topology spread. |
| Supply chain | CodeQL, govulncheck, gitleaks, a Grype CVE gate, Dependabot and OpenSSF Scorecard. Releases are signed with Cosign (keyless) and ship with an SBOM and SLSA provenance. |
The threat model, known limitations and how to report a vulnerability are in SECURITY.md.
Reporting a vulnerability
Do not open a public issue. Use GitHub's private vulnerability reporting on this repository, or email manziosee@gmail.com.
Include what you found, how to reproduce it, and the impact you think it has. You will get an acknowledgement within 72 hours and a fix or mitigation plan within 14 days for confirmed high/critical issues. We are happy to credit reporters in the advisory.
| Version | Supported |
|---|---|
main | ✅ |
| < 1.0 | Best effort (pre-release) |
Threat model
Atlas runs on many machines across untrusted networks (the public internet between regions). We assume an attacker can observe, drop, replay, inject and modify any packet between nodes and can reach any exposed port.
| Asset | Threat | Control |
|---|---|---|
| Gossip traffic | Eavesdropping, forging membership (e.g. declaring nodes dead), injecting rogue nodes | Every UDP datagram is sealed with AES-256-GCM using a cluster key; unauthenticated packets are dropped before parsing. AAD binds ciphertexts to the protocol (atlas/gossip/v1). |
| Gossip traffic | Replay of captured packets | Each message carries a send timestamp; packets outside ATLAS_MAX_CLOCK_SKEW are dropped. SWIM incarnation numbers make replayed old state lose to newer state. |
| Gossip key | Compromise / staleness | Keyring with primary + up to 3 decrypt-only keys enables zero-downtime rotation. Keys must be 256-bit random (atlas-cli keygen); weak or missing keys stop the node at startup. |
| Gossip parser | Memory/CPU exhaustion via crafted packets | Bounded datagram size, max 512 members per message, field length limits, bounded receive queue with drop-on-backpressure. |
| HTTP API | Unauthorized access | Bearer tokens (≥ 32 chars) stored only as SHA-256 digests, compared in constant time across all tokens. Optional mTLS (client certs required). |
| HTTP API | Downgrade / interception | TLS 1.3 only. Production mode refuses to start without TLS (unless explicitly declared terminated by a trusted proxy). Certificates hot-reload for short-lived certs. |
| HTTP API | Brute force, DoS, slowloris | Per-IP token-bucket rate limiting (bounded table), header/read/write/idle timeouts, 16 KiB header cap, 1 MiB body cap. |
| HTTP API | Browser-based attacks | nosniff, X-Frame-Options: DENY, strict CSP, no-referrer, no-store, HSTS on TLS. |
| Metrics | Information disclosure | Served on a separate port, intended for private networks only; K8s NetworkPolicy restricts it to the monitoring namespace. Route labels use mux patterns, never raw paths (no cardinality attacks). |
| Container | Escape / lateral movement | Distroless static image (no shell), non-root UID 65532, read-only root FS, all capabilities dropped, no-new-privileges, seccomp RuntimeDefault. |
| Kubernetes | Lateral movement, privilege escalation | Pod Security restricted, default-deny NetworkPolicies, no service-account token, PDB, resource limits. |
| Supply chain | Malicious dependency / image tampering | Minimal deps, go mod verify, govulncheck, CodeQL, gitleaks, image CVE scan, Dependabot, OpenSSF Scorecard; releases are multi-arch with SBOM, SLSA provenance and keyless Cosign signatures. |
| Secrets | Leakage via VCS or images | .env, keys and certs are git- and docker-ignored; CI scans history with gitleaks; K8s secrets come from generators/External Secrets, Fly.io from fly secrets. |
Console, Kubernetes controller and Terraform provider
| Component | Control |
|---|---|
| Atlas Console | A static site with no backend: the browser calls the node directly, so tokens never pass through a console server. Tokens stay in page memory, or in the tab's session storage only when the user asks. Nodes allow browser calls only from origins listed in ATLAS_CORS_ORIGINS, never with cookies. Destructive actions need the ID typed to confirm. |
atlas-k8s controller | Read-only RBAC (get, list, watch on Services and EndpointSlices), cluster-wide or per namespace. It uses its own write-scoped token, and only removes registrations carrying its own owner tag. |
| Terraform provider | The token comes from configuration or ATLAS_TOKEN and is marked sensitive; TLS and mTLS are supported. |
Known limitations (tracked on the roadmap)
- Shared-key trust model. Any holder of the gossip key is a full cluster member. Per-node identities (mTLS for gossip or signed membership records) are planned.
- Clock-skew window. Replay protection depends on loosely synchronized clocks (NTP). Packets can be replayed within the window, but incarnation ordering makes that harmless for membership state.
- Credential management. API credentials are configured on the nodes
and reloaded with
SIGHUP; there is no API to create or revoke them yet.
Verifying a release image
cosign verify ghcr.io/manziosee/atlas:<version> \
--certificate-identity-regexp 'https://github.com/manziosee/atlas/.github/workflows/release.yml@.*' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
gh attestation verify oci://ghcr.io/manziosee/atlas:<version> --owner manziosee