Commit Graph
26 Commits
Author SHA1 Message Date
supabase-vercel-tedd[bot] 962ea89399 docs: show which roles can delete the production branch (#53972)
## Problem

The project permissions table on the access control page lists Read and
Write for the production branch, but not Delete. Readers can't tell
whether a Developer can delete the production branch, though the table
shows that one can delete development branches.

Related to
[FDBKIN-36106](https://linear.app/supabase/issue/FDBKIN-36106/clarify-docs-on-branch-deletion-behavior-with-rbac-for-different-user)
Closes
[DOCS-1760](https://linear.app/supabase/issue/DOCS-1760/show-which-roles-can-delete-the-production-branch-in-the-project)

## Solution

The Branching rows on the Access Control page now have a Delete
permission for the production branch. Only Owner and Administrator can
use it. This matches the minimum role that the authorization model sets
for deleting the production branch. The other rows and the footnotes
stay the same.

## How to verify

1. Open `/docs/guides/platform/access-control#branching-permissions` on
the preview.
2. Under Production Branch, a Delete row shows a check for Owner and
Administrator and a cross for Developer and Read-Only.
3. The Development Branches rows (List, Create, Update, Delete) and the
footnotes read as before.
4. The new row has the same columns and icons as the rows around it.

## Checks

Ran `pnpm turbo run typecheck --filter='...[origin/master]'`, `pnpm
turbo run lint --filter='[origin/master]'`, and `pnpm exec oxfmt
--check` on the changed file. All passed. I checked the roles against
`branching_production_delete: 'administrator'` in
`apps/studio/components/interfaces/Account/AccessTokens/AccessToken.roles.ts`
and against the delete-branch endpoint requirements in
`packages/api-types/types/fga-requirements.ts`. I skipped the docs tests
because they need Docker.

## Checklist

- [x] I have read the [contributing
guidelines](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md).
- [x] The PR title follows the Conventional Commits format.
- [x] The change is limited to the scope described above.

## Feedback for Tedd

To ask Tedd for a change to this PR, reply in Tedd's session on
[DOCS-1760](https://linear.app/supabase/issue/DOCS-1760/show-which-roles-can-delete-the-production-branch-in-the-project).
Tedd doesn't read comments on this PR.

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-11-24 13:50:05 -07:00
InianandNik Richers b703085582 Update access-control.mdx (#34900)
Just being extra cautious to make it clear that developer role has full
content access.

Previous wording could be interpreted as read access to content.

Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-11-05 20:10:26 -07:00
Tanun Turbo Chalermsinsuwan 77e3b4382f feat(role): Allow eligible organizations to invite users as 'No-access' base role (#50922)
## Problem

As the API has allow inviting users into `None / No-access` role for
team, enterprise, and platform tier organization, we need to update the
documentation and descriptions for this new role on the invitation form.

## Solution

1. Updated `apps/docs/content/guides/platform/access-control.mdx` to
include the role
2. Added the role description on
`apps/studio/components/interfaces/Organization/TeamSettings/Roles.constants.tsx`
3. Add the roles into the proper sorting order at
`apps/studio/data/organization-members/organization-roles-query.ts`
4. Add logic to invitation components to disable the role when inviting
user into project(s), as the backend does not allow it.

## Testing and verification steps
The UI:
https://studio-staging-aa8is1m07-supabase.vercel.app/dashboard/org
Documentation:
https://docs-kht98bi78-supabase.vercel.app/docs/guides/platform/access-control

<!--
## Preview links

If relevant, include links to changed pages for easy review access.

Copy the preview base URL from the Vercel bot comment on this PR. Use
the following table as an example template.

| Site | Live | Preview | Search for |
| -------------- |
-------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------
| ----------------------------- |
| WWW | [/blog/your-post](https://supabase.com/blog/your-post) |
[/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post)
| unique phrase from the change |
| Docs |
[/docs/guides/your-page](https://supabase.com/docs/guides/your-page) |
[/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page)
| unique phrase from the change |
| Studio | [/dashboard](https://supabase.com/dashboard) |
[/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard)
| unique phrase from the change |
| Design system | [/design-system](https://supabase.com/design-system) |
[/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system)
| unique phrase from the change |
| UI library | [/library](https://supabase.com/library) |
[/library](https://ui-library-git-branch-name-supabase.vercel.app/library)
| unique phrase from the change |
| Knowledge base |
[/kb/guides/your-page](https://supabase.com/kb/guides/your-page) |
[/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page)
| unique phrase from the change |
-->

<!-- ## Additional context

Optionally add any other context or screenshots.

-->


## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which references
[WORD_LIST](https://github.com/supabase/supabase/blob/master/apps/docs/WORD_LIST.md)
and the docs
[CONTRIBUTING](https://github.com/supabase/supabase/blob/master/apps/docs/CONTRIBUTING.md)
guide


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

## Summary

* **Updates**
* The **None** role is labeled **No-access** and describes the lack of
organization and project resource access.
* **None** is included after **Read-only** in the role list. When
inviting a member with project-only access, **None** is disabled with an
explanation.
* **Documentation**
* Clarified plan coverage for **Read-Only** and **No access**, and added
guidance on assigning **No access** at the organization level before
granting project-specific roles.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-10-05 19:54:55 +07:00
19e6e17257 docs(access-control): footnote first-branch admin requirement for git flow (#46473)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

  Docs update

  ## What is the current behavior?

The access-control permissions matrix shows Developer-role users can
create development branches, but doesn't mention the implicit
production-branch registration step that runs on the first "Create
branch" click for a gitless project — which is
Owner/Administrator only. Customers reading the matrix conclude
Developers can branch from the start; in reality, an
Owner/Administrator has to perform the first branch creation to register
the production branch.

  ## What is the new behavior?

Adds a footnote on the "Development Branches → Create" row that flags
the one-time first-branch admin requirement and links to the
dashboard branching guide for the full explanation. Short cross-link
only — long-form mechanism explanation lives on the dashboard
  branching guide (companion PR #46471).
  
  ## Additional context

- Companion PR adding the long-form admonition on the branching guide
page: #46471

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

* **Documentation**
* Clarified branching permissions for dashboard (gitless) workflows: the
first branch creation (one-time) without a GitHub integration requires
Owner or Administrator to register the production branch; after that
initial step, Developers may create, update, and delete branches as
normal.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Chris Chinchilla <chris@chrischinchilla.com>
2026-06-03 14:02:48 +02:00
Vaibhav 2371bb0290 fix(docs): smtp access (#45094)
fixes the SMTP settings permission in the Access Control docs

<img width="879" height="82" alt="image"
src="https://github.com/user-attachments/assets/75fac0b6-f0c7-4464-b61e-0c17ff91dc74"
/>

## ref:

- closes https://github.com/supabase/supabase/issues/45088


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

## Summary by CodeRabbit

## Documentation
* Improved table formatting in access control documentation for better
visual consistency and clarity.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-04-22 10:54:27 +01:00
Ivan VasilovandJoshen Lim 9fa96977be chore: Minor prettier fixes (#43849)
This PR fixes some prettier issues:
- Bump and unify all prettier versions to 3.7.3 across teh whole repo
- Bump the SQL prettier plugin
- When running `test:prettier`, check `mdx` files also
- Run the new prettier format on all files

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2026-03-17 11:17:42 +01:00
CharisandChris Chinchilla 47705a8968 chore: replace all supabase urls with relative urls (#38537)
* fix: rewrite relative URLs when syncing to GitHub discussion

Relative URLs back to supabse.com won't work in GitHub discussions, so
rewrite them back to absolute URLs starting with https://supabase.com

* fix: replace all supabase urls with relative urls

* chore: add linting for relative urls

* chore: bump linter version

* Prettier

---------

Co-authored-by: Chris Chinchilla <chris.ward@supabase.io>
2025-09-09 12:54:33 +00:00
Jordi Enric e4837267f6 Warehouse Clean Up (#37507) 2025-07-28 17:14:57 +02:00
Han Qiao b215b982ef docs: update branching access control matrix (#37458) 2025-07-25 15:42:45 +00:00
Charis a62ae515b1 docs: add instructions for using management api as alternative to dashboard ui (#36676) 2025-06-26 09:10:10 -04:00
Hieu 5abafd7954 feat: improve org vs project scopes roles definition (#35920) 2025-05-26 15:43:52 +07:00
Kevin Grüneberg 173cc56e71 feat: expose project perms to team plan (#35007) 2025-04-21 10:05:54 +08:00
Charis 2d55512553 chore: activate spelling and admonitions lints for docs (#33292) 2025-02-04 13:18:31 -05:00
Wen Bo Xie 84694717e3 docs: add OpenAI Telemetry opt in permissions (#32667) 2025-01-09 18:26:50 +00:00
Charis d69902da94 chore(docs): lint all sections with linter v2 (#31110)
lint(docs): heading capitalization
2024-12-16 14:33:25 -05:00
Etienne Stalmans 68cf63af07 chore: clarify read-only role database permissions (#30335)
* chore: clarify read-only role database permissions

Access control docs list the dashboard and API permissions for the
read-only role. These are distinct from the database permissions, which
are fully read-only.

* fix: spelling
2024-11-07 16:35:48 +01:00
Wen Bo Xie d11f603d80 fix: update project permission breaking changes (#29903)
* fix: update project permission breaking changes

* fix
2024-10-16 17:02:09 +00:00
Wen Bo Xie a7a75416fd fix: update Developer project permissions (#29758) 2024-10-08 17:41:45 -04:00
Wen Bo XieandCharis 4f71dd45ca fix: add project permissions breaking changes note (#29495)
* fix: add project permissions breaking changes note

* Update apps/docs/content/guides/platform/access-control.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-09-24 21:58:11 +00:00
Wen Bo Xie 9f40b1f06b fix: correct project permissions access control (#29491) 2024-09-24 16:51:15 -04:00
Etienne Stalmans d0d62e24c4 docs: make permissions table sections linkable (#28087)
Makes it possible to link directly to a section of the permissions tables
2024-07-22 08:48:31 +02:00
Joshen Lim 2f0bffb569 Fix access control docs (#28060) 2024-07-18 23:07:14 +08:00
Wen Bo XieandKevin Grüneberg f1541878a9 fix: singularize and capitalize Supabase plans (#28052)
Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>
2024-07-18 04:49:00 +00:00
Wen Bo XieandJoshen Lim 986ab126c9 feat: add project-level permissions docs (#27887)
* fix: update project-level permissions docs

* update read-only role callout

* Add section to differentiate org and project level roles

* Address comments

* Add section to chat about invite limitation for project scoped role

* Prettier

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-07-17 17:53:46 +08:00
Bobbie Soedirgo fdc8201b48 docs: add note re: requirement of PG14+ for read-only db role (#21798) 2024-03-06 06:39:35 +00:00
Charis b0b8b6b6e3 refactor: finish moving mdx to content directory (#21321) 2024-02-16 13:43:02 -05:00