Skip to content
/ s5s Public

Port secrets from cloud secret managers into Kubernetes

Notifications You must be signed in to change notification settings

Vinlock/s5s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secrets (s5s)

s5s is a tool to download and apply secrets from cloud Secret Managers

Supported Secret Managers

Google Cloud Secrets Manager

Flag Description Required Default Value
--project | -p GCP Project Name X
--key | -k GCP Key String (must be provided if --key-file is not) X
--key-file | -f GCP Key File (JSON) (must be provided if --key is not) X
--secret | -s List of secrets formatted as <k8s secret key>=<gcp secret name> X
--output-secret | -o Name of k8s secret X
--version | -v GCP Secret Version latest

Example:

$ s5s gcp \
    -p gcp-project-id \
    -f secret.json \
    -s "mysqlusername=app-mysql-username" \
    -s "mysqlpassword=app-mysql-password" \
    -o mysql-creds | kubectl apply --context k8s-cluster -n app-namespace -f -

AWS Secrets Manager

Flag Description Required Default Value
--secret | -s AWS Secret Name X
--region | -r AWS Region Name us-west-2
--accessKeyId AWS Access Key ID AWS_ACCESS_KEY_ID env
--accessKey AWS Access Key AWS_ACCESS_KEY env
--token AWS Access Token
--output-secret | -o Name of k8s secret X

Example:

$ s5s aws \
    -s "project/mysql/secrets"
    --accessKeyId AW12312312412
    --accessKey XpijOIPUYh087^*&(^%
    -o mysql-creds | kubectl apply --context k8s-cluster -n app-namespace -f -

Download Latest

About

Port secrets from cloud secret managers into Kubernetes

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages