ErrorsConfiguration · rule
configuration.secret_default
Secret setting has a value in source.
Area 10, Configuration; not declinable; the next step is usually the agent's.
type PartnerKey = Text { min_length: 8}config { api_key: PartnerKey { secret: true default: "development-key" }}
error api_key is secret, and has a default: in source
--> main.jadpo:8:9
|8 | default: "development-key" | ^^^^^^^ a secret written in source
- reason
- A secret's value comes only from the deployment's environment, so a forgotten production secret stops the app instead of falling back to a value written in source;
jadpo testgenerates its own for a test run, so it needs nodefault:either. - next
- Remove
default:fromapi_key(agent) - rule
- configuration.
secret_ default - help
- https://jadpo.
dev/docs/errors/configuration. secret_ default
Markdown for agents: /docs/errors/configuration.secret_default.md.Built from Jadpo main at aee2e8f.