jenkinsci / jenkinsci/credentials-binding-plugin

[JENKINS-72212] DPAPI credential store (on Windows) leads to "fatal: Cannot prompt because user interactivity has been disabled."

Open
#512 2 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

Due to known incompatibility between SSH connectivity to agents and the Windows Credentials Manager (wincredman) – see https://github.com/git-ecosystem/git-credential-manager/blob/main/docs/credstores.md#windows-credential-manager – I attempted to switch to using the DPAPI credential store as recommended. However, that results in this error when using withCredentials with a gitUsernamePassword username+password credential specified:

```
fatal: Cannot prompt because user interactivity has been disabled.

```

I've been able to use this same credential successfully with this same approach on Linux agents (also connected via SSH) with their default Git credential store on Linux (which is neither wincredman nor DPAPI), so am assuming it's not an issue with the credential itself.

Is this error a bug/incompatibility between the Credentials Binding plugin and the use of DPAPI? I got the same error in attempting to use the "plaintext" credential store as well.

---
Originally reported by medianick, imported from: DPAPI credential store (on Windows) leads to "fatal: Cannot prompt because user interactivity has been disabled."


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

Raw content of original issue

Due to known incompatibility between SSH connectivity to agents and the Windows Credentials Manager (wincredman) – see https://github.com/git-ecosystem/git-credential-manager/blob/main/docs/credstores.md#windows-credential-manager – I attempted to switch to using the DPAPI credential store as recommended. However, that results in this error when using withCredentials with a gitUsernamePassword username+password credential specified:


fatal: Cannot prompt because user interactivity has been disabled.


I've been able to use this same credential successfully with this same approach on Linux agents (also connected via SSH) with their default Git credential store on Linux (which is neither wincredman nor DPAPI), so am assuming it's not an issue with the credential itself.

Is this error a bug/incompatibility between the Credentials Binding plugin and the use of DPAPI? I got the same error in attempting to use the "plaintext" credential store as well.

  • environment: Windows agent connected to via SSH

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.