-
Bug
-
Resolution: Not A Defect
-
Major
-
None
-
K8S 1.18
Jenkins: 2.277.2
credentials-binding-plugin: 1.2.4
Vault Harshicorp: 2.37.0
We wantr to use roleid/secretid stored as credentials in Jenkins/Vault plugin as that will issue a Vault token that pipeline can then use to access Vault. Provisioned appId in Vault for the Jenkins Pipeline and then generated secretid. Next, populated roleID/SecretIDs as Jenkins-> Credentials->VaultRoleId (path kept default approle).
Excerpt from the pipeline
stage('Integration tests') {
steps {
withCredentials([[$class: 'VaultTokenCredentialBinding', credentialsId: "${env.VAULT_CREDENTIALS}", vaultAddr: "${env.VAULT_ADDR}", vaultNamespace: "serviceevents-dev1-kv/"]])
Error thrown:
No suitable binding handler could be found for type com.datapipe.jenkins.vault.credentials.VaultAppRoleCredential. Supported types are StandardUsernamePasswordCredentials,FileCredentials,StringCredentials,DockerServerCredentials,SSHUserPrivateKey.
Any ideas? Suggestions on how to further troubleshoot or work it around? Thanks