-
Notifications
You must be signed in to change notification settings - Fork 1
fix reconnection handling of CredentialsException #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
8117271 to
e18eb92
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds URI password masking functionality for secure logging. When logging connection information, passwords in URIs are replaced with *** to prevent credentials from appearing in logs.
- Adds
mask_uri()function to mask passwords in URIs for logging - Updates
maintain_qipc_connection()to use masked URIs in log messages and adds araise_bad_credsparameter - Includes unit tests for the new
mask_uri()function
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| aiokdb/client.py | Implements mask_uri() function and updates logging in maintain_qipc_connection() to use masked URIs; adds new function parameter |
| test/test_client_server.py | Adds unit tests for the mask_uri() function with various URI formats |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
f6691b6 to
edc0a0c
Compare
edc0a0c to
f8245c7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
Comments suppressed due to low confidence (1)
test/test_client_server.py:257
- Corrected spelling of 'recieved' to 'received'.
print(f"recieved banner {r.aJ()}")
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
1d711c2 to
ed0db59
Compare
Add masked URI to reconnection logic INFO messages to help distinguish multiple connections.
ed0db59 to
851e0c2
Compare
Fixes issue #34
Add masked URI to reconnection logic INFO messages to help distinguish multiple connections.