Create and Reference Secrets
Create a secret
Follow these steps to create a secret:
- Log into the CD-as-a-Service Console.
- Click the Secrets tab.
- Click New Secret.
- Fill in the Name and Value fields. Use a descriptive name.
You use the name to reference the secret in the CD-as-a-Service Console or in your app’s deployment file.
Once created, a secret’s raw value cannot be retrieved through Armory’s API, UI, or CLI.
Reference a secret
Armory CD-as-a-Service uses mustache template syntax to reference secrets.
Only variable tag types are supported.
You can reference a secret in any input field in the CD-as-a-Service Console or in the deployment YAML.
Reference a secret with a secrets.
prefix followed by the secret’s name. For example, if your secret is named prod-cluster-token
, you can reference it in a form field or the deployment YAML DSL as {{ secrets.prod-cluster-token }}
.
Feedback
Was this page helpful?
Thank you for letting us know!
Sorry to hear that. Please tell us how we can improve.
Last modified October 27, 2022: (a80a18d5)