Repository navigation
fix: keep API keys out of DEBUG logs and pin publish-workflow actions - #103
Merged
Merged
Conversation
websockets traces every handshake header at DEBUG, so any application running with DEBUG logging wrote the X-API-Key / Authorization bearer token in clear text. The DEBUG-suppressing transport logger was only attached for execution-ownership connections; attach it to every websocket connection (initial connect and reconnects alike). Refs INF-242
The PyPI publish job holds an OIDC token that can publish the package, so a retargeted upstream tag would run with publish rights. Pin every third-party action to the commit its current tag resolves to; the org Renovate policy keeps these digests updated. Refs INF-249
sfishel18
approved these changes
Dec 1, 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.
What
X-API-Key/ bearer token in clear text. The driver already had a logger adapter that suppresses this, but only used it for execution-ownership connections; it now wraps every websocket connect and reconnect.wherobots/ci-tools@maincall is left as-is per org Renovate policy.Behavior change
websockets' DEBUG frame/ping tracing is no longer emitted on any connection. INFO and above are unchanged.
Tests
New tests drive websockets' real handshake-header logging at DEBUG and assert the key/token never appears, for
connect()andconnect_direct(), API key and bearer token, ownership on and off. A control test confirms the key leaks without the adapter.pytest: 370 passed; pre-commit clean.Rollout
Refs INF-242
Refs INF-249