Skip to content
Security

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.

LayerControls
GossipAES-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.
APITLS 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.
ConfigFails closed: no gossip key, no tokens, weak tokens, or production without TLS each stop startup. Secrets never appear in logs.
ContainerDistroless, non-root, read-only root FS, cap_drop: ALL, no-new-privileges, resource limits, ports bound to localhost in compose.
KubernetesPod Security restricted, default-deny NetworkPolicies, no SA token, seccomp RuntimeDefault, PDB, topology spread.
Supply chainCodeQL, 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.

VersionSupported
main✅
< 1.0Best 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.

AssetThreatControl
Gossip trafficEavesdropping, forging membership (e.g. declaring nodes dead), injecting rogue nodesEvery 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 trafficReplay of captured packetsEach 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 keyCompromise / stalenessKeyring 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 parserMemory/CPU exhaustion via crafted packetsBounded datagram size, max 512 members per message, field length limits, bounded receive queue with drop-on-backpressure.
HTTP APIUnauthorized accessBearer tokens (≥ 32 chars) stored only as SHA-256 digests, compared in constant time across all tokens. Optional mTLS (client certs required).
HTTP APIDowngrade / interceptionTLS 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 APIBrute force, DoS, slowlorisPer-IP token-bucket rate limiting (bounded table), header/read/write/idle timeouts, 16 KiB header cap, 1 MiB body cap.
HTTP APIBrowser-based attacksnosniff, X-Frame-Options: DENY, strict CSP, no-referrer, no-store, HSTS on TLS.
MetricsInformation disclosureServed 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).
ContainerEscape / lateral movementDistroless static image (no shell), non-root UID 65532, read-only root FS, all capabilities dropped, no-new-privileges, seccomp RuntimeDefault.
KubernetesLateral movement, privilege escalationPod Security restricted, default-deny NetworkPolicies, no service-account token, PDB, resource limits.
Supply chainMalicious dependency / image tamperingMinimal 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.
SecretsLeakage 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

ComponentControl
Atlas ConsoleA 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 controllerRead-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 providerThe 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

Improve this page