Skip to content

Platform-config secrets are encrypted at rest with an audited reveal

Accepted. Built; SDK support released.

2026-10-23.

Applications need somewhere to keep settings and secrets that are not in their own deployment: an SFTP password, a partner API key, a per-client option. The platform already knows the applications and clients, so it is the natural store. A store of secrets raises the usual questions. Who can read a value, how do we know who did, what happens if the database is copied, and how does an ordinary list call avoid leaking.

Values are addressed by application, section and property, either globally or for one client. The two are separate rows: asking for a client’s value never falls back to the global one.

A property is either plain or a secret. A secret is handled as follows.

  • Encrypted at rest with AES-256-GCM and the platform key, and bound to the property it belongs to (application, section, property and client). A stored value copied onto another property does not decrypt there.
  • Never returned by ordinary calls. List, read and set all return the literal *** for a secret, for every caller, administrators included.
  • One way to read it: the reveal call, GET /api/config/{app}/{section}/{property}/secret, optionally with a client. The response is marked no-store, and callers are told not to cache it beyond a short bounded time or log it. It returns when the secret was last set, so a caching caller can tell it was rotated.
  • Reveal is its own permission, never implied by view or edit, and never by being an application’s service account. Platform administrators hold the broader admin permissions but not reveal. A dedicated role (platform:config-secrets-admin) is the deliberate grant. An application’s service account has an application-service reveal permission that reaches only its own application and the clients it is linked to.
  • Every reveal is audited with who, which property, when, and on whose behalf if the application said so (X-On-Behalf-Of, honoured only from a service account). The value is never in the audit row. A reveal that cannot be recorded is refused.
  • Client confinement is separate from permission. A caller below anchor tier reaches only its own clients’ values.
  • An exception is documented: the ingestor runtime fetches the secrets an ingestion binds through its own runtime operation. That fetch is logged as security telemetry rather than audited per read, and a refused fetch is audited.
  • A secret may be an external reference (see the decision on external secret references). The reference is shown, not masked, and reveal resolves it.

Good:

  • A leaked list response, log or database copy does not contain usable secrets.
  • Access is a deliberate grant, and each reveal leaves a trace.
  • Applications reveal at the point of use and can detect rotation.

Bad:

  • Every secret read is a round trip to the platform. Applications that read often must cache briefly, which weakens the audit’s meaning of “each use”.
  • Binding to the property means a secret cannot be moved between properties by copying rows. It must be set again.
  • Refusing a reveal that cannot be audited makes the audit store a dependency of reading secrets.
  • The ingestor’s per-read fetch is not audited per read, which is a documented gap in the trail.
Alternative Why not
Store secrets in plain text and rely on permissions A database copy or backup exposes everything.
Return secrets to anyone who can view configuration Viewing a setting should not mean seeing a password.
Mask only in the console The API is the exposure; masking must be on the server.
Reveal without audit, for service accounts The audit trail is the main control against misuse.