On this page
Before you start: Admin role. For a single-server template, run discovery on that target first.
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).
- Open Rules & templates, click Create, choose Create template.
- Enter Name (no
/, renamable later) and optional Description. - Pick One server (select Server for discovered objects) or Any server of a type (engine only). For SSH use SSH template. For web apps see Put a web application behind Principal sign-in.
- Optionally set Longest temporary access and Suggested expiry.
- Under Databases, pick Select or All.
- Under Permissions, pick a preset (Read-only, Read-write) or add an Object scope (
public.*) via Add object scope. Enable Also objects created later for future tables. - Click Create.
The template opens with Access map, Rules and Permissions. Click Give access (Create a rule).
Through the API#
Create with POST /access-templates (masks start with schema, empty body returns 400 request.invalid):
json
{"name":"warehouse-read-only","engine":"postgres",
"description":"Read-only access to the public schema.",
"body":{"targeting":{"discovery":{"database":"app"}},
"grants":[{"target":"public.*","privileges":["SELECT"]}]}}