- Categories:
System functions (System Information)
SYSTEM$VERIFY_ EXTERNAL_ SECRET_ INTEGRATION¶
Verifies that Snowflake can exchange a workload identity token for cloud credentials and list secrets through an external secret provider integration.
Syntax¶
Arguments¶
integration_nameName of an external secret provider security integration with
TYPE = API_AUTHENTICATIONandAUTH_TYPE = WORKLOAD_IDENTITY_FEDERATION.
Returns¶
Returns a string that describes the verification result.
A successful verification returns:
When the cloud identity provider rejects the federated credential, the result identifies the issuer, subject, or audience configuration as the likely cause. When the secret manager rejects the list request, the result identifies cloud permissions as the likely cause. Connectivity failures produce an error.
Access control requirements¶
A role used to execute this operation must have the following privileges at a minimum:
| Privilege | Object | Notes |
|---|---|---|
| USAGE | Integration | Required on the specified integration. |
The USAGE privilege authorizes the current role to use the integration, including through role inheritance. The
cloud permissions granted to the integration’s federated identity determine which operations the integration can
perform and which secrets it can access.
For instructions on creating a custom role with a specified set of privileges, see Creating custom roles.
For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.
Usage notes¶
- Verification performs a minimal list request. The cloud identity must have permission to list secrets even if you only intend to fetch a known secret.
- A successful verification doesn’t confirm access to every secret. Provider permissions can restrict individual secret values.
Examples¶
Verify an AWS Secrets Manager integration: