Skip to content

Sanitise secrets from logs or debugging #363

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
AleksandarCole opened this issue Jun 9, 2025 · 0 comments
Open

Sanitise secrets from logs or debugging #363

AleksandarCole opened this issue Jun 9, 2025 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@AleksandarCole
Copy link
Collaborator

Is your improvement proposal related to a problem? Please describe.

Currently, when user enables debugging mode in their build scripts for troubleshooting purposes, all variable values including secrets are displayed in plain text in the build logs. This makes debugging more challenging as they often need to disable debug mode when working with sensitive values, which reduces their ability to effectively troubleshoot issues in their build pipeline

Describe the solution you'd like

I would like the build system to automatically mask/redact secrets in the output logs even when shell debugging is enabled. The system should detect when a value matches a configured secret and replace it with asterisks or a placeholder like [MASKED] in all log outputs. This would allow us to use full debugging capabilities while maintaining clean and safe build logs.
Secrets should be sanitised in UI in job logs too.

Describe alternatives you've considered

  • Manually wrapping each secret usage in the scripts to temporarily disable debugging
  • Using separate scripts without debugging for production builds
  • Post-processing logs to remove secrets before storage
  • Creating custom logging functions that filter out sensitive values

Additional context

No response

@AleksandarCole AleksandarCole added the enhancement New feature or request label Jun 9, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Roadmap Jun 9, 2025
@AleksandarCole AleksandarCole removed the status in Roadmap Jun 9, 2025
@AleksandarCole AleksandarCole moved this to Backlog in Roadmap Jun 9, 2025
@skipi skipi added the help wanted Extra attention is needed label Jun 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
Status: Backlog
Development

No branches or pull requests

2 participants