No suitable binding handler for VaultAppRoleCredential.

This issue is archived. You can view it, but you can't modify it. Learn more

      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/"]])

      { sh 'echo TOKEN=$VAULT_TOKEN' sh 'echo ADDR=$VAULT_ADDR' }

       

      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

            Assignee:
            Unassigned
            Reporter:
            Pedro Salomao
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: