Live: fleet/insights prod wedged on stale ecr-cred pull secret (git.benjivers.com leader) #215
Labels
No labels
bug
discussion
duplicate
enhancement
goal
help wanted
horizon:backlog
horizon:governance
horizon:mvp
invalid
operator-decision
question
roadmap
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-platform/mitosis#215
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found during the AWS audit (PR #212, finding L3). This is a live issue on the
git.benjivers.comEC2 k3s leader.Symptom
fleet/insightsprod HelmRelease isUpgradeFailed:with a recurring pod Warning:
The pod happens to still be
Running(0 restarts) on the already-pulled image, but the release can't complete and any reschedule would fail to pull.fleet/{www,relay,review}andinvoicing/fleet-invoiceare healthy — so it's this release/secret, not cluster-wide.Root cause
<acct>.dkr.ecr.us-east-1.amazonaws.com/...) using animagePullSecrets: [ecr-cred].ecr-credcurrent, so the secret goes stale / missing and the pull-secret lookup fails.Why this is NOT a plat/mitosis source change
ecr-creddoes not exist anywhere in the mitosis source (grep -rn ecr-cred bin/ deploy/→ nothing).bin/germinate:71-72,:813— "kubelet pulls via the node's ECR role"). Default k3s (what this leader runs) is meant to pull from the in-cluster Forgejo registry via the127.0.0.1:31100mirror (registry-node-config), not ECR.ecr-credout-of-band; that mechanism lives in the leader's own gitops (plat/gitopsongit.benjivers.com), not here.Fix (lands in the daughter gitops, tracked here)
git.benjivers.complat/gitops, add (or repair) an ECR-token refresher CronJob — periodicallyaws ecr get-login-password→ recreate theecr-creddocker-registry secret in each app namespace, on a schedule well under the ~12h expiry (e.g. every 6–8h). (Pattern already used ad hoc indeploy/eks/mirror-images-eks.sh:84-88, which notes the 12h expiry.)flux reconcile/ rollfleet--insights--prodto clear the wedgedUpgradeFailed.Follow-up worth deciding (real plat/mitosis question)
Should mitosis support an AWS/ECR-backed k3s leader as a first-class profile (shipping the ecr-cred refresher in the germinate gitops), or should the leader be moved back to the default in-cluster-registry path so ECR +
ecr-credisn't needed at all? Right now it's an unsupported, hand-wired config that silently rots every 12h.Ref: audit PR #212 →
docs/ops/aws-audit-2026-08-25.md(L3, H9).