jenkinsci / jenkinsci/credentials-binding-plugin

[JENKINS-65931] Add credentials binding for base64 username:password

Open
#491 1 comment 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

Some tools (e.g., npm) require the credentials to be base64-encoded. Having to manually base64 encode the output of the usernameColonPassword binding is annoying and error prone, since Jenkins does not recognized the base64-encoded version as something to redact.

Please add a usernameColonPasswordBase64 binding that works the same way, except the environment variable will contain the base64-encoded credentials.

For example:

withCredentials([usernameColonPasswordBase64(credentialsId: 'my-id', variable: 'NPM_CONFIG__auth')]) {

sh 'npm ci'
}

 

---
Originally reported by rittneje, imported from: Add credentials binding for base64 username:password


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

Raw content of original issue

Some tools (e.g., npm) require the credentials to be base64-encoded. Having to manually base64 encode the output of the usernameColonPassword binding is annoying and error prone, since Jenkins does not recognized the base64-encoded version as something to redact.

Please add a usernameColonPasswordBase64 binding that works the same way, except the environment variable will contain the base64-encoded credentials.

For example:



withCredentials([usernameColonPasswordBase64(credentialsId: 'my-id', variable: 'NPM_CONFIG__auth')]) {

sh 'npm ci'
}


 

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.