On this page
Swipe the screenshot sideways to see all of it, or tap it to open it full size.
The list#
| Element | Action |
|---|---|
Search templates and Filters |
Filter by name or engine. |
Row |
Engine icon and name. Click to open. |
Create template |
Open template form. |
A template#
Swipe the screenshot sideways to see all of it, or tap it to open it full size.
- Create rule from this template.
- Summary: grants, rules that use the template, last update.
- Audience: users and groups with a rule from this template, with the target and the apply state.
| Part | Action or value |
|---|---|
Give access |
Opens rule form with this template selected. |
Pencil icon (Edit template) |
Edits permissions. Every save creates a new version. |
Text cursor icon (Rename template) |
Renames display name everywhere without reapplying rules. |
Trash icon (Delete) |
Deletes an unused template. |
Access map |
Servers covered. |
Rules |
Subjects, targets, apply states and copy-name button. |
Permissions |
Granted databases, schemas, objects and privileges. |
N rules use an older version |
Outdated rules with Update N rules, results and Retry failed rules. |
The template form#
Swipe the screenshot sideways to see all of it, or tap it to open it full size.
- Engine: PostgreSQL, MySQL / MariaDB, ClickHouse or Kubernetes. It decides which permissions you can pick.
- Quick start fills common permission sets.
- Scope: target-specific (objects of one target) or target-wide (shared objects that are the same on every target).
| Field | Setting |
|---|---|
Name |
Display name (no /). |
One server / Any server of a type |
One server fixes Server, engine and discovered objects. Any server of a type fixes only engine. |
SSH template |
Opens SSH form. Web app templates live under cluster Applications → Add rule (roles without access also see Application template here). |
Description |
Purpose notes. |
Longest temporary access |
Caps rule expiry (30 days, the limit of every rule sets no lower cap). |
Suggested expiry |
Default pre-selected by Give access (Never for none). |
Databases |
Select databases or All. Kubernetes picks namespaces from list or all (no patterns). |
Permissions |
Preset (Read-only, Read-write) or per-object Object scope (such as public.*). Add object scope adds a row (name or *). Update disables if a row with privileges has no name (Enter in name does not save). Also objects created later covers future objects. |
Add rule (Kubernetes) |
Resource types by category (Other, Kubernetes add-ons, or operator such as Dex, cert-manager). Add N resources creates one read-only rule per API group. Cluster-wide grants cluster scope (disallowed under One shared role). Risky flags secret access. Enter a resource by name… adds a manual rule. |
States and statuses#
| State | Meaning |
|---|---|
Version (such as v2) |
Created on save. Rules keep applied version until upgraded (Rules and templates). |
Rule left on its version |
Skipped when target is unmanaged or new version grants nothing. Preview offers Manage target. |
Limits and permissions#
- In-use templates cannot be deleted: Can’t delete template links blocking rules to delete or detach first.
- Renaming updates display names everywhere while keeping the original key (links, API calls and targets stay intact, past audit events keep old names). Upgraded keys replace
/with-. - Scoped per organization (same names allowed across orgs). Upgraded shared templates were copied per org with rules.
- ClickHouse Read-only grants
SELECT,dictGet. Read-write addsINSERT,ALTER UPDATE,ALTER DELETE. DDL,TRUNCATE,OPTIMIZEare separate privileges (earlier presets open separately). - Viewers read. Create, edit and delete need Admin or matching custom permissions.
- Bulk updates and grants run as the confirmer and stop if permissions change mid-run.
Tasks on this screen#
Create a template, Move rules to a new template version, Create a rule, Give temporary access, Change a rule, Protect a web application.
In the API#
Templates are access templates: GET /access-templates, POST /access-templates, PUT /access-templates (new version), PATCH /access-templates (rename), POST /access-templates, POST /access-templates.