New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFE: Define field for CyberArk AIM lookup #5743
Comments
I believe this has to do with the tower config not handling two different credential types from the cyberark side. |
This comment has been minimized.
This comment has been minimized.
🤦♂️ Actually, I see what you mean now. You're referring to this field: https://github.com/ansible/awx/blob/devel/awx/main/credential_plugins/aim.py#L100, which we use to get the secret string. |
@DonaldKallman @kylecurtis-od This idea sounds very reasonable and a great way to improve the plugin. Thank you for suggesting it. It could be done by adding an optional field to the plugin, like you suggest. The default value for the field would need to remain as Such a change is unlikely to be on our schedule in the near term. That said, if you open a PR for this I'd be more than happy to review it and work with you to get it merged. |
@jakemcdermott Apparently it's not as easy as anticipated and I am admittedly not great with Python. Changing "return res.json()['Content']" to "return res.json()['AWSAccessKeyID']" still brought the value from Content over for both username and password. I don't see anywhere else that is reading the value from the json response. |
I actually don't see how this could work for any credentials unless the only field you want to retrieve is the password. Probably makes sense for 95% of use cases. |
ISSUE TYPE
SUMMARY
Allow the user to define the field in the JSON response to be used for the username and password values. This is a unique scenario to object types that do not map to the standard Content and UserName fields (like a cloud service). For example, I want the value of Content for the password and the value of AWSAccessKeyID as the username from the below:
The text was updated successfully, but these errors were encountered: