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

SYSTEM$VERIFY_EXTERNAL_SECRET_INTEGRATION( '<integration_name>' )

Arguments

integration_name

Name of an external secret provider security integration with TYPE = API_AUTHENTICATION and AUTH_TYPE = WORKLOAD_IDENTITY_FEDERATION.

Returns

Returns a string that describes the verification result.

A successful verification returns:

Verification successful.

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:

PrivilegeObjectNotes
USAGEIntegrationRequired 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:

SELECT SYSTEM$VERIFY_EXTERNAL_SECRET_INTEGRATION('aws_sm_integration');