AWS Secrets Management
Release's integration with AWS for secrets management let's you use and manage secrets using either AWS Secrets Manager or AWS Systems Manager Parameter Store. This integration allows you to bulk load a group of secrets into your services and/or jobs based on a pattern.
Prerequisites
Before you begin, ensure you have:
Access to a Release environment with Kubernetes clusters configured.
You have stored your secrets in the same region as the cluster/s Release is managing
Decide on the pattern you would like Release to use and create secrets following this pattern.
Setting up your App and/or Environment configuration
secrets:
- name: default-secrets
type: aws
pattern: /Release/Secrets/Defaults/* #default secrets that many services need
- name: backend-secrets
type: aws
pattern: /Release/Secrets/Backend/* #only backend specific secrets
Name and type are pretty self explanitory, but the pattern is what makes the integration work. The pattern tells Release which secrets to pull into your services and/or jobs. In order for Release to utilize your secrets the pattern needs to match your naming scheme of your secrets.
For the example up above secrets named like:
/Release/Secrets/Defaults/TEST_SECRET0 #would be included in the default list
/Release/Secrets/Backend/BACKEND_TEST_SECRET0 #would be included in the backend list
SOME_SECRET #would not be automatically included in any list
Using the secrets in your services and job definitions
services:
- name: rails
image: github-org/rails
secrets_from:
- default-secrets #include default secrets
- backend-secrets #include backend secrets
- name: ai-chatbot
image: github-org/ai-chatbot
secrets_from:
- default-secrets #include only default secrets
jobs:
- name: chatbot-setup
image: github-org/rails
secrets_from:
- default-secrets
- backend-secerts
Conclusion
This integration allows you to create an arbitrary amount of secrets you want bulk loaded into your containers. You need only come up with path and naming scheme you like and tell Release about it and we can autoload them into your containers.
Last updated
Was this helpful?