Skip to content

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

@kseitter

Description

@kseitter

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},

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions