External Credential Vault Integration – HashiCorp

    • 348153
      Participant
      3 years, 1 month ago #3278

      We are integrating the HashiCorp Vault for Credential Vault. We are following the CyberArk Credential Vault document for the development and integration. We are passing the Username and fetching the Password from the HashiCorp through the inline function via script. But we don’t know how to update the Username and Password to Ignio to login into the server.
      Is there any predefined parameter(attribute) available to update the Username and Password inside the script?

    • 3 years, 1 month ago #3289
      Up
      1
      Down
      ::

      ignio Credential functionality refers to securekey for password parameter. Password can be fetched and sent to ignio by assigning to securekey variable. Add username and password as output parameters to Inline function.

      Sample Variable declaration:

      outputMap.username
      outputMap.securekey

      Sample Code For encrypting the password:

      def decryptionKeyHandler = com.digitate.ignio.platform.proxyagent.ProxyAgentApplicationContextProvider.getApplicationContext().getBean(com.digitate.ignio.platform.proxyagent.commons.handler.DecryptionKeyHandler.class);
      def decryptionKey = decryptionKeyHandler.getDecryptionKey();
      def encryptedPassword =com.digitate.common.crypt.base.Cryptors.getSymetricCryptor(decryptionKey).encrypt(password);

      outputMap.username = username;
      outputMap.securekey = encryptedPassword;

    • Anonymous
      Inactive
      2 years, 11 months ago #3485
      Up
      0
      Down
      ::

      for encryption use below api
      def encryptedValue = IgnioCryptorUtils.encrypt(stringToEncrypt);

Viewing 2 reply threads

You must be logged in to reply to this topic.