Music metadata sync runs as an hourly CronJob under its own workload identity #1017

Merged
merge-queue merged 1 commit from pipt-88-bgm-sync-cronjob into main 2026-11-30 14:08:25 -08:00
Owner

The BGM metadata sync moves from a hand-run workflow to the chart's chess-tactics-bgm-sync CronJob (hourly; it never overwrites a title already set), running backend/bgm-sync.mjs from the app image. It gets its own UAMI and ServiceAccount (tofu/identity.tf); the container-scoped writer role moves from the CI service principal to it, so CI loses blob write and the app identity stays read-only. The CronJob renders once bgmSync.clientId is pinned from the tofu output, in a follow-up PR after this apply. Removes .forgejo/workflows/sync-bgm-metadata.yml and tools/bgm/.

Work package: https://openproject.home.romaine.life/wp/PIPT-88

The BGM metadata sync moves from a hand-run workflow to the chart's chess-tactics-bgm-sync CronJob (hourly; it never overwrites a title already set), running backend/bgm-sync.mjs from the app image. It gets its own UAMI and ServiceAccount (tofu/identity.tf); the container-scoped writer role moves from the CI service principal to it, so CI loses blob write and the app identity stays read-only. The CronJob renders once bgmSync.clientId is pinned from the tofu output, in a follow-up PR after this apply. Removes .forgejo/workflows/sync-bgm-metadata.yml and tools/bgm/. Work package: https://openproject.home.romaine.life/wp/PIPT-88
Music metadata sync runs as an hourly CronJob under its own workload identity, replacing the manual workflow (PIPT-88)
All checks were successful
Suite cluster-service / check-image (pull_request) Has been skipped
Suite cluster-service / publish (pull_request) Has been skipped
Suite web-app / publish (pull_request) Has been skipped
Suite web-app / publish-static (pull_request) Has been skipped
Suite default / check-logs (pull_request) Successful in 7s
Checks / check-docs (pull_request) Successful in 26s
Suite tofu / scope (pull_request) Successful in 23s
Suite default / check-fetches (pull_request) Successful in 7s
Suite cluster-service / check-manifests (pull_request) Successful in 7s
Suite tofu / apply (push) Has been skipped
Suite tofu / reused-checks (push) Has been skipped
Suite web-app / scope (push) Has been skipped
Suite web-app / check-image (push) Has been skipped
Suite web-app / publish (push) Has been skipped
Suite web-app / publish-static (push) Has been skipped
Suite web-app / reused-checks (push) Has been skipped
Suite default / scope (pull_request) Successful in 23s
Suite tofu / apply (pull_request) Has been skipped
Suite web-app / scope (pull_request) Successful in 30s
Suite web-app / check-test (backend) (pull_request) Successful in 1m59s
Suite cluster-service / scope (pull_request) Successful in 24s
Suite default / check-rules (pull_request) Successful in 7s
Suite default / reused-checks (pull_request) Successful in 8s
Suite cluster-service / reused-checks (pull_request) Successful in 8s
Suite tofu / check-plan (pull_request) Successful in 32s
Suite tofu / reused-checks (pull_request) Successful in 6s
Suite web-app / check-image (pull_request) Successful in 1m49s
Suite web-app / reused-checks (pull_request) Successful in 4s
Suite web-app / check-test (frontend) (pull_request) Successful in 3m50s
merge-queue landed on main
d94d341de0
merge-queue deleted branch pipt-88-bgm-sync-cronjob 2026-11-30 14:08:25 -08:00
Sign in to join this conversation.
No description provided.