Vault ssh username with private key jenkins

Hello everyone

I want to integrate Jenkins with Gitlab.

I already integrated Vault and Jenkins and used it with Vault Username-Password Credential and now want to use the vault ssh username with private key type.

Here are my steps:

  1. I generate private and public keys
  2. Store the Public key on the GitLab itself
  3. I want to Store the private key on Vault
  4. Create the vault ssh username with private key credential and use it to connect to Gitlab (Instead of the old ssh username with private key)

How can I implement this step 3?

P.S: I googled, and I didn’t find anything

There is no mention of this credential type on so perhaps it is undocumented / unsupported / incomplete functionality in the Jenkins plugin?

If no-one has documented what configuration on the Vault side is expected for this feature of the Jenkins plugin, it might be that you have to track down the relevant source code and reverse engineer what it expects, or open a bug with the project about this documentation gap.

1 Like

Thank you for tour reply, I guess you’re right.
Because I found absolutly nothing on the Internet…