Failing to loopk up password from CyberArk Central Credential Provider Lookup external provider.

Solution Verified - Updated -

Issue

When using credentials for Job Templates that look up username/password/ssh-key from CyberArk Central Credential Provider Lookup fails with the following traceback.

Traceback (most recent call last):
  File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/awx/main/tasks/jobs.py", line 529, in run
    credential.credential_type.inject_credential(credential, env, self.safe_cred_env, args, private_data_dir, container_root=container_root)
  File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/awx/main/models/credential/__init__.py", line 546, in inject_credential
    value = credential.get_input(field_name)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/awx/main/models/credential/__init__.py", line 330, in get_input
    return self._get_dynamic_input(field_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/awx/main/models/credential/__init__.py", line 364, in _get_dynamic_input
    return input_source.get_input_value()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/awx/main/models/credential/__init__.py", line 1413, in get_input_value
    return backend(**backend_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/awx/main/credential_plugins/aim.py", line 78, in aim_backend
    verify = kwargs['verify']
             ~~~~~~^^^^^^^^^^
KeyError: 'verify'

Environment

Ansible Automation Platform 2.5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content