fix: remove redundant :80 from internal Forgejo URLs #217
No reviewers
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!217
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "203-remove-port-80-from-internal-forgejo-urls"
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?
Summary
Removes the explicit
:80port from all internal Forgejo URLs in pal-e-platform. Port 80 is the HTTP default and redundant, but ArgoCD does string comparison on repo URLs for credential matching -- explicit:80causes mismatches with credential templates that omit it. This aligns pal-e-platform with the same fix already merged in pal-e-services (PR #37, commit 6b4267d).Changes
terraform/modules/ci/main.tf-- remove:80fromWOODPECKER_FORGEJO_URLenv varterraform/modules/monitoring/main.tf-- remove:80from Blackbox exporter Forgejo uptime target and DORA exporterFORGEJO_URLconfig map entry.woodpecker.yaml-- remove:80from clone step git remote, plan comment API call, and issue creation API call (3 occurrences)scripts/update-kustomize-tag.sh-- remove:80from git clone URL templatescripts/woodpecker-update-tag-step.yaml-- remove:80from script download URLExpected tofu plan impact on next apply:
Test Plan
tofu fmt -checkpasses on both affected modulestofu apply: Woodpecker can reach Forgejo, Blackbox uptime probes succeed, DORA exporter collects metricsReview Checklist
:80URLs (woodpecker-server, grafana, harbor, argocd, keycloak) left untouched to avoid scope creepdocs/spikes/125-ci-bootstrap-resilience.md) intentionally left unchanged -- historical documentationRelated Notes
QA Review
Scope: 5 files, 8 additions, 8 deletions. All changes are string-only substitutions removing
:80from internal Forgejo HTTP URLs.Checks
:80URLs removed from code files (tf, yaml, sh):80URLs untouched (woodpecker-server, grafana, harbor, argocd, keycloak)docs/spikes/125-ci-bootstrap-resilience.mdpreserves original URLstofu fmt -check -recursiveon modules:80removal from internal Forgejo URLs)Closes #203presentNits
WOODPECKER_URLin the DORA exporter ConfigMap (monitoring/main.tf:446) still has:80forwoodpecker-server.woodpecker.svc.cluster.local:80. This is not a Forgejo URL so it is correctly out of scope for this PR, but could be a follow-up consistency fix.VERDICT: APPROVE
PR #217 Review
DOMAIN REVIEW
Tech stack: Terraform/HCL (Helm provider), Woodpecker CI YAML, shell scripts. This is an infrastructure string substitution PR -- removing redundant
:80from HTTP Forgejo URLs across 5 files to fix ArgoCD credential string-matching.Correctness: All 8 substitutions are mechanically correct -- each removes only the
:80suffix fromhttp://forgejo-http.forgejo.svc.cluster.local:80URLs. Port 80 is the HTTP default; omitting it produces a semantically identical URL. The fix aligns with the already-merged pal-e-services PR #37.Scope discipline: Verified that non-Forgejo
:80URLs are correctly untouched. The following services retain their explicit:80and are out of scope: woodpecker-server, grafana, harbor-core, argocd-server, keycloak, westside-dev, platform-validation. This is the right call -- the bug is specifically about ArgoCD repo URL credential matching against Forgejo.Terraform impact: Changes touch only string values inside
yamlencode()blocks andkubernetes_secret_v1.data. No HCL structural changes. Expected tofu plan: in-place updates to Woodpecker Helm release, Blackbox exporter Helm release, and DORA exporter ConfigMap. No destroy/recreate risk.Shell script (
update-kustomize-tag.sh): The:80was appended to the${FORGEJO_HOST}variable. Removal is correct -- the default value forFORGEJO_HOSTon line 31 isforgejo-http.forgejo.svc.cluster.local(no port), so the old code was adding:80redundantly.Spike docs:
docs/spikes/125-ci-bootstrap-resilience.mdcorrectly left unchanged -- historical documentation should not be rewritten.BLOCKERS
None.
NITS
DORA exporter
WOODPECKER_URLstill has:80(terraform/modules/monitoring/main.tfline 446):"http://woodpecker-server.woodpecker.svc.cluster.local:80". While this PR correctly scopes to Forgejo-only URLs (and this is a Woodpecker URL, not Forgejo), the same redundant:80pattern exists for Woodpecker. If Woodpecker also does string comparison on URLs for any internal matching, this could bite later. Consider a follow-up ticket to normalize all:80on HTTP services, or leave a comment explaining why only Forgejo URLs needed this fix.Blackbox targets retain
:80on non-Forgejo services: Same class of inconsistency for woodpecker, grafana, harbor, argocd, keycloak, westside-dev, platform-validation. Low risk since Blackbox just HTTP-probes these and does not do string matching, but the inconsistency in style is worth a tracking note.SOP COMPLIANCE
203-remove-port-80-from-internal-forgejo-urlsreferences issue #203Closes #203plus cross-references to pal-e-services PR #37, issue #36, and platform issue #143:80removalfix: remove redundant :80 from internal Forgejo URLs)PROCESS OBSERVATIONS
VERDICT: APPROVED