feat(fg): fix SSH push + Forgejo token minting + reliable key sync #13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/forgejo-keys-tokens"
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?
Fixes people being unable to push via SSH, and adds Forgejo API token minting to the CLI.
Root causes found:
fg clonegeneratedssh://git@host:2222/...but Forgejo SSH is on port 22 (2222 is the agent gitssh, which rejects keys). Now uses the scp-stylegit@host:owner/repo.git.forgejoUserIdwas already set. Now callsensureForgejoUserfirst, so keys reliably reach Forgejo.New:
createForgejoToken(forgejo-api): admin password-reset → basic-auth → mint (validated against live Forgejo; admin+Sudo is rejected by Forgejo).POST /api/fg/forgejo-token(provisions the Forgejo user, mints, returns the token once).fg forgejo-token: mints, stores in fg credentials, and registers with git credential store for HTTPS push.Full typecheck 9/9, agent build + tests pass.