fix(security): scrub GIT_CONFIG_COUNT and secrets from checkpoint git env - #70332
fix(security): scrub GIT_CONFIG_COUNT and secrets from checkpoint git env#70332zapabob wants to merge 1 commit into
Conversation
|
Thanks for hardening the checkpoint Git environment. The premise is still present on current main: Problems
Suggested changes
Automated hermes-sweeper review. |
17a0d1e to
3db9c54
Compare
|
Rebased the checkpoint Git environment fix onto frozen official-main anchor Added a real Git child regression: an inherited Validation: the two new focused tests pass ( |
3db9c54 to
d5d08b5
Compare
|
Rebased onto the current official main fixed at 7a54ab2; new head d5d08b5. The checkpoint Git child environment still removes Git config injection variables, credential wrappers, and provider secrets. Local evidence after the replay: focused regressions 2 passed (47 deselected), Python compile passed, and git diff --check passed. Required GitHub checks are running for the new SHA. |
Summary
GIT_CONFIG_GLOBAL/SYSTEM, but Git still honoursGIT_CONFIG_COUNT/GIT_CONFIG_KEY_*/GIT_CONFIG_VALUE_*from the parent environment, allowing config injection (e.g.core.sshCommand) during background snapshots.GIT_SSH_COMMAND/ askpass / proxy wrappers and build the env viahermes_subprocess_env(inherit_credentials=False)so provider API keys are not visible to git credential helpers.Test plan
pytest tests/tools/test_checkpoint_manager.py::TestGpgAndGlobalConfigIsolation(5 passed)