berth

How Berth works

Roles and permissions

Who can do what in Berth: administrators, resellers, customers and auditors, restricted logins with per-area rights, an emergency account, four-eyes approval for sensitive actions and temporary just-in-time elevation.

Updated 7 min readroles · permissions · rbac · auditor · reseller · four-eyes · break-glass · least privilegeView as Markdown

On this page
  1. The roles
  2. Administrators
  3. Auditors
  4. Resellers
  5. Customers and their restricted logins
  6. API tokens
  7. Four-eyes approval
  8. Just-in-time elevation
  9. The emergency account
  10. Narrowing sign-in further
  11. Reviewing access

Berth has a small number of roles with clear boundaries, plus a few mechanisms that limit what even an administrator can do alone. This article describes each role, the restricted logins customers give to colleagues and web developers, and the controls for sensitive actions: four-eyes approval, just-in-time elevation and the emergency account.

Everything a role can do in the panel, it can also do through the REST API; every change lands in the activity log. The berth command line on the server runs as root and is meant for the server's administrators.

The roles

RoleSeesCan
AdministratorEverythingEverything, including server settings.
AuditorEverything an administrator seesChange nothing except their own account. Can request temporary administrator rights.
ResellerTheir own customersManage their customers, subscriptions, domains and logins, within their own limits.
Customer (the owner)Their own subscriptionsManage their domains, mail, databases, files, backups and logins, within their package.
Restricted loginWhat the customer assignsOnly the chosen areas, optionally for one subscription.
Emergency accountEverythingAn administrator for when normal access fails; every sign-in is reported.

Each role has its own dashboard. In the panel, administrators and auditors are listed together under Access → Admins and auditors; "staff" is a grouping, not a separate role.

Administrators

Administrators manage the whole server: customers, resellers, packages, system settings, security, backups and migrations. Create one under Access → Admins and auditors, or on the server:

printf '%s\n' "$PW" | berth admin create --login jan --email jan@example.nl

Without a password, the panel generates one and shows it once. You cannot disable yourself or the last administrator.

An administrator can sign in as a customer from the customer page: a bar at the top of every page shows that you are working as that customer. Your administrator session ends when you start; the Back to admin button signs you out, and you sign in again as yourself. This is logged.

Auditors

An auditor sees everything an administrator sees and changes nothing, for example for an accountant, a security officer or a regulator.

Read-only means looking, not taking. An auditor does not download customer content or secrets: no files from a webspace, no backup archives, no database dumps, no migration export files, no customer data exports, no customer mail (list archives, queued messages, the mail catcher) and no .env files. Values of environment variables and secrets in a .env, and addresses that contain a token (status page links, heartbeat URLs, webhooks), are shown as (hidden).

What an auditor does see: every list and setting, logs, the activity log, the access review, certificates and incidents (including CSV exports) and the evidence pack.

printf '%s\n' "$PW" | berth admin create --login accountant --role auditor

Resellers

A reseller sells hosting on: they manage their own customers, those customers' subscriptions, domains and logins, can sign in as their customers, suspend them and move subscriptions between them. Limits apply across all their customers together: customers, subscriptions, domains, mailboxes, databases and disk space. Optionally a reseller may oversell disk, create their own packages and use their own brand and panel address.

Everything at server level stays with the administrator: system settings, firewall, backup storage, PHP versions, certificate authorities, single sign-on and other resellers. See Resellers and white label.

Customers and their restricted logins

A customer owns one or more subscriptions and manages everything inside them within the package. A customer should never share their own password: instead they give a web developer, colleague or bookkeeper a restricted login with only the areas they need. The activity log then shows who did what.

In the panel: Users → Add login for the customer, or the Logins tab on the customer page for an administrator. Choose the areas:

AreaGives access to
Websites and settings (domains)Domain settings, redirects, protected folders
Files, SFTP and FTP (files)File manager, SFTP, FTP, Git, apps, containers, terminal
Databases (databases)Databases
Mail (mail)Mailboxes and aliases
WordPress (wordpress)WordPress management
Backups (backups)Making and restoring backups
Statistics and logs (stats)Usage, statistics, logs, uptime
Scheduled tasks (cron)Scheduled tasks
Security (security)WAF, malware scan, outbound traffic

Optionally limit the login to one subscription. A restricted login can never manage logins, add or remove domains, or connect an AI assistant. New parts of the panel are closed to restricted logins until a permission explicitly covers them.

berth customer login add --customer acme --login webbouwer --email dev@acme.nl \
  --perms files,databases,wordpress --sysuser acme
berth customer login set --customer acme --login webbouwer --disabled

API tokens

API tokens act with the rights of the login that created them, narrowed by a scope: full, ai:read, ai:write, ai:full, provisioning (for billing systems), metrics, probe and monitor:read. A token can be limited to one subscription, expires (by default after a year) and is stored only as a hash. No token can manage tokens or two-step verification, and sensitive operations need an explicit sensitive scope or a fresh re-authentication. See REST API and AI assistant and MCP.

Four-eyes approval

With four-eyes switched on, a sensitive action by one administrator becomes a request that a second administrator must approve. Switch it on under Access, card Four-eyes for sensitive actions, or berth approvals four-eyes on. It requires at least two administrators.

Covered actions include:

  • deleting a customer, a domain with its files, or a database;
  • restoring a backup over the original (a whole account, parts or files), and deleting a backup;
  • removing an IP address from the server, and changing the firewall;
  • weakening sign-in security, and switching four-eyes off;
  • creating an administrator, or resetting another administrator's password or second factor.

When a new administrator is approved, they receive a reset link on their own email address and choose their own password; the requester never sees it. So nobody can create a second administrator to approve their own requests.

Another administrator approves under Security → Approvals, or with berth approvals list and berth approvals approve. The action then runs in the name of the requester. A request expires after 24 hours. An administrator's API or AI token that is limited to one subscription also falls under four-eyes.

Root on the server and the emergency account are outside four-eyes by design: they are the way back in when the panel's own controls are the problem. Both are logged.

Just-in-time elevation

Nobody needs permanent administrator rights for occasional work. An auditor requests administrator rights for 1 to 8 hours, with a reason, under Account, card Temporary administrator. Another administrator approves the request under Security → Approvals. The auditor is then an administrator until the time runs out, or until they or an administrator end it:

berth admin elevation-end --login accountant

The emergency account

An emergency account (break-glass) is for when normal access fails, for example when the single sign-on provider is down:

berth admin break-glass --login nood

The password is long, random and shown once: store it on paper in a safe or a sealed envelope. The emergency account does not need a second factor, so it works even when the second factor is the problem. In return, every sign-in is recorded in the activity log and notified to all administrators, a session lasts at most an hour, and API tokens do not work with it. --off turns it back into a normal administrator.

Narrowing sign-in further

  • Allowed addresses per login: under Account, Sign in only from, or berth admin allowed-ips --login <login> --set 203.0.113.0/24.
  • Single sign-on only: logins linked to a provider can be restricted to signing in through it. See Single sign-on.
  • Two-step verification and passkeys are optional and recommended for everyone. See Sign-in security.

Reviewing access

Access, card All accounts, lists every account with its role, second factor, last sign-in, sessions and API tokens, with a CSV export for periodic access reviews:

berth admin access
berth admin sessions list --login jan
berth admin disable --login jan

Disabling a login ends its sessions immediately. The audit watchdog reports unusual events such as privilege changes, impersonation, use of the emergency account and sign-ins from a new country.