Introduce git.GitRunner as the sole git-op seam: the only place git is invoked. It owns subprocess execution, per-op timeout, error redaction, and auth delivery. Forge tokens move off the remote URL entirely onto a non-persisted per-op http.<host>.extraHeader, so they never reach the command line, a remote URL, or .git/config. Rewrite the mirror procedure to drive GitRunner and retire the URL-token helpers (_authed/_bare/_redact/_scrub_remote_tokens) plus the try/finally scrub -- their reason to exist vanishes. mirror_repo's signature and report stay unchanged; cli/migrate import the re-exported GitError/timeout unchanged. The procedure's ordering invariants are now locked by a recording-fake test, and an AST guard fails the suite if any git op bypasses the seam. Closes the 2026-08-11 audit's HIGH (token in GitError) and MEDIUM (token in .git/config) at one structural root cause. Closes #1
This commit is contained in:
1 parent
137734673d
commit
1613ec72b8
10 files changed
+669
-223
No files matched your search
@@ -0,0 +1,8 @@
|
||||
# Session Log Index
|
||||
|
||||
Complete history of session logs in this directory, newest first. One-line summaries — open a log for full detail.
|
||||
|
||||
<!-- write-log: full-index -->
|
||||
| Date | Type | File | Summary |
|
||||
|------|------|------|---------|
|
||||
| 2026-08-11 | issue | [20260811-issue1-gitrunner-sole-git-op-seam_log.md](20260811-issue1-gitrunner-sole-git-op-seam_log.md) | Introduce `git.GitRunner` as the sole git-op seam; rewrite mirror to drive it; retire URL-token helpers; closes audit HIGH A09 + MEDIUM A02 at the root. |
|
||||
Reference in new issue
Block a user