Skip to content

Redact access token before logging in setClientInfoProperty#1498

Open
sreekanth-db wants to merge 1 commit into
databricks:mainfrom
sreekanth-db:fix/sec-20593-token-logged-before-redaction
Open

Redact access token before logging in setClientInfoProperty#1498
sreekanth-db wants to merge 1 commit into
databricks:mainfrom
sreekanth-db:fix/sec-20593-token-logged-before-redaction

Conversation

@sreekanth-db

Copy link
Copy Markdown
Collaborator

Summary

Reorders DatabricksSession.setClientInfoProperty so the access-token redaction happens before the DEBUG trace line, preventing the token value from being written to logs. The real token is still passed to resetAccessToken for rotation.

Changes

  • DatabricksSession: move the token-handling block above the LOGGER.debug call; the logged value is now masked to ****.

Testing

  • Manually verified the change against a live SQL warehouse (raw token no longer appears in the DEBUG log; **** is logged instead).

Full detail tracked privately in the associated security ticket.

This pull request and its description were written by Isaac.

The token-rotation block now runs before the DEBUG log line, so the
access token is masked to **** before it is logged. resetAccessToken
still receives the real token.

Co-authored-by: Isaac
Signed-off-by: Sreekanth Vadigi <sreekanth.vadigi@databricks.com>
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.

1 participant