Skip to content

fix: redact catalog options from NessieCatalog log - #17806

Open
waterWang wants to merge 1 commit into
apache:mainfrom
waterWang:fix/nessie-catalog-secret-leak
Open

fix: redact catalog options from NessieCatalog log#17806
waterWang wants to merge 1 commit into
apache:mainfrom
waterWang:fix/nessie-catalog-secret-leak

Conversation

@waterWang

Copy link
Copy Markdown

Problem

When warehouse is not set, NessieCatalog.warehouseLocation() logs the entire catalogOptions map at WARN level, then throws. The map includes sensitive credentials such as Nessie auth tokens, S3 secret access keys, and session tokens.

Fix

Remove the catalogOptions map from the WARN log message. Only the catalog name is logged, preserving the useful diagnostic while avoiding credential leakage.

Affected

org.apache.iceberg:iceberg-nessie

Fixes #17804

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Do not log Nessie catalog options map (tokens and secrets) when warehouse is unset

1 participant