CREATE SECRET
Use the CREATE SECRET
command to create secrets to store sensitive credentials securely.
PREMIUM EDITION FEATURE
Secret management is a Premium Edition feature. All Premium Edition features are available out of the box without additional cost on RisingWave Cloud. For self-hosted deployments, users need to purchase a license key to access this feature. To purchase a license key, please contact sales team at sales@risingwave-labs.com.
For a full list of Premium Edition features, see RisingWave Premium Edition.
Syntax
Parameters
Parameter or Clause | Description |
---|---|
secret_name | The name of the secret to be created. This should be a unique identifier within the system. |
backend | Specifies the backend where the secret will be stored. Currently, only the meta backend is supported. |
your_secret | The secret value that you wish to store securely. |
Examples
Here is an example. We create a secret named mysql_pwd
, and then use it in the WITH
clause. After that, we use the SHOW CREATE SOURCE
command to view the password. As shown in the result, the MySQL password is hidden, ensuring no secret leaks.
See also
Was this page helpful?