Automate Woodpecker secret sync after Harbor robot rotation #245
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/pal-e-platform#245
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?
Type
Feature
Lineage
Repo
forgejo_admin/pal-e-services(terraform manages Harbor robots) + Woodpecker API (secrets target)User Story
As the platform operator, I need Woodpecker CI secrets to stay in sync with Harbor robot accounts so that
tofu applydoesn't silently stale all downstream CI pipelines.Context
Harbor robot accounts are terraform-managed (
harbor_robot_account.service_ci). Woodpecker secrets are manually set per SERVICE_ONBOARDING.md Step 4. Whentofu applyrecreates a robot (new credentials), the Woodpecker secrets become stale, causing 401 Unauthorized on image push. This broke pal-e-docs-app (#234) — the robot was created by terraform but Woodpecker still had old creds.File Targets
~/pal-e-services/main.tformodules/— add Woodpecker secret provisioning via terraform or post-apply scriptscripts/sync-harbor-creds.sh— post-apply script that readstofu outputand updates Woodpecker secrets via APIAcceptance Criteria
tofu applythat rotates Harbor robots, Woodpecker secrets are automatically updatedTest Expectations
tofu applyon a test service → Woodpecker secret matches new robot credentialsConstraints
Checklist
Related
service-onboarding-sop— Step 4 (manual secret setup)