From 05f11e4655e2e13b47691141baae381aea1cc7db Mon Sep 17 00:00:00 2001 From: Quetzalli Writes Date: Fri, 19 Sep 2025 12:44:04 +0200 Subject: [PATCH 1/4] draft 1 --- .../docs/snowflake/features/secrets.md | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 src/content/docs/snowflake/features/secrets.md diff --git a/src/content/docs/snowflake/features/secrets.md b/src/content/docs/snowflake/features/secrets.md new file mode 100644 index 00000000..7f79b624 --- /dev/null +++ b/src/content/docs/snowflake/features/secrets.md @@ -0,0 +1,69 @@ +--- +title: Secrets +description: Get started with Secrets in LocalStack for Snowflake +tags: ["Base"] +--- + +## Introduction +Secrets in Snowflake provide a secure way to store sensitive credentials, such as usernames and passwords, for use with external integrations. + +They allow you to centralize authentication information and manage access consistently across your Snowflake environment. + +The Snowflake emulator supports Secrets, enabling you to `create`, `alter`, `show`, `describe`, and `drop` secrets locally. This makes it possible to test workloads that rely on secure credential management without needing a live Snowflake account. + +## Getting started +This guide is designed for users new to Secrets and assumes basic knowledge of SQL and Snowflake. Start your Snowflake emulator and connect to it using an SQL client in order to execute the queries below. + +In this guide, you will: + +1. Create a secret. +2. Show and describe existing secrets. +3. Alter a secret. +4. Drop a secret. + +### Create a Secret +You can create a secret using the `CREATE SECRET` statement. + +The following example creates a password-based secret: + +```sql +CREATE SECRET my_secret + TYPE = PASSWORD + USERNAME = 'myuser' + PASSWORD = 'mypassword123'; +``` + +### Show Secrets + +You can list all secrets in the account using the `SHOW SECRETS` command: + +```sql +SHOW SECRETS; +``` + +### Describe Secret + +You can view the details of a specific secret using the `DESCRIBE SECRET` command: + +```sql +DESCRIBE SECRET my_secret; +``` + +### Alter Secret + +You can update the properties of an existing secret with the `ALTER SECRET` command. + +For example, changing the password: + +```sql +ALTER SECRET my_secret SET PASSWORD = 'newpassword456'; +``` + +### Drop Secret + +You can remove a secret using the `DROP SECRET` statement: + +```sql +DROP SECRET IF EXISTS my_secret; +``` + From e6d3ec94dc28c900b2bef030b3381d1a4a955337 Mon Sep 17 00:00:00 2001 From: Quetzalli Date: Mon, 22 Sep 2025 03:54:42 -0700 Subject: [PATCH 2/4] Apply suggestions from code review --- src/content/docs/snowflake/features/secrets.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/content/docs/snowflake/features/secrets.md b/src/content/docs/snowflake/features/secrets.md index 7f79b624..b2ed77ac 100644 --- a/src/content/docs/snowflake/features/secrets.md +++ b/src/content/docs/snowflake/features/secrets.md @@ -7,9 +7,7 @@ tags: ["Base"] ## Introduction Secrets in Snowflake provide a secure way to store sensitive credentials, such as usernames and passwords, for use with external integrations. -They allow you to centralize authentication information and manage access consistently across your Snowflake environment. - -The Snowflake emulator supports Secrets, enabling you to `create`, `alter`, `show`, `describe`, and `drop` secrets locally. This makes it possible to test workloads that rely on secure credential management without needing a live Snowflake account. +They allow you to centralize authentication information and manage access consistently across your Snowflake environment. The Snowflake emulator makes it possible to test workloads that rely on secure credential management without needing a live Snowflake account. ## Getting started This guide is designed for users new to Secrets and assumes basic knowledge of SQL and Snowflake. Start your Snowflake emulator and connect to it using an SQL client in order to execute the queries below. From a4a32e727c7b1be605edb1389178811a283199a1 Mon Sep 17 00:00:00 2001 From: Quetzalli Date: Mon, 22 Sep 2025 04:06:07 -0700 Subject: [PATCH 3/4] Apply suggestions from code review --- src/content/docs/snowflake/features/secrets.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/docs/snowflake/features/secrets.md b/src/content/docs/snowflake/features/secrets.md index b2ed77ac..fbc07818 100644 --- a/src/content/docs/snowflake/features/secrets.md +++ b/src/content/docs/snowflake/features/secrets.md @@ -5,9 +5,9 @@ tags: ["Base"] --- ## Introduction -Secrets in Snowflake provide a secure way to store sensitive credentials, such as usernames and passwords, for use with external integrations. +Secrets in Snowflake provide a secure way to store sensitive credentials, such as usernames and passwords, for use with external integrations. They allow you to centralize authentication information and manage access consistently across your Snowflake environment. -They allow you to centralize authentication information and manage access consistently across your Snowflake environment. The Snowflake emulator makes it possible to test workloads that rely on secure credential management without needing a live Snowflake account. +The Snowflake emulator offers CRUD support, not the actual implementation or usage of them. This makes it possible to test workloads locally that rely on secure credential management without needing a live Snowflake account. ## Getting started This guide is designed for users new to Secrets and assumes basic knowledge of SQL and Snowflake. Start your Snowflake emulator and connect to it using an SQL client in order to execute the queries below. From 468b139c340725b4fdc31f7b05bd4781ed377efa Mon Sep 17 00:00:00 2001 From: Quetzalli Date: Mon, 22 Sep 2025 06:13:46 -0700 Subject: [PATCH 4/4] Apply suggestions from code review --- src/content/docs/snowflake/features/secrets.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/snowflake/features/secrets.md b/src/content/docs/snowflake/features/secrets.md index fbc07818..69a45ef1 100644 --- a/src/content/docs/snowflake/features/secrets.md +++ b/src/content/docs/snowflake/features/secrets.md @@ -7,7 +7,7 @@ tags: ["Base"] ## Introduction Secrets in Snowflake provide a secure way to store sensitive credentials, such as usernames and passwords, for use with external integrations. They allow you to centralize authentication information and manage access consistently across your Snowflake environment. -The Snowflake emulator offers CRUD support, not the actual implementation or usage of them. This makes it possible to test workloads locally that rely on secure credential management without needing a live Snowflake account. +The Snowflake emulator offers CRUD support, which are currently mocked and not functional. This makes it possible to test workloads locally that rely on secure credential management without needing a live Snowflake account. ## Getting started This guide is designed for users new to Secrets and assumes basic knowledge of SQL and Snowflake. Start your Snowflake emulator and connect to it using an SQL client in order to execute the queries below.