Configuration and secrets¶
Configuration¶
Non-secret settings belong in configurations.env or configurations.files of the
workload.yaml. They are versioned, apply to all environments and can
be overridden per environment when promoting (see
Deploy and promote).
Runtime secrets¶
Never commit secrets
Passwords, API keys, tokens, private keys and credentials never belong in the
repository — not in code, .env files, workload.yaml or the Dockerfile. A
secret that has been pushed once counts as compromised, even if the commit is
removed later.
On Parkdeck, secrets live in the platform's secret store (OpenBao). The process:
- Store the value — hand the value to the platform team through a secure
channel; they store it in the secret store and create a matching
SecretReference in your project (name e.g.
<project>-api-key). -
Reference it — in
workload.yamlyou only point to the reference: -
Build and deploy — at runtime the platform fetches the value into the environment's namespace and sets it as an environment variable. If the value changes in the secret store, it is synchronised within a few seconds; the container sees it after a restart.
If environments need different values (e.g. test and production keys), have a separate reference created per environment and set it with an override when promoting.
Database credentials need no reference of their own: the platform generates them
and passes them in via dependencies.resources (see Databases).
Build secrets are something else¶
Values needed only for building (e.g. an NPM_TOKEN for a private package
registry) are set as buildArgs on the component — see
Build. They do not end up in the running container
unless the Dockerfile copies them into the final image.