Plugins / Upstash Redis
Upstash Redis 4.1.1
The Upstash Redis plugin lets a Vaubaan Gateway mission use Upstash Redis without handing the agent a credential. Serverless Redis plane — databases through the Management API, key-value data through each database REST endpoint.
1 · The model
How Upstash Redis is modelled
1 plane, 6 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 Upstash account (email and management API key).
Plane · cacheThe only Upstash Redis plane Vaubaan exposes — covers databases (Management API) and key-value data operations (Data API via REST).
delete, flush and execute for deletions, FLUSHDB/FLUSHALL and arbitrary commands (scripts, administration, unknown verbs).credentials 1credentials: Per-database identity : name, tokens and passwords. Rename / password-reset operations touch this entity.stats 1stats: Per-database usage statistics (commands, throughput, memory). Read-only.backup nbackup: Per-database backup snapshots. Not exposed as tools in the current surface but declared so a future tool lands on an existing entity.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 Upstash account (email and management API key).
Resource
One resource is one Redis database.
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
- developmentstagingprod
- Carried by
cache.database
Its owner labels each database with an environment; key reads and writes, deletions, FLUSH, arbitrary commands and database management are separate permissions held per label.
2 · Macro-actions
What an agent does at Upstash Redis: 4 macro-actions
A mission is made of them: the person ticks the ones the task needs and sets each to a trust level.
- 1
Peek
Metadata, stats and values.
Looking at the mission's databases without changing them: their configuration, usage statistics and the values stored under their keys. Metadata and statistics leak nothing, and the REST tokens are stripped from what the agent sees. Reading values is a permission of its own, because applications often keep sessions or cached credentials in Redis.
3 permissions
- 2
Write keys
Set keys.
Setting and overwriting keys, through the dedicated tools or a plain command. An overwritten value is lost unless it is kept elsewhere, and the application reads the new one at once. This permission alone writes values that stay and nothing else: deleting, expiring or moving a key needs the delete permission too.
1 permission
- 3
Delete keys
Delete keys and flush the database.
Removing data: whole keys, parts of a value, a time to live given to a key, or a move out of its source, plus flushing the whole database. Deleted data is back only from a backup, so these sit apart from writing; a cache write with a time to live needs both. A flush wipes every key at once, which is why it is a permission of its own.
2 permissions
- 4
Manage databases
Create, rename, delete, and arbitrary commands.
Working on the databases themselves: creating, renaming and deleting them, and running any Redis command through execute. Creating one can cost money on a paid plan, a rename breaks whatever still uses the old name, and a deletion drops the store and all its data. An arbitrary command or script can do anything Redis can, deletion and flush included, so it belongs here rather than with writes.
4 permissions
3 · The map
The map
10 permissions of 4 macro-actions, in the four rows of the tree. For the chosen trust level and environment (upstash-redis[prod].…upstash-redis[staging].…upstash-redis[development].…), 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 | PeekMetadata, stats and values. | Write keysSet keys. | Delete keysDelete keys and flush the database. | Manage databasesCreate, rename, delete, and arbitrary commands. |
|---|---|---|---|---|
| Cannot be repaired Careful: no. Trusting, Autonomous: ask me. | None | None |
|
|
| Repairable, at a price Careful, Trusting: ask me. Autonomous: runs freely. | None | None |
|
|
| Worth a look Careful: ask me. Trusting, Autonomous: runs freely. | None | None | None |
|
| Harmless Runs freely at every level. |
|
| None | None |
Careful on prod: runs freely 4, ask me first 4, not included 2. Careful on staging: runs freely 4, ask me first 4, not included 2. Careful on development: runs freely 4, ask me first 4, not included 2. Trusting on prod: runs freely 5, ask me first 5. Trusting on staging: runs freely 5, ask me first 5. Trusting on development: runs freely 5, ask me first 5. Autonomous on prod: runs freely 8, ask me first 2. Autonomous on staging: runs freely 8, ask me first 2. Autonomous on development: runs freely 8, ask me first 2. 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 database: Read database list / details / stats (Management API reads); Read Redis data (GET, KEYS, SCAN, HGETALL, LRANGE, SMEMBERS, TTL, DBSIZE); Read usage statistics; Create a new database (Management API). Every other permission is held once per environment.
4 · A few calls
A few calls, classified by the plugin
34 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 34 calls, as code.
| The call | The plugin sees | The catalog answers | A Careful mission |
|---|---|---|---|
upstash_ |
|
| yes |
upstash_ |
|
| yes |
upstash_ |
|
| ask me |
upstash_ |
|
| no |
5 · Anything else
Anything else
A call no permission covers touches upstash- instead of slipping through. No macro-action holds it; a person ticks it knowingly.
| Permission | Risk | Careful ×1 | Trusting ×3 | Autonomous ×10 |
|---|---|---|---|---|
Uncategorized Upstash Redis writeWhy it sits here: Catch-all for writes that have not been explicitly categorised. If observed in production, signals that a tool was added without a matching catalog entry — the mission creator must opt in explicitly (no implicit accept). In no macro-action. upstash-redis.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
21 tools. A tool's permissions depend on its arguments, so a mission is made of the macro-actions above, not of tools.
21 tools · scroll the list
| Tool | What it does | Usually touches |
|---|---|---|
upstash_ | List databases | upstash- |
upstash_ | Read a database | upstash- |
upstash_ | Create a database | upstash- |
upstash_ | Delete a database | upstash- |
upstash_ | Rename a database | upstash- |
upstash_ | Read the usage of a database | upstash-, upstash- |
upstash_ | Run a Redis command | upstash-, upstash-, upstash-, upstash-, upstash-, upstash- |
upstash_ | Read a key | upstash-, upstash- |
upstash_ | Set a key | upstash-, upstash- |
upstash_ | Delete keys | upstash-, upstash- |
upstash_ | Find keys by pattern | upstash-, upstash- |
upstash_ | Scan the keys | upstash-, upstash- |
upstash_ | Read the time to live of a key | upstash-, upstash- |
upstash_ | Set the expiry of a key | upstash-, upstash- |
upstash_ | Set fields of a hash | upstash- |
upstash_ | Read a hash | upstash-, upstash- |
upstash_ | Prepend values to a list | upstash- |
upstash_ | Read a range of a list | upstash-, upstash- |
upstash_ | Add members to a set | upstash- |
upstash_ | Read the members of a set | upstash-, upstash- |
upstash_ | Count the keys of a database | upstash-, upstash- |
7 · Connecting an account
Connecting an account
1 of 3 · a key you create and paste Developer API key
A Developer API key the person creates at Upstash Redis and pastes once; nobody declares anything beforehand.
Read/Write, on the account that owns the databases. This gateway gives a mission only the databases and commands it names; a Read Only key cannot run the write tools, and changing that means a new key.
- Sign in to the Upstash console with a native Upstash account: an account made through Vercel or Fly has no Developer API.
- AccountDeveloper APICreate API KeyOpen the page and start a new API key. (open)
- Name the key, choose the Read/Write permission and an expiration, then Submit.
- Copy the key and paste it here with the account email. Upstash shows it once.
| Permission at Upstash Redis | Access |
|---|---|
| Read/Write | read-write |
- Where
- https://console.upstash.com/account/api
- Expiry
- About 90 days, chosen at the service; the service does not tell the gateway the date.
- The connect page asks
- Account email and Developer API key (secret)
- The service's documentation
- https://upstash.com/docs/devops/developer-api/introduction
- Disconnecting
- Delete the management API key in the Upstash console, under Account, Management API.
8 · Health
Health
17 gateways run this plugin (over the last 90 days).
| Version | Gateways | Calls | Success | Validated |
|---|---|---|---|---|
4. | 7 | no call yet | — | |
3. | 5 | no call yet | — | |
3. | 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.
9 · Links
Links
Last changed 2026-12-02. This page as Markdown: /plugins/upstash-redis.md