Skip to content

Conversation

yacchin1205
Copy link

@yacchin1205 yacchin1205 commented Mar 3, 2025

What does this PR do?

Fixes #706 - I believe it would be good if secret information contained in the parameters was masked with a string like ******.

Obfuscation of sensitive parameters

By applying this pull request, papermill will obfuscate the value stored in the injected-parameters cell and notebook metadata for parameters that contain strings like token and secret. I have not implemented obfuscation of these parameters in the output cell because it is not simple to do so and I assume it would have a significant impact.
For security reasons, I considered that it would be better to enable obfuscation by default. So I added the option --no-obfuscate-sensitive-parameters to turn it off.

In addition, the parameters that should be marked as sensitive are listed in papermill.utils.SENSITIVE_PARAMETER_PATTERNS. The --sensitive-parameter-patterns option can be used to customize the list.

@yacchin1205 yacchin1205 marked this pull request as ready for review March 3, 2025 12:01
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.

Remove parameters from notebook output
1 participant