fix: use internal Forgejo URL for PyPI publish #17
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-mcp!17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "16-fix-pypi-publish-internal-url"
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
Replace the
FORGEJO_PYPI_URLenvironment variable (sourced from a Woodpecker secret pointing to the external Tailscale funnel) with a hardcoded internal k8s service URL. This eliminates TLS EOF errors that occur when twine uploads packages through the funnel from inside the cluster.Changes
.woodpecker.yml-- changedFORGEJO_PYPI_URLfromfrom_secret: forgejo_pypi_urlto hardcodedhttp://forgejo-http.forgejo.svc.cluster.local/api/packages/forgejo_admin/pypiTest Plan
python3 -c "import yaml; yaml.safe_load(open('.woodpecker.yml'))"Review Checklist
.woodpecker.ymlmodifiedRelated Notes
todo-woodpecker-tls-clone-fix(traceability)PR #17 Review
BLOCKERS
None.
NITS
Hardcoded internal URL -- The URL
http://forgejo-http.forgejo.svc.cluster.local/api/packages/forgejo_admin/pypibakes in the Forgejo namespace (forgejo), service name (forgejo-http), and package owner (forgejo_admin). If any of these change, the pipeline silently breaks. Consider adding a comment in the YAML noting this dependency. Non-blocking since this matches the pattern already established in PR #15 for the clone URL fix.Plan slug prefix -- The Related section references
todo-woodpecker-tls-clone-fix. Thetodo-prefix is atypical compared to theplan-prefix convention seen in other repos. Not blocking -- just noting for consistency awareness.SOP COMPLIANCE
16-fix-pypi-publish-internal-url-> issue #16)todo-woodpecker-tls-clone-fix)SUMMARY
Minimal, well-scoped fix. Replaces the external Tailscale funnel URL (sourced from a Woodpecker secret) with a hardcoded k8s-internal service URL for PyPI publishing. This eliminates TLS EOF errors when twine uploads from inside the cluster. The approach is consistent with the clone URL fix in PR #15 (issue #14). Credentials remain properly sourced from secrets. No security concerns.
VERDICT: APPROVED