The chart supports four ways to provide secrets to Vigil pods. Pick whichever fits your existing secret-management setup; all four end up behind the same Secret name, which backend, daemon, and llm-worker envFrom. Agent-worker and agent-serve do not load it whole: they read AGENT_INTERNAL_TOKEN, AGENT_INTERNAL_TOKEN_PREVIOUS, BIFROST_API_KEY, and POSTGRES_AGENT_PASSWORD from it by secretKeyRef. The upgrade Jobs do not envFrom it — they read the owner password plus POSTGRES_APP_PASSWORD/POSTGRES_AGENT_PASSWORD by secretKeyRef. Note the chart-rendered Secret carries POSTGRES_APP_PASSWORD/POSTGRES_AGENT_PASSWORD, not POSTGRES_PASSWORD (the owner password is a separate Secret in plain-values mode).

Pattern Secret lives When to pick Docs
Plain values values.yaml (or --set) Local dev, one-off demos HELM.md — Secrets
Pre-created Secret (secrets.existingSecret) Kubernetes You already manage secrets out-of-band HELM.md — Secrets
ExternalSecrets Operator (secrets.externalSecret.enabled) AWS SM / Vault / GCP SM Secrets already in an external store HELM.md — Secrets
SealedSecrets / SOPS Git, encrypted GitOps without an external secret store This doc

All patterns require the same set of keys. The app Secret carries, at minimum:

  • An LLM provider key — ANTHROPIC_API_KEY for Claude (the default); OPENAI_API_KEY/GEMINI_API_KEY are the alternatives the chart renders
  • POSTGRES_APP_PASSWORD — required; app pods log in with it, mounted as their POSTGRES_PASSWORD env var; must differ from the owner password
  • POSTGRES_AGENT_PASSWORD — required; agent-serve/agent-worker log in with it; must differ from both other passwords
  • JWT_SECRET_KEY — required when config.DEV_MODE=false
  • AGENT_INTERNAL_TOKEN — required whenever the agent Deployments are enabled (the default); the agent surface fails closed when it is unset
  • BIFROST_ADMIN_PASSWORD (secrets.bifrostAdminPassword) - the Bifrost gateway’s admin password, which lives in its own Bifrost auth Secret and is also rendered into the app Secret when set as a plain value

Supplied separately, not as a key of the app Secret:

  • POSTGRES_PASSWORD - owner password, used by Postgres and the upgrade Jobs only. In plain-values mode it flows via its own Secret, not via the app Secret; with secrets.existingSecret it is read from that Secret under POSTGRES_PASSWORD

If the MCP runner / agent shell are enabled, the same Secret must also carry MCP_RUNNER_TOKEN / SHELL_TOKEN when you use secrets.existingSecret or externalSecret; in plain-values mode each token lives in its own Secret rendered by the chart.

Plus whichever integrations you use: SPLUNK_PASSWORD, SLACK_BOT_TOKEN, VIRUSTOTAL_API_KEY, etc. See env.example for the full list.


Pattern 1 — Bitnami SealedSecrets

SealedSecrets lets you commit encrypted Secret manifests to git. The controller in the cluster decrypts them at apply time, producing a regular Secret resource.

Prerequisites

# Controller (once per cluster)
helm install sealed-secrets \
  --namespace kube-system \
  --repo https://bitnami-labs.github.io/sealed-secrets sealed-secrets

# CLI (once per dev machine)
brew install kubeseal   # or download from github.com/bitnami-labs/sealed-secrets/releases

Workflow

  1. Write a plain Secret manifest with all the keys you need:

    # secret.yaml
    apiVersion: v1
    kind: Secret
    metadata:
      name: vigil-secrets
      namespace: vigil
    type: Opaque
    stringData:
      ANTHROPIC_API_KEY: sk-ant-...
      POSTGRES_PASSWORD: "a-strong-password"
      POSTGRES_APP_PASSWORD: "a-different-strong-password"
      POSTGRES_AGENT_PASSWORD: "another-different-strong-password"
      JWT_SECRET_KEY: "generated-with-secrets.token_urlsafe-64"
      SLACK_BOT_TOKEN: xoxb-...
    

    All three Postgres passwords must differ. Add MCP_RUNNER_TOKEN as well if the MCP runner is enabled — the runner’s own reference to it is required for the runner to become ready.

    Do not commit this file.

  2. Seal it:

    kubeseal -o yaml < secret.yaml > vigil-sealed-secret.yaml
    

    The output is safe to commit — only the controller’s private key can decrypt it.

  3. Apply the sealed manifest and install the chart:

    kubectl apply -f vigil-sealed-secret.yaml
    # The controller creates the vigil-secrets Secret automatically.
    
    helm install vigil ./infra/helm/vigil \
      -n vigil --create-namespace \
      --set secrets.existingSecret=vigil-secrets
    
  4. To rotate: re-run step 1 with new values, re-seal, re-apply. The chart does not need to be upgraded — the app pods pick up the new Secret on the next restart. The checksum annotations track the chart-rendered ConfigMap/Secret only, so they do not restart pods when a pre-created Secret changes out-of-band. After re-applying, restart both the Deployments and the daemon StatefulSet, e.g. kubectl rollout restart -n vigil deploy and kubectl rollout restart -n vigil statefulset.

See docs/examples/sealed-secret.yaml for a reference template.


Pattern 2 — Mozilla SOPS

SOPS encrypts file contents with a KMS, age, or PGP key. Unlike SealedSecrets, there’s no in-cluster component — you decrypt at deploy time and pipe the plaintext into kubectl apply.

Prerequisites

brew install sops age

# Generate an age key (one per team or per environment)
age-keygen -o ~/.sops/vigil.txt
# Commit the PUBLIC half to your repo in .sops.yaml

Create .sops.yaml at the repo root:

creation_rules:
  - path_regex: secrets/.*\.yaml$
    age: >-
      age1your-public-key-here

Workflow

  1. Write the plain Secret manifest:

    # secrets/vigil-secrets.yaml
    apiVersion: v1
    kind: Secret
    metadata:
      name: vigil-secrets
      namespace: vigil
    type: Opaque
    stringData:
      ANTHROPIC_API_KEY: sk-ant-...
      POSTGRES_PASSWORD: "a-strong-password"
      POSTGRES_APP_PASSWORD: "a-different-strong-password"
      POSTGRES_AGENT_PASSWORD: "another-different-strong-password"
      JWT_SECRET_KEY: "..."
    
  2. Encrypt in place:

    sops -e -i secrets/vigil-secrets.yaml
    

    Commit the encrypted file.

  3. Deploy:

    # Decrypt and apply in one pipe
    export SOPS_AGE_KEY_FILE=~/.sops/vigil.txt
    sops -d secrets/vigil-secrets.yaml | kubectl apply -f -
    
    helm install vigil ./infra/helm/vigil \
      -n vigil --create-namespace \
      --set secrets.existingSecret=vigil-secrets
    
  4. Rotation: edit the encrypted file directly with sops secrets/vigil-secrets.yaml (opens in your $EDITOR with decrypted plaintext; saves back encrypted).

See docs/examples/sops-config.yaml for a reference .sops.yaml.

SOPS + Helm (alternative: helm-secrets plugin)

If you want helm install to handle decryption itself, install the helm-secrets plugin and commit a sops-encrypted values file:

helm plugin install https://github.com/jkroepke/helm-secrets

# Encrypted values file
sops -e -i infra/helm/vigil/values-prod-secrets.yaml

# Install
helm secrets install vigil ./infra/helm/vigil \
  -n vigil --create-namespace \
  -f infra/helm/vigil/values-prod-secrets.yaml

This lets you use secrets.anthropicApiKey: ... directly (not existingSecret) because the values file itself is encrypted at rest.


Picking between them

  • ExternalSecrets Operator (secrets.externalSecret.enabled in the main doc) is best when you already have AWS Secrets Manager, Vault, or GCP Secret Manager as the source of truth. Secrets rotate in the external store; the cluster pulls fresh values on the refresh interval.

  • SealedSecrets (pattern 1 here) is best when secrets must live in git (GitOps) and you want zero external dependencies beyond the cluster itself.

  • SOPS (pattern 2 here) is best when you already standardize on encrypting config files and don’t want a cluster-side decryption controller.

SealedSecrets and SOPS (kubectl-apply flow) feed secrets.existingSecret; ExternalSecrets instead uses secrets.externalSecret.enabled, which materialises the same Secret name; the SOPS + helm-secrets flow uses encrypted plain values. Pick one mechanism per install — do not set existingSecret and externalSecret.enabled together.