Docs / Using Uptight

Users and roles

Central records who acts, gives every user one of five roles, and checks every API call against that role. Scripts and AI assistants get tokens with a role and an expiry. Free in every edition, from 0.11.0.

People sign in with Uptight's own built-in sign-in (local accounts with a password and two-factor or a passkey, the default for new installs from 0.12.1), or through a proxy in front of uptight-web, such as oauth2-proxy or Pomerium. Roles and tokens work the same either way. Sign-in with your OIDC provider comes in the next release.

Roles

Every user has one role. Each role can do everything the role before it can.

RoleCan
noneOpen their own account page, nothing else. For people waiting for access.
viewerSee every page and table: dashboard, inventory, checks, incidents, discovered items, on-call, status pages, maintenance windows, Settings, and Security Team. Exports work too.
responderAlso acknowledge incidents, mute and end mutes, start and end maintenance windows, override on-call, Run now and Test now of a saved check, and post and clear status page notes.
editorAlso change config in the UI, Test now of a draft, Send test, reload config, dismiss config notices, decide discovered items, and accept a vulnerability or refresh the feeds Team.
adminAlso add or move ${secret:…} references in config (below), manage agents (Revoke, Retire, Reset key, Upgrade now), Fix now Team, read the audit log Team, and manage users and tokens.

Central looks up the permission each API route needs in a fixed table, and refuses a route that is not in it. uptight-web only hides the buttons your role cannot use. If a form is sent anyway, the page names the role you need: "You need the editor role to do this. Ask an admin to change your role (Settings → Users)."

Other credentials:

People behind your sign-in proxy

Central records each name your proxy sends as a user on its first request, with the role in auth.header.default_role. That is admin when you leave it unset, so an upgraded install works as before. Lower a role in Settings → Users and central enforces it on the next request.

auth:
  header:
    default_role: viewer   # none | viewer | responder | editor | admin (default)

Without a sign-in proxy, everyone is admin

This applies only to header mode (auth.mode: header); built-in sign-in, the default, is not affected. In header mode without a proxy, everyone who reaches uptight-web acts as web, an admin until you lower it, and can send any identity header to act as anyone. Central logs a warning at start when header mode has neither auth.header.proxy_addrs nor public_url, and admins see a banner on the dashboard and on Settings. To close it:

  1. Put uptight-web behind a sign-in proxy.
  2. Set auth.header.proxy_addrs in central's server.yaml to the proxy's address, so uptight-web takes the identity header from nobody else.
  3. Make another user admin, then lower web: Settings → Users, or sudo uptight users set-role web viewer.

Or skip the proxy and switch to built-in sign-in.

In the web UI

Admins manage people on Settings → Users:

Admins manage tokens on Settings → Tokens: every API and MCP token with its owner, role, expiry and last use, and Revoke. The tokens in server.yaml are listed by name only.

Everyone has Your account (/account): their role and what it allows, their own tokens, and their sessions. With built-in sign-in it also changes your password and two-factor, shows how many recovery codes are left, and adds, renames and removes your passkeys.

Service accounts and tokens

Scripts and CI use a service account's token, not a person's:

sudo uptight tokens create --service ci --role responder --expires 90d   # prints the token once
curl -sS -H "Authorization: Bearer upt_api_…" https://uptight-central.internal/api/v1/summary

uptight-web's own token

uptight-web calls central with a relay token, never the api_token, and from 0.13 needs one in either mode. The relay token reads only the public status pages and the sign-in settings on its own, so the web host holds no credential with admin rights. New package installs get one. On an existing install, run on central:

sudo uptight auth init
systemctl restart uptight
systemctl restart uptight-web

It adds a relay token and a secret key to /etc/uptight/server.yaml, sets UPTIGHT_WEB_TOKEN in /etc/uptight/web.env on the same host and replaces UPTIGHT_API_TOKEN there. Running it again changes nothing. The secret key encrypts two-factor secrets for built-in sign-in: back it up. With high availability, give every node the same auth: block.

Secrets and editors

An editor cannot send a ${secret:…} value anywhere it was not already going. Central refuses an editor's save or draft test that adds a secret reference, creates a check or channel with one, or moves one to another place: a URL's scheme, host or port, a check's host and port, the DNS resolver or the SMTP server. An editor can change everything else, and the web UI keeps their draft and says why. Ask an admin to save it.

From the command line

CommandWhat it does
uptight users listUsers with their role, status and last sign-in
uptight users create alice --role editorA person before their first visit (with built-in sign-in, a local account and its setup link); --service makes a service account
uptight users set-role alice viewerSets a role
uptight users disable alice / enable aliceLocks out, or lets back in
uptight tokens create / list / revoke <id>Tokens
uptight users setup-link [--admin] aliceA one-time link to set a password; --admin makes the first admin
uptight users reset-password / totp-reset / unlock aliceA password reset link; remove two-factor; clear a lockout
uptight users passkey-reset aliceRemove all their passkeys and sign out the sessions that used them
uptight users revoke-sessions aliceSigns them out everywhere
uptight users break-glass aliceA one-time sign-in link, valid 15 minutes, for when no admin can sign in
uptight auth initThe relay token and secret key

Run them on central as root. They open the database directly, so they work while uptight is stopped, and each change is in the audit log as cli:<your login>. Every command and the API are in the README's "Users and roles" section.