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

Ansible Tower Plugin - Have access to User credentials

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ansible-tower-plugin
    • None
    • a jenkins pipeline

      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

          [JENKINS-65013] Ansible Tower Plugin - Have access to User credentials

          sébastien added a comment -

          Any updates ?

          sébastien added a comment - Any updates ?

          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. 

          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. 

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

              Created:
              Updated: