Repository navigation
Dev tooling: close 12 CodeQL py/* alerts (path containment, TLS 1.2 floor, no secret echo) - #557
Merged
Merged
Conversation
… floor, host parse for the Sentry region, linear ladder regex, no secret echo CodeQL py/* alerts #4-7, #8, #10, #11, #16-20. serve_fixtures resolves and checks containment before isfile; every dev SSLContext sets minimum_version TLS 1.2; gen-release-audit parses the DSN host instead of a substring test; the census arm regex no longer backtracks; plxnative-lab start stops echoing the session secret (pkg/lab.json, 0600, carries it); remote-dpad echoes only a password it generated. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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.
What
Fixes 12 CodeQL
py/*alerts in dev tooling (#4-#8, #10, #11, #16-#20):py/path-injection-tests/serve_fixtures.pynow resolves a request target and checks containment under the fixture root in one helper (_contained) before anyisfile/open, including the ABR rung-fallback probe.py/polynomial-redos-tools/abr-production-census.py: theRung::arm regex no longer nests an ambiguous repeat, so it cannot backtrack.py/clear-text-logging-sensitive-data-tools/plxnative-lab startno longer echoes the session secret (it is written topkg/lab.json, created 0600 from the first byte; the JSON output names the path).tools/remote-dpad.pyprints a password only when it generated it.docs/lab-diagnostics.mdupdated to match.py/insecure-protocol- TLS 1.2 floor (minimum_version) on the dev SSLContexts inplxnative-lab(server, selftest server and client),tests/mock_pms.py, andrust-modules/net/src/net/h2_reset_fixture.py.py/incomplete-url-substring-sanitization-ci/gen-release-audit.pyparses the DSN host withurlparseinstead of a substring test.Not run
tools/remote-dpad.pyneeds the TV and the TV lock hook blocks it; the change is a print-only branch.h2_reset_fixture.pyis driven by cargo tests; only a one-lineminimum_versionset was added.Alerts
GitHub alerts only close after this merges and CodeQL rescans
main.Verification (committed tree, clean before and after)
make checkexit 0; everytest result:line wasokwith 0 failed, e.g.:python3 -m unittest tests.test_harness:Ran 416 tests in 250.425s/OK.python3 tools/plxnative-lab selftest:selftest passed.🤖 Generated with Claude Code