Use Ignio platform Cyberark vault in custom Studio function
-
-
sandeep.mohanty
Participant2 years, 7 months ago #3295Trying to get the password from Cyberark central vault via ignio platform in custom groovy function.
Team have tried the confluence wiki link
to fetch credentials from Ignio’s internal vault with uname/password hardcoded instead of CyberArk vault and getting NULL outputLooking for groovy code which could help in fetching the password from credential vault which was created in Cheetah UI as CyberArkCredentialEntry type instead of a credential applied over a particular entity.
-
bana.sunit
Participant2 years, 7 months ago #3351::Step 1. Your Groovy Code should be run on proxy
Step 2. In the preblock fetch the credential from policy like
com.digitate.ignio.data.graph.model.NodeModel credentialNodeModel=apiHelper.getCredential(subject);
// subject is node where you have attached the credential policy// Set credential Model in inputMap
inputMap << [“credentialNodeModel”:credentialNodeModel];Step 3. In main code get it from input parameter like this
inputMap.credentialNodeModel.properties.username
inputMap.credentialNodeModel.properties.password -
bana.sunit
Participant -
sandeep.mohanty
Participant2 years, 7 months ago #3353::Thanks Sunit for your response.
This is the same instruction from wiki page. Team tried same code for an entity on which credential option used was CyberArkCredentialEntry and got NULL responseThis works for fetching credential from Ignio vault but we need to fetch from CyberArk central vault.
-
bana.sunit
Participant
-
You must be logged in to reply to this topic.