jenkinsci / jenkinsci/credentials-binding-plugin

[JENKINS-36007] Way to mask arbitrary Secret (was: Password is clear on log with input parameter)

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

Description

On jenkins pipeline i use input with Password param but password is shown on console log

exemple:

def userInput = input(

id: 'userInput', message: 'Let\'s promote?', submitter: 'DL_KATANACLOUD_TEAM', parameters: [

[$class: 'PasswordParameterDefinition', description: 'Password', name: 'pwd']

])

sh ("echo ${userInput['pwd']}")

---
Originally reported by sebglon, imported from: Way to mask arbitrary Secret (was: Password is clear on log with input parameter)


  • assignee: jglick
  • status: Open
  • priority: Critical
  • component(s): credentials-binding-plugin, mask-passwords-plugin
  • label(s): pipeline, security
  • resolution: Unresolved
  • votes: 7
  • watchers: 11
  • imported: 20251211-141027

Raw content of original issue

On jenkins pipeline i use input with Password param but password is shown on console log

exemple:
def userInput = input(
id: 'userInput', message: 'Let\'s promote?', submitter: 'DL_KATANACLOUD_TEAM', parameters: [
[$class: 'PasswordParameterDefinition', description: 'Password', name: 'pwd']
])
sh ("echo ${userInput['pwd']}")

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.