Repository navigation
feat(security): --offline on the three supply-chain CLIs (Part of #8624) - #8640
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
This was referenced Nov 19, 2026
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.
Part of #8624 (slice 4: the supply-chain CLIs).
Adds the shared
add_flag/enforce(gitgalaxy/tools/readiness/offline.py) tovault_sentinel,import_policy_gateandbinary_anomaly_detector, so each takes--offline(orGITGALAXY_OFFLINE=1) and installs the socket guard right after argument parsing. None of the three makes a network call; the guard turns that from a promise into an enforced property. A README row lists them as guaranteed.Tests:
tests/core_engine/test_offline_supply_chain_8624.py(6 cases) runs each CLI with the flag and with the env var and checks a deliberatesocket.create_connectionraisesOfflineViolation; without either, nothing is guarded.Gates:
audit_check.pyall clear;ruff format --checkclean. No parsing logic touched, so golden / ratchets not run.Class / Sibling gaps
Class: standalone tool CLIs under
gitgalaxy/tools/with an argparsemain()that do not yet install the offline guard. Handled so far: galaxyscope, completeness_report, audit_recorder (earlier slices), the three cobol_to_cobol reporters (#8635), and these three supply-chain CLIs.Sibling gaps (same mechanism, not here for the 5-file cap; one shared
add_flag+enforcepair and a test each):terabyte_log_scanning/pii_leak_hunter.py,terabyte_log_scanning/terabyte_log_scanner.pynetwork_auditing/full_api_network_map.pysensors/CLIs:libsurface.py,activity.py,change.py,reach.pycobol_to_cobolforges and slicers:cobol_compiler_forge.py,cobol_etl_unpacker.py,cobol_jcl_forge.py,cobol_schema_forge.py,cobol_dag_architect.py,cobol_microservice_slicer.pycobol_to_java:batch_test_harness.py,proof_reach.py,cobol_to_java_*_forge.py,cobol_to_java_guardrail.pyreadiness/assess.pyalready guards through its own path (Readiness scanner: deployable offline package — runs on the customer's side, no source leaves #4726);cobol_to_java/port_runner.pyis the opt-in LLM runner, which needs refusal by name rather than the flag.Remaining slices
full_api_network_map.py(3 files + test + README).sensors/CLIs (4 files; split in two).port_runner.pyrefusal by name.Co-Authored-By: Claude Sonnet 5.5 [email protected]
🤖 Generated with Claude Code