mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
## I have read the CONTRIBUTING.md file. YES ## What kind of change does this PR introduce? **Docs fix: three missing or buried cross-links.** Readers who need Securing your API, custom claims and role-based access control, or the API key migration guide land on Row Level Security or Signing keys and stop there, because those pages do not point clearly to the page they need. This PR adds a tip near the top of Row Level Security, one link in its `auth.jwt()` section, and two links on Signing keys. It changes links and one sentence each, nothing else. Closes DOCS-1572. ## What is the current behavior? - Linear item: Cross-link RLS and signing keys to the pages readers are looking for - The IA scoring v2 comparison on the live site (2026-11-01) found three findability tasks that fail under both the production nav and Option 1. A nav change does not fix them. | Agent lands on | Should reach | Runs that miss (production / Option 1) | | --- | --- | --- | | Row Level Security | Custom claims and RBAC | 9 / 9 of 10 | | Row Level Security | Securing your API | 10 / 10 of 10 | | Signing keys | Migrating to new API keys | 9 / 9 of 10 | - Row Level Security already links to Securing your API in passing and in its related list, but not where a reader decides to stay or leave. ## What is the new behavior? | File | Change | | --- | --- | | `guides/database/postgres/row-level-security.mdx` | Tip after the opening admonition, with "refer to": Securing your API for what the Data API exposes, Custom claims and RBAC for role-based policies. One more RBAC link in the `auth.jwt()` section. | | `guides/auth/signing-keys.mdx` | Link to Migrating to new API keys in the intro and in the step that tells readers to switch to publishable and secret keys. | ## Additional context - Worktree: `~/GitHub/supabase/supabase-worktrees/nikrichers/docs-1572-cross-link-rls-and-signing-keys-to-the-pages-readers-are` - The `<Admonition type="tip">` matches the admonition syntax already on the page. | Check | Result | | --- | --- | | Target pages exist | Pass, all three | | Prettier, stand-in check on both files | Pass | | Repo `pnpm run format` | Not run locally: `pnpm install` needs Node 22.23.4 or later. CI runs it. | ### Before & After | Page | Before (production) | After (preview) | | --- | --- | --- | | Row Level Security | [production](https://supabase.com/docs/guides/database/postgres/row-level-security) | [preview](https://docs-git-nikrichers-docs-1572-cross-link-rls-an-d0b526-supabase.vercel.app/docs/guides/database/postgres/row-level-security) | | Signing keys | [production](https://supabase.com/docs/guides/auth/signing-keys) | [preview](https://docs-git-nikrichers-docs-1572-cross-link-rls-an-d0b526-supabase.vercel.app/docs/guides/auth/signing-keys) | Both preview pages return 200 and contain the new links. ### Test plan - [ ] Row Level Security shows the tip near the top, and both links open the right pages. - [ ] The `auth.jwt()` section links to Custom claims and RBAC. - [ ] Signing keys links to Migrating to new API keys in the intro and in the switch step. - [ ] After merge: rerun the three affected IA scoring tasks on production, 10 runs each. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Nik Richers <nik@validmind.ai> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>