dongjoon-hyun opened a new pull request, #746:
URL: https://github.com/apache/spark-kubernetes-operator/pull/746

   ### What changes were proposed in this pull request?
   
   This PR aims to redact sensitive configuration values in operator logs.
   
   - Add a new config option, `spark.redaction.regex`, reusing Apache Spark's 
redaction key and default pattern (`(?i)secret|password|token|access[.]?key`).
   - Add `Utils.redactSensitiveInfo` which replaces a value with 
`*********(redacted)` when its key or value matches the pattern.
   - Apply redaction to the configuration logging on startup (`spark.logConf`).
   - Escape pipes in `DocTable` cells and regenerate 
`docs/config_properties.md`.
   
   ### Why are the changes needed?
   
   When `spark.logConf` is enabled, the operator prints all configuration 
properties without filtering, exposing sensitive values like `*.password` or 
`spark.hadoop.fs.s3a.access.key` in plain text.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, sensitive configuration values are now printed as 
`*********(redacted)`, and the pattern is customizable via 
`spark.redaction.regex`.
   
   ### How was this patch tested?
   
   Pass the CIs with the newly added test cases.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Fable 5


-- 
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]

Reply via email to