# Vaubaan plugin

The Vaubaan plugin lets a Vaubaan Gateway mission use Vaubaan without handing the agent a credential. Let an agent prepare missions for other agents: read your accounts and the catalogs, preview, issue, rename, change, rotate and revoke missions in your name.

Version `0.5.2` · 9 permissions · 5 macro-actions · 11 tools · 3 gateways run this plugin (over the last 90 days).

## How Vaubaan is modelled

4 planes, 10 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 your own place on this gateway: it holds no secret, belongs to you and is never shared.
  - Plane `accounts` — The accounts the person may build a mission from.
    - `account` (1 *; the resource) — An account the person owns or that is shared with them: its permissions, resources and macro-actions.
  - Plane `catalogs` — The risk catalogs of the services this gateway ships.
    - `catalog` (1) — The risk catalog of one service, named by its id (\`github\`).
  - Plane `plugins` — The plugins of the instance, as an administrator installs them.
    - `plugin` (1 *) — A plugin of the instance: its running version and its installed ones.
      - `upload` (1) — Verb leaf: an archive uploaded, inert until an administrator activates it in the browser.
  - Plane `missions` — The person's missions.
    - `mission` (1 *) — A mission the person created, or one shared with them as a member.
      - `issue` (1) — Verb leaf: a new mission issued in the person’s name.
      - `rename` (1) — Verb leaf: the name of a mission changed, nothing else.
      - `edit` (1) — Verb leaf: a mission changed after issuance — its accounts, resources, permissions, limits or end — within the person’s authority.
      - `token` (1) — Verb leaf: the key of a mission replaced, the old one refused at once.
      - `revoke` (1) — Verb leaf: a mission stopped for good.

Marks: 1 exactly one, named; n a finite, known set; * an unknown number, possibly all.

- **Account**: One account is your own place on this gateway: it holds no secret, belongs to you and is never shared.
- **Resource**: It has no resource: a mission on it reaches your accounts, the catalogs and your missions, always within your authority. A mission prepared or changed here never carries a Vaubaan account, and a mission never renames, changes, rotates or revokes itself.
- **Environment**: No permission of this service depends on an environment: each is held once, whatever the resource. Known: none. Carried by: nothing in the model. There is no environment.

## What an agent does at Vaubaan: 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. **Read my setup** — List my accounts, the catalogs and my missions; preview a mission. Finding out what a mission could be made of: the accounts the person holds, the permissions of each service and the missions already running, and checking a draft before it is issued. Nothing is written, and no key leaves the gateway. (2 permissions)
2. **Prepare missions** — Issue a mission in my name; rename or change my missions. Issuing a mission for another agent, renaming one, or changing one after issuance: the person is the creator, a mission holds only what they hold, and they answer its requests. Issuing hands over a key and an edit can widen a mission, which is why the person sees each before it happens at the careful level; a new name runs freely. (3 permissions)
3. **Rotate a key** — Replace the key of a mission this mission issued. Replacing the key of a mission this mission prepared, when the key leaked or was lost. Kept apart from issuing because it cuts off the agent holding the old key, and it reaches only the missions this mission issued. (1 permission)
4. **Install plugins** — Upload a plugin I built; read the plugins of the instance. Handing over a plugin the agent built, for an administrator to activate: the archive waits, inert, until a person reads what it changes and activates it in the browser. Only a mission an administrator created may do it, and none of these tools activates, rolls back or removes a plugin. (2 permissions)
5. **Stop missions** — Revoke one of my missions for good. Stopping a mission whose task is done or whose key leaked. It cannot be undone: the work resumes only on a new mission. A mission never stops itself here. (1 permission)

## The map

9 permissions of 5 macro-actions, in the four rows of the tree. For the chosen trust level, each cell gives yes, ask me or no, and the quota a day.

Careful ×1: Mild actions run freely; sensitive or costly ones ask first; irreversible ones are left out. Trusting ×3: Up to sensitive actions run freely; costly and irreversible ones ask first. Limits ×3. Autonomous ×10: Everything but irreversible actions runs freely; those ask first. Limits ×10.

yes: runs freely; ask me: ask me first; no: not included. 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.

### Cannot be repaired

Careful: no. Trusting, Autonomous: ask me.

None.

### Repairable, at a price

Careful, Trusting: ask me. Autonomous: runs freely.

- Stop missions: Stop one of my missions for good `vaubaan.mission-revoke`, costly to undo — Stops one of the person's missions: its keys are refused from now on and it cannot be restarted. The work goes on only after a new mission is issued and its key handed over. A mission cannot stop itself here. Careful: ask me · 10 a day · Trusting: ask me · 30 a day · Autonomous: yes · 100 a day.

### Worth a look

Careful: ask me. Trusting, Autonomous: runs freely.

- Prepare missions: Issue a mission in my name `vaubaan.mission-issue`, secret data — Creates a mission under the person's name, within their authority and never beyond it, and hands its key to the agent, which can give it to another agent. The mission can be revoked at any time; it never carries a Vaubaan account. Careful: ask me · 10 a day · Trusting: yes · 30 a day · Autonomous: yes · 100 a day.
- Prepare missions: Change one of my missions `vaubaan.mission-edit`, whole account — Changes a mission after issuance, as "Edit mission" does in the interface: its accounts, resources, permissions, limits and end, within the person's authority and never beyond it. One edit can widen a mission to everything the person holds, or narrow it under the agent working on it. Each edit is one version in the mission's History; a mission cannot edit itself here, and an edit never adds a Vaubaan account. Careful: ask me · 10 a day · Trusting: yes · 30 a day · Autonomous: yes · 100 a day.
- Rotate a key: Replace the key of a mission this mission issued `vaubaan.mission-key-rotate`, secret data — Replaces the key of a mission this very mission issued: the old key is refused at once and the new one is handed to the agent. The mission itself, its permissions and its limits are unchanged. Careful: ask me · 5 a day · Trusting: yes · 15 a day · Autonomous: yes · 50 a day.

### Harmless

Runs freely at every level.

- Read my setup: Read my accounts and the catalogs `vaubaan.read-setup` — Shows the agent which accounts the person may build a mission from, their resources and permissions, a service's risk catalog, and what a draft mission would allow. Names and ids only: no key or secret of an account is ever shown. Careful: yes · 500 a day · Trusting: yes · 1,500 a day · Autonomous: yes · 5,000 a day.
- Read my setup: Read my missions `vaubaan.read-missions` — Shows the agent the person's missions: their permissions, what is left of each limit, their state and who prepared them. A key is shown by its masked prefix only. Careful: yes · 500 a day · Trusting: yes · 1,500 a day · Autonomous: yes · 5,000 a day.
- Prepare missions: Rename one of my missions `vaubaan.mission-rename` — Changes the name of one of the person's missions, as they read it in the interface and its History. Nothing else moves: permissions, limits, keys and the agent's work are untouched. A mission cannot rename itself here. Careful: yes · 20 a day · Trusting: yes · 60 a day · Autonomous: yes · 200 a day.
- Install plugins: Read the plugins of the instance `vaubaan.plugin-read` — Shows the agent which plugins the instance runs and every version an administrator installed, with its state and why one did not load. Only for a mission an administrator created. Careful: yes · 200 a day · Trusting: yes · 600 a day · Autonomous: yes · 2,000 a day.
- Install plugins: Upload a plugin to the instance `vaubaan.plugin-upload` — Lets the agent hand over the archive of a plugin it built. The archive is checked without running any of its code and stays inert: an administrator reads what it changes and activates it in the browser, and it starts on trial at the next start. Only for a mission an administrator created. Careful: yes · 10 a day · Trusting: yes · 30 a day · Autonomous: yes · 100 a day.

Careful: runs freely 5, ask me first 4.
Trusting: runs freely 8, ask me first 1.
Autonomous: runs freely 9, ask me first 0.

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.

## A few calls, classified by the plugin

14 declared calls, run through the plugin's own classifier when this page was built; here one per macro-action. [The 14 calls, as code](https://github.com/vaubaan/gateway/blob/main/plugins/vaubaan/src/examples.ts).

- `vaubaan__list_my_accounts {}`
  - the plugin sees: `vaubaan.account[*].R`
  - the catalog answers: Read my accounts and the catalogs `vaubaan.read-setup`
  - a Careful mission: yes
- `vaubaan__issue_mission {"name":"Fix the flaky test","period":{"kind":"one-off"},"expires_at":null,"accounts":[{"account_id":"0193a4f2-0000-7000-8000-000000000001","resources":{"scope":"selected","resource_refs":["acme/app"]},"trust_levels":{"read":"careful","pull-requests":"careful"}}]}`
  - the plugin sees: `vaubaan.mission[*].issue.W`
  - the catalog answers: Issue a mission in my name `vaubaan.mission-issue`
  - a Careful mission: ask me
- `vaubaan__rotate_mission_token {"mission_id":"0193a4f2-7c1e-7b3a-9d2f-5e6a7b8c9d0e"}`
  - the plugin sees: `vaubaan.mission[0193a4f2-7c1e-7b3a-9d2f-5e6a7b8c9d0e].token.W`
  - the catalog answers: Replace the key of a mission this mission issued `vaubaan.mission-key-rotate`
  - a Careful mission: ask me
- `vaubaan__upload_plugin {"archive_base64":"H4sIAAAAAAAAA+3BAQ0AAADCoPdPbQ8HFAAAAAAAAAAAAAAA"}`
  - the plugin sees: `vaubaan.plugin[*].upload.W`
  - the catalog answers: Upload a plugin to the instance `vaubaan.plugin-upload`
  - a Careful mission: yes
- `vaubaan__revoke_mission {"mission_id":"0193a4f2-7c1e-7b3a-9d2f-5e6a7b8c9d0e"}`
  - the plugin sees: `vaubaan.mission[0193a4f2-7c1e-7b3a-9d2f-5e6a7b8c9d0e].revoke.W`
  - the catalog answers: Stop one of my missions for good `vaubaan.mission-revoke`
  - a Careful mission: ask me

## Anything else

A call no permission covers touches `vaubaan.uncategorized-write` instead of slipping through. No macro-action holds it; a person ticks it knowingly.

| Permission | Risk | Careful ×1 | Trusting ×3 | Autonomous ×10 |
| --- | --- | --- | --- | --- |
| Uncategorized write `vaubaan.uncategorized-write`: Catch-all for writes without a dedicated entry. Every tool of this plugin has one. | Repairable, at a price (costly to undo) | ask me · 50 a day | ask me · 150 a day | yes · 500 a day |

## Tools

11 tools. A tool's permissions depend on its arguments, so a mission is made of the macro-actions above, not of tools.

| Tool | What it does | Usually touches |
| --- | --- | --- |
| `vaubaan__list_my_accounts` | List my accounts | `vaubaan.read-setup` |
| `vaubaan__get_catalog` | Read a service’s risk catalog | `vaubaan.read-setup` |
| `vaubaan__list_my_missions` | List my missions | `vaubaan.read-missions` |
| `vaubaan__preview_policy` | Preview a mission | `vaubaan.read-setup`, `vaubaan.read-missions` |
| `vaubaan__issue_mission` | Issue a mission | `vaubaan.mission-issue` |
| `vaubaan__rename_mission` | Rename a mission | `vaubaan.mission-rename` |
| `vaubaan__edit_mission` | Change a mission | `vaubaan.mission-edit` |
| `vaubaan__rotate_mission_token` | Replace a mission’s key | `vaubaan.mission-key-rotate` |
| `vaubaan__revoke_mission` | Revoke a mission | `vaubaan.mission-revoke` |
| `vaubaan__upload_plugin` | Upload a plugin | `vaubaan.plugin-upload` |
| `vaubaan__plugin_status` | Read the installed plugins | `vaubaan.plugin-read` |

## Connecting an account

**One click · your own account on the gateway** — `host`

Nothing to create or paste: one click, “Connect”, on the connect screen of Vaubaan. The account is the person's own place on the gateway; it holds no secret and is never shared.

Disconnecting: Nothing to remove anywhere else: disconnecting the Vaubaan account in Accounts stops every mission on it.

## Health

3 gateways run this plugin (over the last 90 days).

| Version | Gateways | Calls | Success | Validated |
| --- | --- | --- | --- | --- |
| `0.5.2` | 3 | no call yet | — |  |
| `0.5.1` | 2 | no call yet | — |  |
| `0.5.0` | 2 | no call yet | — |  |
| `0.4.0` | 2 | 1 | 100.0 % |  |
| `0.3.0` | 2 | 18 | 100.0 % |  |
| `0.2.0` | 2 | 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](/plugins/health)). 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.

## Links

- [Connect a Vaubaan account](/plugins/vaubaan#connect)
- [How Vaubaan is modelled](https://github.com/vaubaan/gateway/blob/main/docs/handbook/services/vaubaan.md)
- [The catalog, as code](https://github.com/vaubaan/gateway/blob/main/plugins/vaubaan/src/risk-catalog.yaml)
- [The plugin source](https://github.com/vaubaan/gateway/tree/main/plugins/vaubaan)
- The page: [/plugins/vaubaan](/plugins/vaubaan)
