How-to guideApplies to: Unified engine deployments
Replace an OAuth client secret while keeping the credential and catalog names
used by queries.
Arrange the remote rotation
Use an existing Polaris catalog with a retail warehouse and the SF1 item
table in namespace tpcds_sf1. Replace the example URLs, client ID, warehouse,
namespace, and Region with your values. The Polaris client needs access to the
warehouse and table. These examples request PRINCIPAL_ROLE:ALL; use the scope
granted to your client.
For the final SELECT, Polaris must supply usable temporary S3 credentials for
the table. Otherwise attach a separate storage credential as shown in
Separate catalog and storage credentials.
A successful login or table listing alone does not prove S3 access.
Obtain the current client secret and a replacement from the identity provider.
SQL does not create or revoke Polaris client secrets. Where supported, keep the
old secret active until a query succeeds using the replacement.
Establish the existing connection
Replace the value and check a fresh query
The credential resolves the replacement value when it acquires fresh access.
The credential and catalog names stay unchanged. Already running work can retain
access tokens acquired before the change. Revoke the old remote client secret
through its identity provider once you have confirmed the replacement works.
For an external secret, update its remote value outside SQL. If the local
reference pins a version, also change its version.
When finished:
Last modified on November 4, 2026