Secrets
Secrets
Provide credentials to your agents without putting secret values in configuration.
Secrets store the credentials your agents need, such as API keys and access tokens. They belong to your active organization and can be managed through the Stitch UI or CLI.
Factories reference secrets by name. Secret values stay out of your factory file.
Use Secrets in a Factory
Harness and sandbox authentication fields reference secret names. You can also provide a secret as an environment variable:
execution:
environmentVariables:
- key: SERVICE_TOKEN
source: managed
secretName: SERVICE_TOKEN
targets: [harness]Use targets: [setup] for setup only, or [setup, harness] for both.
Confirm names with stitch secrets list before full validation.