Skip to content

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

@jenkins-infra-bot

Description

@jenkins-infra-bot

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions