AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
13.98k
stars
3.41k
forks
source link
Access to all keys out of the CyberArk object #13402
We want to pull all the Keys out of the CyberArk object instead of just the content key or the content value. When we run the API call from the playbook, CyberArk presents all the keys and values associated with that object. We can set the fact and use the keys and values as variables in the playbook. But when we use the custom credential it only gives us the content value and does not give us any other keys and values. We want to be able to use custom credential to pull all the keys and values associated with an object and assigned into variables in AAP natively using the credential plugin.
This feature request is for changes to the credential lookup plugin as used in AAP2.
Select the relevant components
[X] UI
[ ] API
[ ] Docs
[ ] Collection
[ ] CLI
[ ] Other
Steps to reproduce
Configure a credential using the credential type "CyberArk Central Credential Provider Lookup".
Only "Content" key value from JSON response is returned. "Content" is the password value of the account object.
Current results
The credential plugin "CyberArk Central Credential Provider Lookup" is hardcoded to only return the "Content" key value from a JSON response that includes more keys that could be utilized.
Sugested feature result
The suggested feature would include an additional field in the metadata of the credential plugin to allow the user to specify a different key value to utilize outside of the "Content" which should still remain as the default key.
Additional information
Spoke with Oleksii Baranov on 01-05-2023 about how to include this feature. Being developed by CyberArk's @infamousjoeg. PR to come shortly.
Please confirm the following
Feature type
Enhancement to Existing Feature
Feature Summary
https://issues.redhat.com/browse/AAPRFE-28
We want to pull all the Keys out of the CyberArk object instead of just the content key or the content value. When we run the API call from the playbook, CyberArk presents all the keys and values associated with that object. We can set the fact and use the keys and values as variables in the playbook. But when we use the custom credential it only gives us the content value and does not give us any other keys and values. We want to be able to use custom credential to pull all the keys and values associated with an object and assigned into variables in AAP natively using the credential plugin.
This feature request is for changes to the credential lookup plugin as used in AAP2.
Select the relevant components
Steps to reproduce
Current results
The credential plugin "CyberArk Central Credential Provider Lookup" is hardcoded to only return the "Content" key value from a JSON response that includes more keys that could be utilized.
Sugested feature result
The suggested feature would include an additional field in the metadata of the credential plugin to allow the user to specify a different key value to utilize outside of the "Content" which should still remain as the default key.
Additional information
Spoke with Oleksii Baranov on 01-05-2023 about how to include this feature. Being developed by CyberArk's @infamousjoeg. PR to come shortly.
For more information, please reference the Issue at https://issues.redhat.com/browse/AAPRFE-28.