Hotfix: Woodpecker OAuth login broken — FORGEJO_URL uses internal DNS #64
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#64
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?
Lineage
plan-pal-e-platform→ ad-hoc hotfix (discovered during PR #59 migration)Repo
forgejo_admin/pal-e-platformUser Story
As a platform operator
I want to log into Woodpecker via Forgejo OAuth
So that I can manage CI repos and secrets
Context
PR #56 changed
WOODPECKER_FORGEJO_URLto the internal service URL (http://forgejo-http.forgejo.svc.cluster.local:80) to fix TLS clone errors. This fixed server-side clone operations but broke browser-side OAuth — the OAuth redirect sends the browser to the internal DNS name which can't be resolved outside the cluster. Woodpecker supportsWOODPECKER_FORGEJO_CLONE_URLas a separate setting for clone operations, allowing the main URL to remain external for OAuth.File Targets
Files the agent should modify:
terraform/main.tf— split WOODPECKER_FORGEJO_URL into external (OAuth) + WOODPECKER_FORGEJO_CLONE_URL (internal, clones)Files the agent should NOT touch:
Acceptance Criteria
WOODPECKER_FORGEJO_URLuses external Tailscale URL for OAuth redirectsWOODPECKER_FORGEJO_CLONE_URLuses internal service URL for clone operationsTest Expectations
tofu validatepassescd terraform && tofu validateConstraints
tofu apply— this PR codifies the fix in mainChecklist
Related
plan-pal-e-platform