fix: diagnose Registry authentication without exposing secrets #3
Loading…
Reference in a new issue
No description provided.
Delete branch "diagnose/public-registry-auth"
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?
Owner requested concrete diagnosis of five CI Registry login failures, without exposing credentials or changing permissions. Add a manual main-only read-only diagnostic on the existing dind runner. Uses existing CI org variable/secret only inside CI; no secret export or replacement. Fixed existing trusted internal Forgejo HTTP plane (documented infra/forgejo-deployment/forgejo-runner-dind/docs/dind-security.md); redirects/proxies disabled, no TLS verification bypass. GET identity/token/registry endpoints only; output fixed status/booleans and allowlisted granted actions; never response bodies, tokens, usernames or fingerprints. No image build/push, secret/permission modifications, deployment or frozen product changes.
Author self-review codex: 5 behavior tests PASS (missing input/no requests,401 responses never leak input/body,identity mismatch and grant filtering,redirect refusal,malformed claims); CI invokes same tests. Existing product unchanged from reviewed and green CI6. Syntax/diff PASS. This diagnoses configured CI token inside its authorized runtime; interactive PAT is not substituted. Canonical docs/reference/06-versioning-and-release-train.md; refs docs#293. Exact-head independent review and all CI before merge/run.
HEAD
ae5884904cBase
1eec47261fREGISTRY-AUTH-DIAGNOSIS-20261019 — independent non-author formal APPROVED at exact HEAD
ae5884904c/ base1eec47261f; author codex. Reviewed all four changed files, including actual 79-line Python diagnostic and five safety tests. Manual workflow_dispatch is scoped via exact github.repository == xtrape-project/linux-ops-widget-nodejs and refs/heads/main; it does NOT build, push, change repository permissions/secrets, or edit product code. Its single runtime step receives REGISTRY_USER from Actions variable with secret fallback and REGISTRY_TOKEN from Secret; Python requests use fixed existing trusted forgejo.docker HTTP LAN endpoint with explicit Host, ProxyHandler({}) and NoRedirect, 20s timeout, GET-only /api/v1/user, /v2/token and /v2/ probes. Input secrets are only in Authorization headers (never URI), and output is JSON of presence/outer-whitespace booleans, HTTP status or transport_error, token owner match boolean, and filtered target repository pull/push actions; no raw body, login, token, JWT or fingerprint is printed. JWT access parsing restricts claims to exact xtrape-project/linux-ops-widget-nodejs repository and pull/push. Tests cover missing credentials (no request), 401 with injected secret body (no leak), identity mismatch and scoped grants, no redirect and invalid claims. Existing trusted HTTP network plane and runner Python availability are prerequisites for later real execution; absence or registry behavior must not be inferred before real manually authorized dispatch. Five tests PASS is author evidence only; new exact HEAD CI pending. Read-only probes describe authorization responses, do NOT demonstrate a real registry write. No merge, dispatch, secret/permission changes or Host2 deployment.Author Merge Readiness Confirmation — codex. HEAD
ae5884904c/ base1eec47261f. Five diagnostic safety tests PASS; exact HEAD CI validate/dependency-audit/secret-scan all success; independent chatgpt formal review5379 APPROVED, current and not dismissed. No unresolved blocker identified. Manual read-only CI diagnostics only, no product/permission/secret changes, no build/push/deploy. Ready for exact-head guarded merge under Owner diagnostic authorization.