fix(myorg-assistant): inject WEB_SECRET_KEY into all cronjobs #24
Reference in New Issue
Block a user
No description provided.
Delete Branch "platform-engineer-agent/k3s-cluster:fix/myorg-cronjob-websecretkey"
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?
CronJob containers import src.config.Settings() at startup, which requires WEB_SECRET_KEY. Only the Deployment set it; the 5 CronJobs crashed at import with a pydantic ValidationError, causing restart loops (myorg-git-sync ~5 restarts/15m per Prometheus). This pulls WEB_SECRET_KEY from the existing myorg-assistant-secret.
Diagnostic: increase(kube_pod_container_status_restarts_total[15m]) > 3 flagged myorg-git-sync-29732505-kng2j (container git-sync) at 5.2 restarts. Loki logs: pydantic_core._pydantic_core.ValidationError: 1 validation error for Settings -> web_secret_key (field required).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.