a cli tool to encode and decode kubernetes secrets
./encoded_secrets.yml
apiVersion: v1
kind: Secret
metadata:
name: database-secret-config
type: Opaque
data:
username: QXp1cmVEaWFtb25k
password: aHVudGVyMg==
$ secreto decode ./encoded_secrets.yml
apiVersion: v1
kind: Secret
metadata:
name: database-secret-config
type: Opaque
data:
username: AzureDiamond
password: hunter2
# save to a file
$ secreto decode ./encoded_secrets.yml > secrets.yml
./secrets.yml
apiVersion: v1
kind: Secret
metadata:
name: database-secret-config
type: Opaque
data:
username: AzureDiamond
password: hunter2
$ secreto encode ./secrets.yml
apiVersion: v1
kind: Secret
metadata:
name: database-secret-config
type: Opaque
data:
username: QXp1cmVEaWFtb25k
password: aHVudGVyMg==
- encryption & decryption of the secret values to make it safe to store in VCS