1.3 KiB
1.3 KiB
| id | type | title | tags | importance | confidence | created | updated | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| c5a9dff8-5ebe-4e5e-8494-c46333728db8 | fix | CT 302 Gitea push: embedded-credential URL rejected, use http.extraHeader instead |
|
0.6 | 0.8 | 2026-02-20T14:56:32.846201+00:00 | 2026-02-20T14:56:32.846201+00:00 |
Problem
Pushing from CT 302 (claude-runner, 10.10.0.148) to Gitea failed with 403 Forbidden, even though the token was valid. The remote URL had the token embedded in the URL:
https://cal:<token>@git.manticorum.com/cal/claude-runner-monitoring.git
Gitea rejected this format.
Fix
-
Set remote to plain HTTPS (no credentials in URL):
git remote set-url origin https://git.manticorum.com/cal/claude-runner-monitoring.git -
Configure persistent auth header in git config:
git config http.https://git.manticorum.com/.extraHeader 'Authorization: token <token>'
Token is stored in ~/.claude/secrets/claude_runner_monitoring_gitea_token on the workstation.
Notes
- SSH git remote also doesn't work from CT 302 — no SSH key registered with Gitea for root@claude-runner
- The
http.extraHeaderapproach applies to all repos undergit.manticorum.comfrom CT 302 - Credential helper approach failed due to shell escaping issues over SSH