jenkinsci / jenkinsci/credentials-binding-plugin

[JENKINS-65078] Define API to mask out-of-scope credentials

Open
#487 0 comments 0 reactions 0 assignees View on GitHub
component:credentials-binding-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
57
Forks
108
PR merge metrics
No merged PRs in 30d

Description

The credentials-binding-plugin currently installs logfilters that take care of masking secrets while logging.

However this is only applied to secrets that are currently bound.

If the secret is stored into a variable and printed later it will not be masked.

(or the secret is part of an exceptions message)

It would be nice to have a way to either

a) Mask secrets that were in scope before, but are not anymore

b) Explicitly mask secrets inside a given string before passing it out of the current scope

Note: This is not meant to protect against intentional misuse but to make it easier for pipeline authors to write non-leaking pipelines.

---
Originally reported by t8ch, imported from: Define API to mask out-of-scope credentials


  • status: Open
  • priority: Minor
  • component(s): credentials-binding-plugin
  • resolution: Unresolved
  • votes: 1
  • watchers: 2
  • imported: 20251211-141027

Raw content of original issue

The credentials-binding-plugin currently installs logfilters that take care of masking secrets while logging.
However this is only applied to secrets that are currently bound.

If the secret is stored into a variable and printed later it will not be masked.
(or the secret is part of an exceptions message)
It would be nice to have a way to either
a) Mask secrets that were in scope before, but are not anymore
b) Explicitly mask secrets inside a given string before passing it out of the current scope

Note: This is not meant to protect against intentional misuse but to make it easier for pipeline authors to write non-leaking pipelines.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.