Skip to content

About

ArgoCD Sops Sidecar

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Argo CD SOPS Config Management Plugin

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.

Usage

1. Create the age key secret

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.txt

2. Add the container as a sidecar to the ArgoCD Repo Server

For 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-key

Environment Variables

All 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)

About

ArgoCD Sops Sidecar

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages