Who sees what in the console
The rights are enforced by the admin API, not by the screens: the console and the CLI are two
clients of the same API, and an action someone is not allowed answers 403 whatever the client.
A personal API token acts as its owner, with exactly the same rights.
Who is who
| Level | Who | Where it applies |
|---|---|---|
| Installation administrator | the bootstrap administrators (APIM_BOOTSTRAP_ADMINS), and the users created as admin in Global settings | everywhere: the installation, and every workspace as its administrator |
| Workspace administrator | a member of the workspace with the admin role | that workspace |
| Producer | a member with the producer role | that workspace; manages what its teams own |
| Consumer | a member with the consumer role | the developer portal of the workspace only — the console sends it there |
Inside a workspace, teams own APIs and applications. A producer manages the APIs of the teams it belongs to (and the APIs that belong to no team), and sees the credentials of the applications of its teams. A team has owners — the person who creates it is one — and members.
Screen by screen
✓ allowed · read read only · team only for what the person's teams own · — no access
| Screen | Consumer | Producer | Workspace admin | Installation admin |
|---|---|---|---|---|
| Home of the workspace, search, notifications | — | ✓ | ✓ | ✓ |
| APIs — list and every tab of an API | — | read | ✓ | ✓ |
| APIs — edit, documentation, publish, deploy, new version, lifecycle, delete | — | team | ✓ | ✓ |
| APIs — create, adopt from the gateway | — | ✓ (for its teams) | ✓ | ✓ |
| Shared policy groups — create, edit, publish | — | ✓ | ✓ | ✓ |
| Shared policy groups — delete | — | — | ✓ | ✓ |
| Shared resources — create, edit, publish, upgrade | — | ✓ | ✓ | ✓ |
| Shared resources — delete | — | — | ✓ | ✓ |
| Dictionaries — create, edit, refresh, delete | — | ✓ | ✓ | ✓ |
| Subscriptions — list, open | — | ✓ | ✓ | ✓ |
| Subscriptions — accept, reject, suspend, resume, close, transfer, metadata | — | team (of the API) | ✓ | ✓ |
| Credentials of a subscription (the secret) | — | team (of the application) | ✓ | ✓ |
| Test with the credentials of a subscription | — | team (of the application) | ✓ | ✓ |
| Applications — list, open | — | ✓ | ✓ | ✓ |
| Applications — create | — | ✓ | ✓ | ✓ |
| Applications — edit, rotate a secret, delete | — | team | ✓ | ✓ |
| Observability, analytics of an API, request log | — | ✓ | ✓ | ✓ |
| Audit of the workspace | — | ✓ | ✓ | ✓ |
| Workspace settings — General | — | read | ✓ | ✓ |
| Developer portal — its design (edit, publish, restore, assets) and its settings | — | read | ✓ | ✓ |
| Developer portal — allow scripts on the portal (the warning acknowledged) | — | — | ✓ | ✓ |
| Workspace settings — Members | — | read | ✓ | ✓ |
| Workspace settings — Teams: create | — | ✓ (becomes owner) | ✓ | ✓ |
| Workspace settings — Teams: rename, choose members | — | owners of the team | ✓ | ✓ |
| Workspace settings — Teams: delete | — | — | ✓ | ✓ |
| Workspace settings — Metadata fields | — | read | ✓ | ✓ |
| Workspace settings — Payments: the linked Stripe account | — | read | ✓ | ✓ |
| Workspace settings — Payments: link, unlink, the events, reconcile | — | — | ✓ | ✓ |
| Workspace settings — Catalogs, Export / import | — | — | ✓ | ✓ |
| Gateway — status (does it answer), run the detection | — | ✓ | ✓ | ✓ |
| Gateway — projection queue, drift reports, the counts of the gateway pill | — | its workspaces | its workspaces | all |
| Gateway — its settings: Connection & events, Ingestion, Setup (the url of the gateway, the data exporter, the volumes of the installation) | — | — | — | ✓ |
| Gateway — retry or dismiss a task | — | — | — | ✓ |
| Global settings — API tokens (one's own) | — | ✓ | ✓ | ✓ |
| Global settings — Workspaces, Users, Authentication, Audit export | — | — | — | ✓ |
| Create a workspace, delete a workspace | — | — | — | ✓ |
What is worth knowing
- Every API is visible to every producer of the workspace: a producer opens the APIs of the other teams read only — the console says so on the API and hides the actions.
- Declarative documents follow the same rule (
POST …/apply,otoroshi-apim apply): a producer creates APIs for its own teams, and changes, publishes or deploys an existing API only if it manages it. The remote catalogs (Workspace settings › Catalogs) are a workspace administrator's. - Deciding on a subscription belongs to who manages its API; seeing its secret belongs to the team of its application. Anyone else sees the secret masked. Every read of credentials, and every read of the request log, is written in the audit trail.
- Teams: any producer creates one, and becomes its owner. Only its owners and the workspace administrators rename it and choose its members — otherwise anyone could join a team and manage what it owns. Deleting a team is a workspace administrator's.
- Users are global. A workspace administrator only sees the users of the workspaces it administers; an installation administrator sees them all, and is the only one who creates and deletes a person.
- The gateway pages are the installation's: everyone signed in sees the state of the gateway — whether it answers, and the projection queue and the drift of their own workspaces, the gateway pill counting those only (an installation administrator sees all of them). Its settings are an installation administrator's only: the tabs Connection & events, Ingestion and Setup are not shown to anyone else, the admin API refuses them, and the status it answers anyone else carries neither the url of the gateway, nor its errors, nor the volumes of the installation. The retry or the dismissal of a task are an installation administrator's too.
- The audit trail of a workspace is open to its producers and administrators. The audit of the
whole installation is read through the API (
GET /api/audit), by an installation administrator. - Consumers work on the developer portal. What they see there — which
APIs and plans — is the visibility and the access tags of each API and plan (
user:…,team:…,role:…), not the roles above.
What the console shows
The console follows the same rights in what it shows, so nobody meets a refusal it could have foreseen:
- a producer sees the workspace settings it may read read only (General, Members, Teams, Metadata, Payments), with the reason, and does not see Catalogs nor Export / import;
- the members of a team are chosen in the console by its owners and the administrators only;
- the subscription drawer disables the decisions for who does not manage the API, and shows the rotation of a secret to who may see it;
- a consumer who signs in to the console is sent to the developer portal of its workspaces;
- the workspace selector only offers the workspaces where the person is an administrator or a producer.