Skip to content

Conversation

@shuckc
Copy link
Member

@shuckc shuckc commented Oct 29, 2025

Fixes issue #34

Add masked URI to reconnection logic INFO messages to help distinguish multiple connections.

@shuckc shuckc requested a review from Copilot October 29, 2025 16:56
@shuckc shuckc force-pushed the fix-reconnect-credentials-error branch from 8117271 to e18eb92 Compare October 29, 2025 16:57
Copy link
Contributor

Copilot AI left a 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 a raise_bad_creds parameter
  • 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.

@shuckc shuckc force-pushed the fix-reconnect-credentials-error branch 2 times, most recently from f6691b6 to edc0a0c Compare October 29, 2025 17:05
@shuckc shuckc changed the title fix reconnection handling of CredentialsException - issue #34 fix reconnection handling of CredentialsException #34 Oct 29, 2025
@shuckc shuckc changed the title fix reconnection handling of CredentialsException #34 fix reconnection handling of CredentialsException Oct 29, 2025
@shuckc shuckc requested a review from Copilot October 29, 2025 17:06
@shuckc shuckc force-pushed the fix-reconnect-credentials-error branch from edc0a0c to f8245c7 Compare October 29, 2025 17:07
Copy link
Contributor

Copilot AI left a 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.

@shuckc shuckc force-pushed the fix-reconnect-credentials-error branch 2 times, most recently from 1d711c2 to ed0db59 Compare October 29, 2025 17:26
Add masked URI to reconnection logic INFO messages to help distinguish multiple connections.
@shuckc shuckc force-pushed the fix-reconnect-credentials-error branch from ed0db59 to 851e0c2 Compare October 29, 2025 17:27
@shuckc shuckc merged commit 6918163 into master Oct 29, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants