Soluto / kamus

An open source, git-ops, zero-trust secret encryption and decryption solution for Kubernetes applications
https://kamus.soluto.io
Apache License 2.0
929 stars 68 forks source link

Example Using Environment Variables #654

Open munsayac13 opened 2 years ago

munsayac13 commented 2 years ago

Hello,

Is there an example on how to utilize kamus decryption mechanism using environment variable in deployment.yaml file?

For example: apiVersion: v1 kind: ConfigMap metadata: name: notifier namespace: default data:

Kamus encrypted value

ACCOUNT_SID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx AUTH_TOKEN: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I would like to get it decrypt in my deployment file. Does the deployment file requires kamus decryptor in my app pod? When I do this, I get the npm install error. I dont know how to approach. Please advise thanks.

apiVersion: apps/v1 kind: Deployment metadata: ... ... ... spec: serviceAccountName: kamus-example-sa automountServiceAccountToken: true initContainers: