plusplusjiajia opened a new pull request, #2960:
URL: https://github.com/apache/iceberg-rust/pull/2960
## What changes are included in this PR?
`SessionContext`'s derived `Debug` printed `properties` verbatim, while
session properties routinely carry secrets (`token`, `s3.secret-access-key`,
...). A hand-written `Debug` now redacts values of sensitive keys, matched
case-insensitively and separator-agnostically (`AWS_SECRET_ACCESS_KEY`,
`clientSecret`, `adls.connection.string`, ...) since property keys carry no
casing contract — so `Credential`'s redaction isn't undone by the map next to
it.
## Are these changes tested?
A table-driven test pins `is_sensitive_prop` across casings and separators
plus negative cases, and a `Debug` formatting test asserts secret values are
redacted while plain values remain visible.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]