Skip to content
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

cyberark.pas.cyberark_credential version 1.0.27 - support for custom application paths for CCP does not work #72

Open
1 of 3 tasks
kseitter opened this issue Jun 13, 2024 · 0 comments
Labels

Comments

@kseitter
Copy link

kseitter commented Jun 13, 2024

Summary

Unfortunately the described and highly appreciated "path" setting in Ansible Cyberark.pas module / cyberark.pas.cyberark_credential version 1.0.27 does not work.
The issue is that the parameter doesn't actually exist in the main function of the respective module (as of 2024-06-13/ cyberark.pas 1.0.27) meaning that without modifying the python code of the module using the CCP with PAM won't work.

Steps to Reproduce

Try to use the "path: AimWebServiceCustom" with cyberark_credential

Expected Results

  • name: credential retrieval custom path
    cyberark_credential:
    api_base_url: "http://10.10.0.1/"
    app_id: "TestID"
    query: "Safe=test;UserName=admin"
    path: AimWebServiceCustom
    register: result

Should return the result:
{ api_base_url } { path } "?AppId="{ app_id }"&Query="{ query }

Actual Results

path is not added

Reproducible

  • Always
  • Sometimes
  • Non-Reproducible

Version/Tag number

1.0.27

Environment setup

Ansible with the cyberark_credential galaxy module

Additional Information

The issue is fixed by adjusted the following file:
ansible-security-automation-collection/plugins/modules/cyberark_credential.py

In the main function we've added the following to the end of the fields (line 338):

"path": {"type": "str", "required": False, "no_log": False},

kseitter added a commit to kseitter/ansible-security-automation-collection that referenced this issue Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 participant