A custom Argo CD Config Management Plugin (CMP) sidecar image that enables decrypting SOPS-encrypted YAML files before applying manifests.
Encrypted files must be named secret.yaml or use the *.secret.yaml extension.
Create a Kubernetes secret containing your age private key:
kubectl -n argocd create secret generic sops-age-key \
--from-file=keys.txt=/path/to/age/key.txtFor example, add this to your Helm values:
repoServer:
extraContainers:
- name: sops
image: ghcr.io/baconing/argocd-sops-cmp:latest
securityContext:
runAsUser: 999
runAsNonRoot: true
volumeMounts:
- name: var-files
mountPath: /var/run/argocd
- name: plugins
mountPath: /home/argocd/cmp-server/plugins
- name: cmp-tmp
mountPath: /tmp
- name: sops-age-key
mountPath: /keys
volumes:
- name: cmp-tmp
emptyDir: {}
- name: sops-age-key
secret:
secretName: sops-age-keyAll environment variables used for configuration of this container are prefixed with ACS_
| Variable | Default | Description |
|---|---|---|
ACS_KUSTOMIZE_OPTIONS |
Empty String | Pass additional options to kustomize build . (e.g. --load-restrictor LoadRestrictionsNone) |