docs(registry): rotate/add registry pull secrets through SOPS #47

Merged
sirius merged 1 commit from docs/registry-sops into master 2026-11-27 05:23:06 +00:00
Owner

Docs-only follow-up to #43.

PR #45 (SOPS) landed secret-forgejo-pull.sops.yaml for all four namespaces while #43 was in
flight, so the Secrets are now Flux-reconciled from git rather than out-of-band. The rotation
and add-a-namespace recipes in docs/registry-pull-auth.md still told the reader to
kubectl create secret, which the next apps reconcile reverts.

  • rotation now goes through sops decrypt | jq | sops encrypt on
    apps/base/<ns>/secret-forgejo-pull.sops.yaml;
  • add-a-namespace is three git edits (sops file, kustomization entry, imagePullSecrets);
  • records that the registry-reader token is non-expiring and that a rotated value is picked up
    on the next pull without a pod restart.

Verified after the SOPS apply: the four live Secrets are labelled
kustomize.toolkit.fluxcd.io/name=apps, still decode to registry-reader with a matching auth
field, and a fresh imagePullPolicy: Always pod pulled sirius/nats:2.10 successfully.

Docs-only follow-up to #43. PR #45 (SOPS) landed `secret-forgejo-pull.sops.yaml` for all four namespaces while #43 was in flight, so the Secrets are now Flux-reconciled from git rather than out-of-band. The rotation and add-a-namespace recipes in `docs/registry-pull-auth.md` still told the reader to `kubectl create secret`, which the next `apps` reconcile reverts. * rotation now goes through `sops decrypt | jq | sops encrypt` on `apps/base/<ns>/secret-forgejo-pull.sops.yaml`; * add-a-namespace is three git edits (sops file, kustomization entry, imagePullSecrets); * records that the `registry-reader` token is non-expiring and that a rotated value is picked up on the next pull without a pod restart. Verified after the SOPS apply: the four live Secrets are labelled `kustomize.toolkit.fluxcd.io/name=apps`, still decode to `registry-reader` with a matching `auth` field, and a fresh `imagePullPolicy: Always` pod pulled `sirius/nats:2.10` successfully.
PR #45 landed the forgejo-pull Secrets as SOPS ciphertext in git while this doc
still described them as out-of-band. A kubectl apply of a new Secret is now
reverted by the next apps reconcile, so the rotation and add-a-namespace
recipes go through the encrypted file. Also records that the registry-reader
token is non-expiring and that a rotated value is picked up on the next pull.
sirius merged commit ce13f756f9 into master 2026-11-27 05:23:06 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/homek8s!47
No description provided.