This is a python helper function for retrieving keyvault secrets from CyberArk
- Python 3.x
- CyberArk KeyVault account
pip install CyberArk-KeyVault
Import the VaultManager module into your script. Create an instance of the VaultManager class by calling vm = VaultManager() Call the get_password() method of the cyberArkVault class with the following parameters:
-cyberArk_host: The host name of your organization
-appId: The App ID of the application you want to retrieve secrets for
-safe: The name of the safe where the secret is stored
-cyberark_usr: username you want to retrieve secrets for