Configure Accounts to Use a Secret

This page is no longer maintained (Apr 12, 2023). For the most current information, go to https://docs.snaplogic.com/cicd/secrets-mgmt/secrets-mgmt-config-accounts.html.

 

 

Overview

Only expression-enabled SnapLogic accounts can be used with Secrets Management. When creating or modifying an account, enter expressions that define how to access the secrets manager. You can use an expression to retrieve any secret stored in your secrets manager. For example, you can retrieve Access Token, Username, or Password.

These steps describe how to configure an account to use secrets.

Steps

  1. Create a new account or search for the account you want to update.

  2. In the field or fields for which you have stored a secret, click the expression button ( ).

  3. With values that correspond with your secrets management configuration, enter an expression that invokes secrets.read. A call to secrets.read can retrieve the following information:

    • The alias or configuration name in the secrets-config.json file.

    • The namespace in the secrets-config.json file.

    • The path to the secret.

    • The name of the secret.

    secrets.read("alias", "/path/to/secret").name-of-secret

  4. Save the account.