Skip to content

docs(experimentation): connect a Snowflake warehouse - #9092

Open
Zaimwa9 wants to merge 1 commit into
feat/snowflake-warehouse-frontendfrom
docs/snowflake-warehouse
Open

Zaimwa9 wants to merge 1 commit into
feat/snowflake-warehouse-frontendfrom
docs/snowflake-warehouse

Conversation

@Zaimwa9

@Zaimwa9 Zaimwa9 commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Thanks for submitting a PR! Please check the boxes below:

  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

Stacked on #9089.

  • New Connect Snowflake page: key pair, setup SQL (Run All), connecting, rotating the key, and a troubleshooting table of the API's messages, with two screenshots.
  • Snowflake is listed wherever the supported warehouse types are named, and removed from "Coming soon".
  • A parity test keeps the page's setup SQL identical to the dashboard's.

How did you test this code?

Docs site build passes, prettier is clean on the touched pages, and the setup SQL parity test passes.

@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Nov 25, 2026 1:55pm UTC
flagsmith-frontend-preview Ready Ready Preview Nov 25, 2026 1:55pm UTC
flagsmith-frontend-staging Ready Ready Preview Nov 25, 2026 1:55pm UTC

Request Review

@github-actions github-actions Bot added front-end Issue related to the React Front End Dashboard docs Documentation updates and removed docs Documentation updates labels Nov 24, 2026
@Zaimwa9
Zaimwa9 marked this pull request as ready for review November 25, 2026 13:45
@Zaimwa9
Zaimwa9 requested review from a team as code owners November 25, 2026 13:45
@Zaimwa9
Zaimwa9 requested review from matthewelwell and talissoncosta and removed request for a team November 25, 2026 13:45
@github-actions github-actions Bot removed the docs Documentation updates label Nov 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-9092 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-e2e:pr-9092 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api:pr-9092 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith:pr-9092 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-private-cloud:pr-9092 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-frontend:pr-9092 Finished ✅ Results ✅

@github-actions github-actions Bot added the docs Documentation updates label Nov 25, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 9 files

Confidence score: 4/5

  • In snowflake.md, the private key may be readable by other local users if the shell’s umask is permissive. Set a restrictive umask before generating it.
  • In snowflake.md, readers may miss that event writes can resume the warehouse and incur compute charges. Clarify that AUTO_RESUME = TRUE applies to submitted DML as well as reads.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="docs/docs/experimentation/connect-a-warehouse/snowflake.md">

<violation number="1" location="docs/docs/experimentation/connect-a-warehouse/snowflake.md:29">
P2: Set a restrictive `umask` before generating the private key; otherwise it can be created readable by other local users.</violation>

<violation number="2" location="docs/docs/experimentation/connect-a-warehouse/snowflake.md:87">
P2: With `AUTO_RESUME = TRUE`, an event-write statement also resumes the warehouse; Snowflake auto-resumes for submitted DML as well as reads. Please clarify that writes can incur warehouse compute too.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment on lines +29 to +30
openssl genrsa 2048 | openssl pkcs8 -topk8 -inform PEM -out flagsmith_key.p8 -nocrypt
openssl rsa -in flagsmith_key.p8 -pubout -out flagsmith_key.pub

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Set a restrictive umask before generating the private key; otherwise it can be created readable by other local users.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At docs/docs/experimentation/connect-a-warehouse/snowflake.md, line 29:

<comment>Set a restrictive `umask` before generating the private key; otherwise it can be created readable by other local users.</comment>

<file context>
@@ -0,0 +1,163 @@
+Flagsmith signs in to Snowflake with a key pair. Run these commands on your machine:
+
+```bash
+openssl genrsa 2048 | openssl pkcs8 -topk8 -inform PEM -out flagsmith_key.p8 -nocrypt
+openssl rsa -in flagsmith_key.p8 -pubout -out flagsmith_key.pub
+```
</file context>
Suggested change
openssl genrsa 2048 | openssl pkcs8 -topk8 -inform PEM -out flagsmith_key.p8 -nocrypt
openssl rsa -in flagsmith_key.p8 -pubout -out flagsmith_key.pub
umask 077
openssl genrsa 2048 | openssl pkcs8 -topk8 -inform PEM -out flagsmith_key.p8 -nocrypt
openssl rsa -in flagsmith_key.p8 -pubout -out flagsmith_key.pub

Comment on lines +87 to +88
The warehouse suspends itself after 60 seconds idle and resumes when Flagsmith reads events; writing events doesn't wake
it.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: With AUTO_RESUME = TRUE, an event-write statement also resumes the warehouse; Snowflake auto-resumes for submitted DML as well as reads. Please clarify that writes can incur warehouse compute too.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At docs/docs/experimentation/connect-a-warehouse/snowflake.md, line 87:

<comment>With `AUTO_RESUME = TRUE`, an event-write statement also resumes the warehouse; Snowflake auto-resumes for submitted DML as well as reads. Please clarify that writes can incur warehouse compute too.</comment>

<file context>
@@ -0,0 +1,163 @@
+GRANT ROLE FLAGSMITH_ROLE TO USER FLAGSMITH_SERVICE;
+```
+
+The warehouse suspends itself after 60 seconds idle and resumes when Flagsmith reads events; writing events doesn't wake
+it.
+
</file context>
Suggested change
The warehouse suspends itself after 60 seconds idle and resumes when Flagsmith reads events; writing events doesn't wake
it.
The warehouse suspends itself after 60 seconds idle and automatically resumes when Flagsmith reads or writes events.

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #23750 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  1 minute, 12 seconds
commit  8a19a6b
info  🔄 Run: #23750 (attempt 1)

🗂️ Previous results
✅ private-cloud · depot-ubuntu-latest-16 — run #23750 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  2 passed

Details

stats  2 tests across 2 suites
duration  52.7 seconds
commit  8a19a6b
info  🔄 Run: #23750 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #23750 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  32.8 seconds
commit  8a19a6b
info  🔄 Run: #23750 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #23750 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  35.7 seconds
commit  8a19a6b
info  🔄 Run: #23750 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-arm-16 — run #23747 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  1 minute, 7 seconds
commit  64b58af
info  🔄 Run: #23747 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-16 — run #23747 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  6 passed

Details

stats  6 tests across 6 suites
duration  33.9 seconds
commit  64b58af
info  🔄 Run: #23747 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #23747 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  32.5 seconds
commit  64b58af
info  🔄 Run: #23747 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #23747 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  35.1 seconds
commit  64b58af
info  🔄 Run: #23747 (attempt 1)

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Visual Regression

29 screenshots compared. See report for details.
View full report

This branch was successfully deployed

3 active deployments
Preview – flagsmith-frontend-staging — 8a19a6b1 Deployed Nov 25, 2026 by vercel[bot]
Preview – flagsmith-frontend-preview — 8a19a6b1 Deployed Nov 25, 2026 by vercel[bot]
Preview – docs — 8a19a6b1 Deployed Nov 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation updates front-end Issue related to the React Front End Dashboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant