Skip to content

MLE-30243 Ensure password is sanitized in any logging#1950

Merged
rjdew-progress merged 1 commit into
developfrom
MLE-30243
Jun 24, 2026
Merged

MLE-30243 Ensure password is sanitized in any logging#1950
rjdew-progress merged 1 commit into
developfrom
MLE-30243

Conversation

@rjdew-progress

Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings June 23, 2026 21:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Ensures the ConnectionString helper in marklogic-client-api won’t expose passwords if it’s ever logged/printed, addressing MLE-30243.

Changes:

  • Added ConnectionString.toString() that redacts the password portion.
  • Added unit tests verifying password redaction both with and without a database path segment.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
marklogic-client-api/src/main/java/com/marklogic/client/impl/ConnectionString.java Overrides toString() to return a redacted connection string (password masked).
marklogic-client-api/src/test/java/com/marklogic/client/impl/DatabaseClientPropertySourceTest.java Adds tests asserting ConnectionString.toString() does not reveal the password.

@rjdew-progress rjdew-progress merged commit 14b807e into develop Jun 24, 2026
3 of 4 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.

4 participants