amalsaidov opened a new pull request, #14866:
URL: https://github.com/apache/gravitino/pull/14866
### What changes were proposed in this pull request?
`FilesetCatalogOperations.getFileSystemWithCache()` built its
`GravitinoRuntimeException` message with the full configuration map:
```
"Failed to get FileSystem for fileset: path: %s, conf: %s", path, conf
```
This PR drops the `conf` map from the message, keeping the `path` context and
the original cause. A regression test verifies that dummy credential values
passed in the configuration do not appear in the thrown exception message.
### Why are the changes needed?
The configuration map can contain plaintext credentials such as
`s3-secret-access-key`. Callers that log the exception then log those
credentials. This mirrors the configuration-logging fix made in #14344.
Fixes #14861
### Does this PR introduce _any_ user-facing change?
The filesystem-initialization failure message no longer includes the
configuration map. The path and the underlying cause are preserved.
### How was this patch tested?
- Added `testGetFileSystemWithCacheDoesNotExposeCredentials`, which stubs
filesystem creation to fail and asserts the exception message omits the
dummy credentials while keeping the path and cause.
- `./gradlew :catalogs:catalog-fileset:spotlessCheck
:catalogs:catalog-fileset:test --tests
"org.apache.gravitino.catalog.fileset.TestFilesetCatalogOperations.testGetFileSystemWithCacheDoesNotExposeCredentials"`
— BUILD SUCCESSFUL.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]