secrets
Names of environment variables whose values come from the host (or CI), redacted from everything Unsnag stores or prints. A build secret reaches only install (or dockerfile) and service builds; a Run secret reaches those and every Run too, where an Agent can read it.
Type: mapping
Hint: write secrets: { build: [...], run: [...] }: build secrets reach only the builds, Run secrets every Run too (move an old secrets: [...] list under build, unless a Run needs it)
Keys
secrets.build
Secrets for building the image and the services only: each is an environment variable in every install step and a build secret (RUN --mount=type=secret,id=<NAME>) in a dockerfile or a service's build. No Run, Agent, Check or service container sees it.
Type: list of string
Default: []
Hint: list environment variable names, such as [NPM_TOKEN]
secrets.run
Secrets every Run needs as well (its setup, Agent, Checks, teardown and services, and reading the Target CLI's version and help), and the builds too. The Agent can read them, so list here only what a Run must have.
Type: list of string
Default: []
Hint: list environment variable names, such as [API_TOKEN]