Skip to content

feat(studio): add a Secrets section to Workers (FE-4280) - #49589

Merged
jordienr merged 4 commits into
jordi/workers-detailfrom
jordi/fe-4280-add-a-secrets-section-to-workers
Aug 28, 2026
Merged

jordienr merged 4 commits into
jordi/workers-detailfrom
jordi/fe-4280-add-a-secrets-section-to-workers

Conversation

@jordienr

Copy link
Copy Markdown
Member

What

A Secrets section for Workers (FE-4280), so secrets are viewable without detouring to Edge Functions. Base: #49242.

  • Nav — a "Secrets" item under the Workers product menu, next to the worker list
  • Page at /project/[ref]/workers/secrets, header copy "Environment variables loaded into every worker at start-up"
  • Route + routeTree.gen.ts regenerated, plus the TANSTACK_MIGRATION.md entry

Gated by WorkersLayout (flag + permission), same as the rest of the product.

Duplicated page, shared data

Per the ticket, this is the duplicated-page approach — a second entry point, not a second store. Secrets are project-level (/v1/projects/{ref}/secrets), so the page reuses the existing EdgeFunctionSecrets / DefaultEdgeFunctionSecrets components rather than forking ~400 lines of secret CRUD. Workers and Edge Functions read and write the same list. The longer-term direction (a shared Compute-level Secrets section) is out of scope here.

How to test

Needs the workers flag on.

  1. Project with the flag → Workers in the sidebar → Secrets appears under it
  2. Open it → default secrets table + custom secrets, identical to Edge Functions → Secrets
  3. Add/edit/delete a secret here; confirm it shows on the Edge Functions Secrets page too (same project secrets)

Note

Two strings inside the reused EdgeFunctionSecrets component still say "edge function secrets" (the no-permission messages). Left as-is to avoid refactoring shared Edge Functions code in a private-alpha duplicated page; they'd be resolved by the eventual shared Compute-level section. Flagging in case reviewers want them parameterized now.

No new tests: the page composes already-tested components and the nav is a data literal, matching how the Edge Functions Secrets page itself is covered.

Closes FE-4280

@jordienr
jordienr requested a review from a team as a code owner August 26, 2026 09:22
@vercel

vercel Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
studio-self-hosted Ready Ready Preview Aug 28, 2026 9:23am
studio-staging Ready Ready Preview Aug 28, 2026 9:23am
5 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Aug 28, 2026 9:23am
design-system Skipped Skipped Aug 28, 2026 9:23am
docs Skipped Skipped Aug 28, 2026 9:23am
ui-library Skipped Skipped Aug 28, 2026 9:23am
zone-www-dot-com Skipped Skipped Aug 28, 2026 9:23am

Request Review

@coderabbitai

coderabbitai Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: ecd141ac-9fd3-458f-9bc5-bf667bc79175

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@supabase

supabase Bot commented Aug 26, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@jordienr
jordienr force-pushed the jordi/fe-4280-add-a-secrets-section-to-workers branch from 7b1cec4 to 42bcfec Compare August 26, 2026 09:39
@github-actions

github-actions Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (tanstack)

passed  242 passed
flaky  1 flaky
skipped  5 skipped

Details

stats  248 tests across 29 suites
duration  3 minutes, 47 seconds
commit  0f19394

Flaky tests

Features › database.spec.ts › Database Functions › CRUD operations works as expected

Skipped tests

Features › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled
Features › sql-editor.spec.ts › SQL Editor › snippet favourite works as expected
Features › sql-editor.spec.ts › SQL Editor › share with team works as expected
Features › sql-editor.spec.ts › SQL Editor › folders works as expected
Features › sql-editor.spec.ts › SQL Editor › other SQL snippets actions work as expected

@jordienr
jordienr force-pushed the jordi/workers-create branch from a160647 to 0dcf3b3 Compare August 26, 2026 10:18
@jordienr
jordienr force-pushed the jordi/fe-4280-add-a-secrets-section-to-workers branch 2 times, most recently from 8d08adb to 6ce2ac5 Compare August 26, 2026 10:33
@jordienr
jordienr changed the base branch from jordi/workers-create to jordi/workers-detail August 26, 2026 10:34
@jordienr
jordienr force-pushed the jordi/fe-4280-add-a-secrets-section-to-workers branch 9 times, most recently from c112ff5 to 23abfe6 Compare August 27, 2026 08:53
@jordienr
jordienr force-pushed the jordi/workers-detail branch from 82269c5 to 487ce8d Compare August 27, 2026 09:24
@jordienr
jordienr force-pushed the jordi/fe-4280-add-a-secrets-section-to-workers branch 2 times, most recently from 852a992 to d23e9a3 Compare August 27, 2026 15:34
@jordienr
jordienr force-pushed the jordi/workers-detail branch from ced0442 to 823b119 Compare August 28, 2026 09:18
@jordienr
jordienr force-pushed the jordi/fe-4280-add-a-secrets-section-to-workers branch from d23e9a3 to 0f19394 Compare August 28, 2026 09:19
@jordienr
jordienr merged commit 264bdc6 into jordi/workers-detail Aug 28, 2026
26 checks passed
@jordienr
jordienr deleted the jordi/fe-4280-add-a-secrets-section-to-workers branch August 28, 2026 09:30
jordienr added a commit that referenced this pull request Aug 31, 2026
## Problem

Workers Secrets was merged in #49589 into the stacked
jordi/workers-detail branch. The parent Workers PR reached master
without that child merge, leaving the page absent from staging.

## Fix

Cherry-pick the missing Workers Secrets route, menu item, shared-secret
copy, and generated route tree onto current master. The page uses the
existing workers flag and permission gates.

## How to test

- Enable the workers flag for a project with Workers access.
- Open Workers, then select Secrets.
- Expected result: the shared project secrets page renders at
/project/:ref/workers/secrets and is not treated as a worker named
secrets.
- Add, edit, or delete a secret, then confirm the same value appears
under Edge Functions, Secrets.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
  * Added a **Secrets** page to the Workers section.
  * Added navigation to Worker secrets from the Workers menu.
* Displayed default secrets and deployment-specific guidance where
applicable.
* Clarified that platform secrets are shared between Edge Functions and
Workers.
  * Updated deletion warnings to reflect shared secret usage.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants