Secrets
Various access credentials are used for authentication in external systems. These credentials are stored in separate objects called secrets. Secrets are only available for writing and updating; their values cannot be retrieved.
In YDB, secrets are used, for example, in federated queries and data transfers.
Syntax
The following YQL operators are used to manage secrets:
- CREATE SECRET — create a secret.
- ALTER SECRET — modify an existing secret.
- DROP SECRET — delete a secret.
Usage
Examples of using secrets and working with them are provided in the following sections:
Access management
Secrets are schema objects, so rights to them are granted using the GRANT command and revoked using the REVOKE command. To use a secret in a query, for example, when creating an external data source or data transfer, the right SELECT ROW is required.
Was the article helpful?
Previous
Next