Plugins / Supabase
Supabase 6.5.0
The Supabase plugin lets a Vaubaan Gateway mission use Supabase without handing the agent a credential. Postgres, storage, auth and edge functions of Supabase projects, through the Management API.
1 · The model
How Supabase is modelled
4 planes, 36 things. The things that exist at the service and how they nest. Every permission is written over these; a resource of an account is one of them, named by its ref.
Account One account is one personal access token of the Management API, scoped to the whole organization.
Plane · dbPostgres database (schemas, tables, rows, indexes, functions, sequences, views), RLS policies and the migrations ledger.
anon, authenticated, custom) and its privileges. Reached through apply_migration (GRANT, REVOKE, CREATE ROLE).publication npublication: Logical replication publication. No tool today.extension nextension: Postgres extension (vector, pg_net, …). Enabling one shifts the posture (some open egress). Reached through apply_migration.migration n*migration: An applied migration in the supabase_migrations ledger (append-only, version timestamp).branch 1*branch: A preview branch, as its project sees it : listed under the parent, read, deleted or reset under the branch itself, which is a project of its own (its own ref, labelled preview). The acts are the virtual leaves delete and reset.project-settings 1project-settings: Project-wide settings singleton (metadata, API keys, advisors).public, auth, storage, custom).edge-function of the functions plane.sequence nsequence: Postgres sequence inside a schema.view nview: Postgres view inside a schema.bounded for a single identified row or a small WHERE, unbounded for bulk writes. The cardinality marker tells row-write-one from bulk-row-write.index nindex: Postgres index on a table.Plane · storageS3-like object storage organised in buckets with an optional public ACL.
avatars, uploads, …).bounded for one concrete path, unbounded for bulk operations.storage.signed-url-read).Plane · authGoTrue authentication : users, SAML SSO, third-party JWT providers, auth configuration.
bounded for a single id or email, unbounded for listings and bulk writes.Plane · functionsEdge Functions (Deno runtime) and the project-wide function secrets.
project.functions-config 1functions-config: Project-wide functions configuration singleton. No tool today.1 exactly one, namedn a finite, known set* an unknown number, possibly all the resource carries the environment no tool touches it
Account
One account is one personal access token of the Management API, scoped to the whole organization.
Resource
One resource is one project (database, storage, auth and edge functions). A preview branch opened for a pull request is a resource of its own, labelled preview by Vaubaan.
Environment
- Rule
- The environment is the label the owner of the account puts on each resource. A permission tied to an environment is held once per label, and is refused on a resource that has no label or a label the permission does not list.
- Known
- previewstagingprod
- Carried by
db.project,storage.project,auth.project,functions.project
Supabase runs one project per environment, so the owner of the account labels each project (staging, prod, …) and the permissions tied to an environment apply to the projects carrying that label.
2 · Macro-actions
What an agent does at Supabase: 5 macro-actions
A mission is made of them: the person ticks the ones the task needs and sets each to a trust level.
- 1
Query
Data, storage objects, functions, users and managed schemas.
Reading the project: tables through read-only SQL, storage objects, Edge Function code and auth users. Every read touches the broad data permission, and narrower ones fire with it where the stakes rise: personal data of users, a signed URL that hands a file to someone the agent picks, and the schemas Supabase keeps for itself (auth sessions, vault secrets), which a query the classifier cannot read with confidence also touches.
6 permissions
- 2
Change data
Rows, storage objects, users and sign-in links.
Changing what the applications hold: rows written by migrations, files in buckets, users and their sign-in links. One file or one user can be put back; a mass row write or a prefix-wide delete cannot, so those are separate permissions and are never accepted on prod. A sign-in link, and setting a user's password, email, phone or app metadata, are permissions of their own because whoever does it is that user, or grants them a role.
7 permissions
- 3
Change the schema
Migrations, row-level security, extensions and buckets.
Migrations that create or alter tables and indexes, row-level security policies, extensions and buckets. Each migration touches the schema permission, and one that also writes rows, changes security or adds an extension needs that permission too. A policy or a public bucket decides who can read the data, so a single mistake here is a leak.
4 permissions
- 4
Ship functions
Code, deployment and secrets of Edge Functions.
Changing the code of Edge Functions, deploying it, and setting the secrets it reads at runtime. Writing the body and deploying it are kept apart, since a deploy changes live behaviour at once, on prod for every caller. A secret change can break a function immediately or feed it a value someone else chose.
3 permissions
- 5
Administer
Database roles, storage and auth configuration, SSO, preview branches.
Changing who may do what in the project: database roles and grants, storage settings, SSO and third-party sign-in, the auth configuration. Each one shifts the posture for every application and every user at once, and outlives the mission. A wrong identity provider or signup policy lets strangers sign in, which is why none of this belongs to the other verbs. Deleting or resetting a preview branch is here too: it drops what the branch held, and only a branch labelled preview or staging can be.
7 permissions
3 · The map
The map
27 permissions of 5 macro-actions, in the four rows of the tree. For the chosen trust level and environment (supabase[prod].…supabase[staging].…supabase[preview].…), each cell gives yes, ask me or no, and the quota a day.
A permission sits in the first row its facts answer: irreversible; costly to undo or unbounded cost; secret or personal data, whole account or bulk, moderate cost, public; otherwise harmless.
| Risk | QueryData, storage objects, functions, users and managed schemas. | Change dataRows, storage objects, users and sign-in links. | Change the schemaMigrations, row-level security, extensions and buckets. | Ship functionsCode, deployment and secrets of Edge Functions. | AdministerDatabase roles, storage and auth configuration, SSO, preview branches. |
|---|---|---|---|---|---|
| Cannot be repaired Careful: no. Trusting, Autonomous: ask me. | None |
|
| None |
|
| Repairable, at a price Careful, Trusting: ask me. Autonomous: runs freely. | None |
|
|
|
|
| Worth a look Careful: ask me. Trusting, Autonomous: runs freely. |
|
|
| None |
|
| Harmless Runs freely at every level. |
| None | None | None |
|
Careful on prod: runs freely 2, ask me first 19, not included 6. Careful on staging: runs freely 2, ask me first 21, not included 4. Careful on preview: runs freely 2, ask me first 21, not included 4. Trusting on prod: runs freely 12, ask me first 10, not included 5. Trusting on staging: runs freely 12, ask me first 15. Trusting on preview: runs freely 12, ask me first 15. Autonomous on prod: runs freely 21, ask me first 1, not included 5. Autonomous on staging: runs freely 23, ask me first 4. Autonomous on preview: runs freely 23, ask me first 4. Limits are counted over a mission's period: a day unless its creator picks another, or the mission's whole life for a one-off. The figures here are per day.
Held once, whatever the project: Read data and schema; List or download storage objects; Issue a signed URL; List or read Edge Functions (metadata and body). Every other permission is held once per environment. Not accepted on prod: Bulk write on a table; Bulk upload or delete of objects; Bulk user manipulation; Delete a preview branch; Reset a preview branch.
4 · A few calls
A few calls, classified by the plugin
60 declared calls, run through the plugin's own classifier when this page was built; here one per macro-action and the first the catalog refuses at Careful. The 60 calls, as code.
| The call | The plugin sees | The catalog answers | A Careful mission |
|---|---|---|---|
supabase__ |
|
| yes |
supabase__ |
|
| ask me |
supabase__ |
|
| ask me |
supabase__ |
|
| ask me |
supabase__ |
|
| no |
5 · Anything else
Anything else
A call no permission covers touches supabase. instead of slipping through. No macro-action holds it; a person ticks it knowingly.
| Permission | Risk | Careful ×1 | Trusting ×3 | Autonomous ×10 |
|---|---|---|---|---|
Uncategorized Supabase writeWhy it sits here: Catch-all for writes without a dedicated entry. A mission holding it for an environment allows every uncategorized write of the service there ; its limits and “ask me first” bound it. A tool needing only this permission is a catalog bug. supabase.uncategorized-write | Repairable, at a price costly to undo | ask me · 50 a day | ask me · 150 a day | yes · 500 a day |
6 · Tools
Tools
49 tools. A tool's permissions depend on its arguments, so a mission is made of the macro-actions above, not of tools.
49 tools · scroll the list
| Tool | What it does | Usually touches |
|---|---|---|
supabase__ | List the projects of the mission | supabase. |
supabase__ | Read the project | supabase. |
supabase__ | Read the API URL and the anonymous key | supabase. |
supabase__ | List tables | supabase. |
supabase__ | List applied migrations | supabase. |
supabase__ | Run a read-only SQL query | supabase., supabase. |
supabase__ | Read the advisors | supabase. |
supabase__ | Apply a database migration | supabase., supabase., supabase., supabase., supabase. |
supabase__ | List preview branches | supabase. |
supabase__ | Read a preview branch's database settings | supabase. |
supabase__ | Delete a preview branch | supabase. |
supabase__ | Reset a preview branch | supabase. |
supabase__ | List storage buckets | supabase. |
supabase__ | Read the storage configuration | supabase. |
supabase__ | Change the storage configuration | supabase. |
supabase__ | Read the sign-in configuration | supabase. |
supabase__ | Change the sign-in configuration | supabase. |
supabase__ | List SSO providers | supabase. |
supabase__ | Read an SSO provider | supabase. |
supabase__ | Register an SSO provider | supabase. |
supabase__ | Change an SSO provider | supabase. |
supabase__ | Delete an SSO provider | supabase. |
supabase__ | List third-party sign-in providers | supabase. |
supabase__ | Read a third-party sign-in provider | supabase. |
supabase__ | Register a third-party sign-in provider | supabase. |
supabase__ | Delete a third-party sign-in provider | supabase. |
supabase__ | List edge functions | supabase., supabase. |
supabase__ | Read an edge function | supabase., supabase. |
supabase__ | Read the source of an edge function | supabase., supabase. |
supabase__ | Create an edge function | supabase. |
supabase__ | Change an edge function | supabase. |
supabase__ | Delete an edge function | supabase. |
supabase__ | Deploy an edge function | supabase., supabase. |
supabase__ | List the names of function secrets | supabase. |
supabase__ | Set function secrets | supabase. |
supabase__ | Delete function secrets | supabase. |
supabase__ | List users | supabase., supabase. |
supabase__ | Read a user | supabase., supabase. |
supabase__ | Create a user | supabase. |
supabase__ | Change a user | supabase., supabase. |
supabase__ | Delete a user | supabase. |
supabase__ | Generate a one-time sign-in link | supabase. |
supabase__ | Create a storage bucket | supabase. |
supabase__ | Change a storage bucket | supabase. |
supabase__ | Delete a storage bucket | supabase., supabase. |
supabase__ | List the objects of a bucket | supabase., supabase. |
supabase__ | Upload an object | supabase. |
supabase__ | Delete an object | supabase. |
supabase__ | Create a signed URL for an object | supabase., supabase., supabase. |
7 · Retired permissions
Retired permissions
Kept so the missions that hold them still read; no tool touches them and no new mission is offered them.
- Write rows one by one (bounded target) — deprecated, no tool touches it
supabase.row- write- one
8 · Connecting an account
Connecting an account
1 of 3 · a key you create and paste personal access token
A personal access token the person creates at Supabase and pastes once; nobody declares anything beforehand.
Project: the projects the agents will use, with the Full access preset. This gateway gives an agent only the projects and permissions its mission names; a project left out of the token means editing it at Supabase.
- Sign in to Supabase as the account the agents will act as.
- Account preferencesAccess TokensOpen the page and generate a new token. (open)
- Resource accessProjectChoose Project, then the organization and the projects the agents will use.
- PresetFull accessChoose Full access: each mission narrows what the agents may do.
- Check that every permission below is granted at the access shown.
- Expires inChoose how long the token lasts, then generate it.
- Copy the token and paste it here. Supabase shows it once.
| Permission at Supabase | Access |
|---|---|
| Projects (account-wide) | read |
| Project settings | read |
| API keys | read |
| API key secrets | read |
| Database | read |
| Migrations | read-write |
| Development branches | read |
| Development branches | read-write |
| Advisors | read |
| Storage | read |
| Storage config | read |
| Storage config | read-write |
| Auth config | read |
| Auth config | read-write |
| Edge Functions | read |
| Edge Functions | read-write |
| Edge function secrets | read |
| Edge function secrets | read-write |
- Where
- https://supabase.com/dashboard/account/tokens
- Expiry
- About 90 days, chosen at the service; the service does not tell the gateway the date.
- The connect page asks
- Personal access token (secret)
- The service's documentation
- https://supabase.com/docs/guides/platform/personal-access-tokens
- Disconnecting
- Delete the token in Supabase, signed in as the account that created it: Account preferences, Access tokens.
9 · Health
Health
18 gateways run this plugin (over the last 90 days).
| Version | Gateways | Calls | Success | Validated |
|---|---|---|---|---|
6. | 2 | 3 | 100.0 % | |
6. | 7 | 1 | 100.0 % | |
5. | 5 | 5 | 100.0 % | |
5. | 5 | no call yet | — |
A version is marked validated by the community with at least 200 reports and a success rate of at least 90 %, over the last 90 days; a gateway shows that mark on the accounts of this service. The figures are refreshed at most hourly (what they mean). It is a community signal, not a security guarantee.
Calls are counted over the last 90 days from the instances that share plugin health. Gateways are counted over the same window among the instances that also share usage statistics, so they are a lower bound. The success rate leaves out calls refused for a rejected credential: a revoked token is the user's configuration, not the plugin.
10 · Links
Links
Last changed 2026-12-02. This page as Markdown: /plugins/supabase.md