Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-65013

Ansible Tower Plugin - Have access to User credentials

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hello,

      in our jenkins pipeline we use parameters to allow the user to select different credentials.

      parameters { credentials(name: 'AWX_CREDENTIAL_SELECTED', description: 'AWX Credential', defaultValue: 'awx-token', credentialType: "Secret Text", required: false)}

      This also allow to use the "List user credentials" checkbox when we launch the job with "Build with Parameters" (work fine with a Global credential).

      So we can use "user credential" token to override AWX_CREDENTIAL_SELECTED, that allow us to know who launch the AWX job.

      But that seems the ansible tower plugin don't have access to this credential because we got this error :

      ERROR: Unable to lookup job template Unable to find job template: Auth is required for this call but no auth info exists

      I suspect the TowerInstallation.getCredsList don't have access to user credentials.

      Maybe we need the ansible tower plugin also list credentials with UserCredentialsProvider in getCredsList ? Credential documentation

      This is a problem to make this plugin production ready for auditability in AWX

      Best regards

        Attachments

          Activity

          Hide
          grazius sébastien added a comment -

          Any updates ?

          Show
          grazius sébastien added a comment - Any updates ?
          Hide
          johnwestcottiv John Westcott added a comment -

          Sorry for the delay. I had to scrap my Jenkins instance and rebuild after a machine upgrade. I started to look at this today but haven't gotten it working yet. I'll keep trying things but it may be a while. 

          Show
          johnwestcottiv John Westcott added a comment - Sorry for the delay. I had to scrap my Jenkins instance and rebuild after a machine upgrade. I started to look at this today but haven't gotten it working yet. I'll keep trying things but it may be a while. 

            People

            Assignee:
            johnwestcottiv John Westcott
            Reporter:
            grazius sébastien
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: