Skip to content

Security model

CDNFoundry separates management identities, edge identities, runtime status tokens, artifact signing, service TLS, database credentials, backup credentials, and metrics access.

Human and API authorization is policy based:

  • active administrators may use /admin and administrator API routes;
  • active domain users may use /app and only assigned domains;
  • disabled users lose API tokens and are rejected on later session requests;
  • edge agents enroll once and then use short-lived client certificates;
  • /metrics requires a separate bearer token and is not a user API.

Private keys are never returned by status APIs. Sanctum hashes API tokens. Custom and managed TLS private keys are encrypted with the application encryption key. DNS cluster API keys are encrypted and not echoed after storage.

Secret classes

SecretOwnerRotation consequence
APP_KEYcontrol recovery systemRequired to decrypt stored application secrets
Artifact signing keycontrolMust remain compatible with agent verification
Edge identity CA keycontrol onlyReplacement requires an agent re-enrollment plan
Edge server CA keyprotected PKIReissue control/runtime/DNS API server identities
Agent private keyone edge identity volumeRotate only that edge identity
Edge status tokenone edge hostUpdate agent and cells together
PowerDNS API keyone DNS targetUpdate gateway and encrypted cluster credential
Metrics tokenprotected fileUpdate metrics client and mounted file
Restic passwordrecovery systemRequired for existing backups

Never log secrets

Use fingerprints, checksums, operation IDs, and redacted setting names in diagnostics. Never paste environments, tokens, private keys, or customer data.

Continue with Deployment hardening and Report a vulnerability.

CDNFoundry documentation