Skip to content

docs(adr): take service Secrets from External Secrets Operator #6675

Closed

Description

@dan-petty

Problem

Checked at devops-cli main 4ff4b7c.

Proposed remedy

Write ADR 0033, and change CF4, CF5 and SECURITY.md principle 1 in the same pull request.

  • Service Secrets come from ESO with the Kubernetes provider. Each service gets one store namespace <name>-secrets. The tenant chart of dan-petty/infra makes the SecretStore in each service namespace (feat(secrets): add the External Secrets Operator templates infra#12). The service repository holds only ExternalSecret, PushSecret and Password objects. Its AppProject allows no Secret, no SecretStore and no other generator.
  • A remote key in a store namespace starts with its source namespace: <namespace>.<secret>. So two namespaces of one service never share a value by accident.
  • A value that nobody types comes from a Password generator. A PushSecret with updatePolicy: IfNotExists and deletionPolicy: None keeps it in the store namespace, so it never changes. An ExternalSecret reads it back.
  • A person writes a typed value into the store namespace with kubectl create secret generic <namespace>.<name> --from-file=<key>=/dev/stdin. No value goes into git.
  • A value that must never change (an encryption key, a restic password) gets an offline copy that the owner keeps.
  • devops k8s push-secrets stays the path of the platform Secrets. Their row definitions move to homelab data later (dan-petty/homelab#96, refactor(k8s): read the environment Secret rows from homelab #6685); the keyring stays their store.
  • Rejected: Sealed Secrets (no generator, ciphertext in git against CF4, one vendor); SOPS with KSOPS (repo-server holds the key, and the cache holds plaintext); a push-secrets table for each repository (home-grown code that duplicates ESO, AGENTS.md rule 3).
  • CF4: a service Secret comes from an ExternalSecret. CF5: a sync wave puts the ExternalSecret before its reader, so no person push comes before the merge of a generated value.

Acceptance criteria

  • ls docs/adr/0033-*.md finds one file, and docs/adr/README.md lists it.
  • grep -n ExternalSecret docs/SERVICE_PATTERNS.md SECURITY.md finds CF4, CF5 and principle 1.
  • uv run devops ci --check --only docs,domain passes.

Person steps

Dependencies

Activity

  1. dan-petty commented on Nov 21, 2026

    @dan-petty
    OwnerAuthor
  2. added
    priority/p2-medium
    type/docs
    source/agent
    status/new
    value/medium
    effort/low
    scope/adr
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 21, 2026
  3. added
    status/in-review
    and removed
    status/in-progress
    on Nov 21, 2026
  4. removed
    status/in-review
    owner/agent
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/adrsource/agenttype/docsvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions