mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 15:39:13 +00:00
## Problem The "Add or replace secrets" form on the Edge Functions secrets page doesn't tell users that a secret's value can't be viewed again after saving. Only the "Edit secret" sheet says so, after the value is already saved. ## Solution The Value field's description in the "Add or replace secrets" form now says that secrets can't be retrieved once saved, using the same wording as the Edit secret sheet. Users see this before they save a value. ## How to verify 1. Open `/project/<ref>/functions/secrets` in the Studio preview. 2. In the "Add or replace secrets" card, the Value field's description reads "Supports multi-line values such as PEM keys, JSON, or functions. Secrets can’t be retrieved once saved." 3. Click "Add another": the new row's Value field shows the same description. 4. Add a secret and save it: it saves and appears in the secrets list as before. 5. Open an existing secret's Edit sheet: its note is unchanged. ## Checks Ran `pnpm turbo run typecheck --filter=studio`, `eslint` on the changed file, `oxfmt --check` on the changed file, and `vitest run` on `AddNewSecretForm.test.tsx`. All pass. ## Checklist - [x] I have read the [Contributing Guidelines](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] I have checked that the change works in the preview deployment ## Feedback for Tedd To ask Tedd for a change to this PR, reply in Tedd's session on [FE-5223](https://linear.app/supabase/issue/FE-5223/add-mention-that-edge-function-secrets-cannot-be-retrieved-after). Tedd doesn't read comments on this PR. Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>