Fjord-Account hosts: git clone/push not routed through the gateway (API-only parity gap) #222
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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
For a Fjord-Account host, fj drives the forge at the API level through the gateway, but git operations (clone/push/fetch) do not flow through the gateway. This is the one remaining parity gap between a Fjord-Account host and a PAT host.
Evidence (HEAD
1251c71)fj auth setup-gitexplicitly refuses for Fjord hosts (src/cli/auth_setup_git.rs:18):web_base_urlfor aFjordAccounthost (src/client/resolve.rs:100) resolves git URLs against the instance's cacheddefault_instance_public_url(the raw forge origin), and there is no fj credential helper installed for that host. Sogit clone/git push/git fetchtarget the forge directly with no fj-provided credential.By contrast, all REST/API ops route correctly through
gateway_base_url(platform, default_instance_id)withAuthorization: Bearer <jwt>(src/client/mod.rs:66-82; integration testfjord_client_routes_through_gateway_with_bearer).Impact
Any fj workflow that shells out to git against a Fjord-selected instance (
pr checkout,repo clone,develop, stack push) has no working credential. API-only flows are unaffected.Possible directions (not a decision)
git-gateway-style path), orsetup-gitrefusal).Origin
Surfaced by the Fjord-account login spike (managed + external forge control via
fj instances+ the gateway). API-level control is complete and code-proven; this git seam is the delta to full parity.