Reply To: External Credential Vault Integration – HashiCorp

2 years, 3 months 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;