Repository navigation
The operations guide says LOOM_CODE_GIT_CA_FILE sets trust, not reach - #1580
Open
KaloyanNaumov wants to merge 2 commits into
Open
KaloyanNaumov wants to merge 2 commits into
KaloyanNaumov wants to merge 2 commits into
Conversation
… it does not The guide's paragraph for LOOM_CODE_GIT_CA_FILE read as if the setting made a forge under a private authority indexable. It settles trust only: in the repository-job sandbox the egress proxy still refuses a remote whose name resolves to a loopback, private or link-local address, and no setting admits one, so such a forge indexes only as an operator repository on a host without the sandbox. The guide now says so. It also says what the bundle applies to (every git a repository job runs, the compiler tier's dependency fetches and submodule updates included, so the bundle must hold the public roots when any of those reach a public host) and that the path is not checked when the setting loads: it must be absolute and inside the sandbox's read-only /etc/ssl, and a relative or `~/` path, or a link leaving /etc/ssl, fails in git's own words. The "CA bundles" paragraph now counts three bundles and says which one git uses through the proxy. The unit test imports asyncio at the top of the module. No behaviour changes. Signed-off-by: Kaloyan Naumov <knaumov@gmail.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
zlareb1
requested changes
Nov 26, 2026
zlareb1
left a comment
Member
There was a problem hiding this comment.
The trust and network distinction matches the implementation. The CA-path instructions need one correction.
KaloyanNaumov
marked this pull request as draft
November 26, 2026 20:49
Contributor
Author
|
Thanks for the review. Converting to draft while I address it; a new head and the replies will follow, so no need to look at this head again. |
A link out of /etc/ssl can still work: the sandbox also mounts /usr and /etc/ca-certificates read-only, so a link into /usr/share/ca-certificates resolves to the same file. Say the target must be visible to the job and keep /etc/ssl as the suggested location. Signed-off-by: Kaloyan Naumov <knaumov@gmail.com>
KaloyanNaumov
marked this pull request as ready for review
November 26, 2026 21:05
zlareb1
approved these changes
Nov 26, 2026
zlareb1
left a comment
Member
There was a problem hiding this comment.
The guide now covers symlink targets in the mounted certificate and system trees. The CA precedence and separate network checks match the Git job configuration.
This branch has not been deployed
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.
Refs: #1537
TL;DR: Follow-up to #1549. The operations guide now says what
LOOM_CODE_GIT_CA_FILEsettles (trust, not reach), what the bundle applies to, and that its path is not checked at load. No behaviour change.Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
The operations guide says that
LOOM_CODE_GIT_CA_FILEsettles trust but not reach, applies to every git a repository job runs, and is not checked when it loads.Why
Follow-up to #1549, which merged at its first head. Review after the merge found the guide's paragraph reading more broadly than the code:
vet_host, public addresses only) still refuses a remote on a loopback, private or link-local address, and no setting admits one. A forge on a private address indexes only as an operator repository on a host without the sandbox. The guide now says so.LOOM_CODE_GIT_PROXY_CA_FILE, andLOOM_CODE_GIT_PROXY_TLS_CA_FILE. The paragraph now names which one git uses through the proxy./etc/ssl,/etc/ca-certificatesand/usrread-only,/etc/sslstays the suggested place, and a link works when its target is inside one of those trees. A relative or~/path, or a link whose target is outside them, fails in git's own words.The unit test's
import asynciomoves to the module top. Validating the path at load would be a behaviour change and is not in this PR.Tests
tests/unit/test_gitrepo_ca_file.pyandtests/unit/test_public_copy.py: the guide's two tests plustests/unit/test_doc_links.py: 288 passed with the public-copy and doc-link suites. No test fails before this change; it adds no behaviour.scripts/gates/function_length_gate.pypass.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (an agent wrote most of the diff): Claude Code wrote the diff and the tests. Checked: I reviewed the whole diff and its tests; the gate runs listed under Tests are the agent's, against
mainat the same commit.I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make test-unitand applicable integration results are reported by CI; a full local run is not required before pushing.docs/reference/configuration.mdand thedocs/reference/tables (python scripts/codegen/docs_reference.py), the reach manifest,schemas/schema.sql(make schema-dump) and the Codex plugin copies (python3 scripts/codegen/agent_plugin_sync.py).main; no merged migration is edited.hooks/,lib/,bin/,skills/,.mcp.json, the Codexplugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.npm --prefix frontend run build) and its tests pass, iffrontend/changed.docs/describe the system as it now is, and this description names any operator steps and wire changes.tests/unit/test_public_copy.py).git commit -s), as CONTRIBUTING.md asks.Note
Low Risk
Documentation and test import reorder only; no changes to git or sandbox behavior.
Overview
Documentation-only follow-up to align the operations guide with how repository-job git actually uses TLS settings—no runtime behavior changes.
The
LOOM_CODE_GIT_CA_FILEsection now states the PEM bundle applies to every git invocation in a repository job (dependency fetches and submodule updates included), that Loom does not validate the path at load time (absolute paths under sandbox-visible mounts such as/etc/ssl), and that the setting controls trust only: sandbox egress still blocks remotes that resolve to loopback, private, or link-local addresses.The “The CA bundles” subsection under git-through-a-forward-proxy is updated from two bundles to three, mapping
LOOM_CODE_GIT_CA_FILE,LOOM_CODE_GIT_PROXY_CA_FILE, andLOOM_CODE_GIT_PROXY_TLS_CA_FILEto git’shttp.sslCAInfovshttp.proxySSLCAInfoand when each applies.In
tests/unit/test_gitrepo_ca_file.py,import asynciomoves to the module top (style only).Reviewed by Cursor Bugbot for commit 06978e4. Bugbot is set up for automated code reviews on this repo. Configure here.