From 9248f34bd0bbd107975cae0f76685ac1299c3c8c Mon Sep 17 00:00:00 2001 From: devops Date: Fri, 4 Dec 2026 00:30:16 -0500 Subject: [PATCH] fix(backup): add the registry pull secret that forgejo/cluster-backup now needs The namespace never pulled from the in-cluster registry before (its job used alpine/k8s from Docker Hub), so the new image reference had no credential and the pod sat in ErrImagePull. Same SOPS-encrypted dockerconfigjson as the other namespaces; deviating only in metadata.namespace. --- apps/base/forgejo/kustomization.yaml | 4 ++++ .../forgejo/secret-forgejo-pull.sops.yaml | 23 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 apps/base/forgejo/secret-forgejo-pull.sops.yaml diff --git a/apps/base/forgejo/kustomization.yaml b/apps/base/forgejo/kustomization.yaml index d992e95..8a4ccd0 100644 --- a/apps/base/forgejo/kustomization.yaml +++ b/apps/base/forgejo/kustomization.yaml @@ -48,3 +48,7 @@ resources: - secret-forgejo-runner-amd64-token.sops.yaml - secret-forgejo-runner-deploy-arm64-token.sops.yaml - secret-cluster-backup-ssh.sops.yaml + # Registry pull credential: cluster-backup now runs an image from the + # in-cluster Forgejo registry instead of alpine/k8s from Docker Hub + # (card t_9d0428d8). + - secret-forgejo-pull.sops.yaml diff --git a/apps/base/forgejo/secret-forgejo-pull.sops.yaml b/apps/base/forgejo/secret-forgejo-pull.sops.yaml new file mode 100644 index 0000000..84ba7a2 --- /dev/null +++ b/apps/base/forgejo/secret-forgejo-pull.sops.yaml @@ -0,0 +1,23 @@ +apiVersion: v1 +data: + .dockerconfigjson: ENC[AES256_GCM,data:QS5gZUJ0zi3YYSaCpJWSCA/JakeknWmlQ8WVKlyxh2k4zo/Ul33lhH5iQP27Z3ec6FyEtV8TUSdhkq1wGSCF7cRu00ze4qljMuviU35x2Dl5aMc7JEWvRPnypoBYNmTRulPZh5E3GdiR9VUzok643P0igJyHlQBjO8HkLiuZ41Zd7JYordQRPTH4tXlDbiJPEPfkMEyFHY/6XdEEUNv5eIUyb004d1xZccnGaMwliVNBL5xIbJpb4Bza9/Z8NYsq70cmjHH/hFq7uotnSt3B53vPnwf6Rsq9j44i3M0xQjHQf+QYa34mFncHznwxPczLo8wcmKFmZYkNZNXxzc/NryeC4w950GUZ+cSO1UKLhS8IGIal8S05IWmeIuda1k9V,iv:AN7Fn/JmSYqiERsqneSOMeV3kMRGcawgV4Y9iJrjF7E=,tag:XwEZy+ULOGiFTW1diodMgg==,type:str] +kind: Secret +metadata: + name: forgejo-pull + namespace: forgejo +type: kubernetes.io/dockerconfigjson +sops: + age: + - enc: | + -----BEGIN AGE ENCRYPTED FILE----- + YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBjTmlMUDZOdnc1U3RGM1Jh + TTNmU3pRV3M1Y2lkNitqMkE0WHRZdXNOSlRJCnZ2eDB3ZXpvWDR6dHJBeWJpdElI + a24xelp4dGluNXNGUzJYOWlPNzdwM0EKLS0tIGJuUk1CUEEvZlVWYlFKTnVwWVRS + M2o5LzBJSEpXaklKc0ZMZ0FDa3NlV0UKmNVnlKd/Xqbisox3hrAeK45sbLJW5yS3 + Y6KfweCLwk6edQ9YflAvmk2FWVi0PIMdmloObXVSvB/ZY+jeLlK4lA== + -----END AGE ENCRYPTED FILE----- + recipient: age12zdn7x72zrgu9cdv8wdj7xfx42nz09nrwpc2g09cwx5fwdm0ry6qp5h4jp + encrypted_regex: ^(data|stringData)$ + lastmodified: "2026-12-04T05:28:22Z" + mac: ENC[AES256_GCM,data:goW5PeSFtc0ga5gTDAZpYFQ8xBTXA2dgOomUK9t9GX3T7nswhu6fmfXJ2zjqyYLKJ5wnVEY4pvwx9RThEpU0khcP8iBqyrzUvIEXUsoQ5lTegRxgyuowPKWBkQcrJPx5GEgHSJr5J6XlDKbbCeOW0SxnerPhpJ03ueh3yULPgKw=,iv:Z/hm3jpUXzWeabPXuecuAIm+bemjluy/xjas8dg7bUY=,tag:3coZnG6p2v6ZT0raG7b1IQ==,type:str] + version: 3.13.3