Adding secrets
Secrets are stored within a Snowflake schema, and will be available for pipelines to reference. We recommend you use the default secrets schema, but you can specify an alternative if you wish. Both options are described below.Default secrets schema
The default schema for secrets is defined as<APPLICATION_NAME>.SECRETS, as seen on the configuration screen when creating the agent application. To create a secret in this schema, execute the following commands, using the same role you used for creating the agent:
<APPLICATION_NAME>is the name of the application set during installation. By default, this isMATILLION_DATA_PRODUCTIVITY_CLOUD.<SECRET_NAME>is a unique name for the secret.'some-secret-string'is the secret value.
Alternative secrets schema
If you changed the Default Secrets Schema property when you configured the agent application, some additional configuration is required.-
Grant USAGE permission to the application for the following objects:
Where:
<DATABASE_NAME>and<SCHEMA_NAME>identify the schema you want to use for secrets.<APPLICATION_NAME>is the name of the application set during installation. By default, this isMATILLION_DATA_PRODUCTIVITY_CLOUD.
-
To allow creation of secrets, you must also grant the following:
-
To create secrets in the target schema, use the following commands:
Where:
<SECRET_NAME>is a unique name for the secret.'some-secret-string'is the secret value.

