Repository navigation
feat: route workspace Git through fixed read and push proxies - #65
Merged
Merged
Conversation
oldsj
force-pushed
the
port/git-proxies
branch
from
November 10, 2026 18:01
51a8851 to
a01efbf
Compare
oldsj
force-pushed
the
port/session-credentials
branch
from
November 10, 2026 18:01
2a8c329 to
54f0a3a
Compare
oldsj
force-pushed
the
port/git-proxies
branch
from
November 10, 2026 18:14
a01efbf to
dc15866
Compare
oldsj
force-pushed
the
port/session-credentials
branch
from
November 10, 2026 18:14
54f0a3a to
beeedd3
Compare
oldsj
changed the base branch from
port/session-credentials
to
mainloop-substrate-1-0
November 10, 2026 18:27
Route native workspace Git through distinct fixed read and push proxies, preserve canonical repository identity, and enforce complete compiled credential/network policy and exact Git-purpose control tuples. Qualify bootstrap and non-turn readiness with retained local fixtures; installation and live isolation remain separate gates. Signed-off-by: James Olds <12104969+oldsj@users.noreply.github.com> (cherry picked from commit cd91422)
Workspaces now get refs/remotes/origin/<default> and origin/HEAD after checkout, so tools that diff against origin/main work. An unspecified depth now means full history, giving feature branches a merge-base with the default branch; an explicit positive depth stays shallow. Failures to fetch the default branch are logged and do not fail the bootstrap. Signed-off-by: James Olds <12104969+oldsj@users.noreply.github.com> (cherry picked from commit 3afcc2d)
oldsj
force-pushed
the
port/git-proxies
branch
from
November 10, 2026 18:28
dc15866 to
0cb485d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Third part of the per-Session Git workspace port: 0.4 cd91422 (#14) and 3afcc2d (#17), cherry-picked with
-xand adapted. Stacked on the session-credentials PR.What it adds
Harness.spec.git.readProxyOrigin/pushProxyOrigin: the trusted proxy profile. Only the two fixed Mainloop proxy origins are accepted; push requires read; the profile excludescredentialSecretRefand allows onlygithub.comas the repository identity. CRD validation enforces this.https://github.com/...remote to the read proxy for fetch and the push proxy for push. Credentials are per-Session references; nothing Git-related is compiled into the revision.mainloop-git-authSecret, or bind a revision credential on a proxy host.Adapted to upstream
Credential.Origininstead of a hostname.*.github.com-style destinations; the test that expected every wildcard to be rejected was updated.Limits to know
EgressPolicygrant added later is not checked by it, so a grant could still open GitHub directly for a proxy Harness. Not addressed here; worth deciding whether grants should be validated the same way.Not ported in this PR
gitInstanceNamespaces): it edits the allowlist and the preparation code, neither of which exists on this branch yet. It follows them. Until then only themainloopnamespace proxies are accepted, so mainloop-dev cannot use Git transport.TestCompileTrustedGitCompleteUnioncases (they use the droppedextraHTTPSOriginsand the 0.4 runtime-generation policy builder), the gRPC test that exercises the allowlist, the Suspend/Resume warm-up readiness test (that API is gone), and the proxy e2e test.Tests
Pass locally:
./api/...(CRD CEL cases),./core/internal/translator/...(proxy policy, schema, effective egress),./core/internal/egress,./core/internal/substrate,./harness/runtime/...(proxy rewriting, default-branch fetch),./harness/claude/...,./harness/codex/...,./core/internal/grpcserver,./core/internal/service/session. Not run: a real clone or push through the proxies on a cluster.🤖 Generated with Claude Code
🤖 Generated with Claude Code