Use Ignio platform Cyberark vault in custom Studio function

    • sandeep.mohanty
      Participant
      2 years, 7 months ago #3295

      Trying 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 output

      Looking 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
      Participant
      2 years, 7 months ago #3351
      Up
      2
      Down
      ::

      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
      2 years, 7 months ago #3352
      Up
      0
      Down
      ::

      Step 3. In main code get it from input parameter like this
      inputMap.credentialNodeModel.properties.userName
      inputMap.credentialNodeModel.properties.secureKey

    • sandeep.mohanty
      Participant
      2 years, 7 months ago #3353
      Up
      0
      Down
      ::

      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 response

      This works for fetching credential from Ignio vault but we need to fetch from CyberArk central vault.

    • bana.sunit
      Participant
      2 years, 7 months ago #3363
      Up
      0
      Down
      ::

      Please raise the support request we will check this. This is the only way it should work

Viewing 4 reply threads

You must be logged in to reply to this topic.