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.
| Role | Can |
|---|---|
none | Open their own account page, nothing else. For people waiting for access. |
viewer | See every page and table: dashboard, inventory, checks, incidents, discovered items, on-call, status pages, maintenance windows, Settings, and Security Team. Exports work too. |
responder | Also 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. |
editor | Also 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. |
admin | Also 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:
- The api_token acts as an admin, as before. With
X-Forwarded-Userit acts as that user instead. With built-in sign-in it stops working for the API unlessauth.api_token_access: admin. - A maintenance token can list, open, change and end maintenance windows. Nothing else.
- An MCP token from server.yaml reads everything a viewer reads, plus the audit log.
- uptight-web's relay token reads only the public status pages on its own. Everything else needs the user it names.
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.
- To make new people wait for an admin, set the default to
nonein server.yaml. They see a "Waiting for access" page, and Settings → Users lists them first. - A request without the identity header acts as the default user
web(auth.header.default_user). It is a user like any other. - The proxy names the user in
auth.header.identity_header(X-Forwarded-Userby default). uptight-web reads these settings from central. sudo uptight users import-actorslists the names already in the audit log;--allcreates them, so you can set their roles before they next act.
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:
- Put uptight-web behind a sign-in proxy.
- Set
auth.header.proxy_addrsin central's server.yaml to the proxy's address, so uptight-web takes the identity header from nobody else. - Make another user admin, then lower
web: Settings → Users, orsudo 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:
- Set role gives someone a role. People waiting for access come first, and the tab counts them.
- Disable locks the person out at once, even through the proxy, and stops their tokens. Enable brings them back with the role they had.
- You cannot change your own role or disable yourself, and Uptight refuses to leave no active admin.
- Add a user or service account creates a person before their first visit, with the exact name your proxy sends, or a service account for CI and integrations. With built-in sign-in it creates a local account.
- With built-in sign-in, a user's page also has Create setup link (or Create password reset link), Remove two-factor and Unlock. See When someone is locked out.
- It also lists their passkeys, each with Remove, which signs out the sessions that signed in with it; the list shows how many each person has. A reset link does not remove passkeys: after a suspected compromise, remove them too.
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
- A token acts as its owner, with the lower of its role and the owner's role.
- Tokens always expire: after 90 days by default, and after at most 365 days.
- Uptight shows a token once and keeps only its hash. Tokens start with
upt_api_(the API) orupt_mcp_(the MCP server), so secret scanners can spot a leaked one. - Disabling the owner stops the token at once. A token cannot create tokens.
- People behind a proxy cannot own tokens unless you set
auth.header.tokens: true, because a token keeps working after the proxy drops them. Service accounts always can.
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
| Command | What it does |
|---|---|
uptight users list | Users with their role, status and last sign-in |
uptight users create alice --role editor | A 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 viewer | Sets a role |
uptight users disable alice / enable alice | Locks out, or lets back in |
uptight tokens create / list / revoke <id> | Tokens |
uptight users setup-link [--admin] alice | A one-time link to set a password; --admin makes the first admin |
uptight users reset-password / totp-reset / unlock alice | A password reset link; remove two-factor; clear a lockout |
uptight users passkey-reset alice | Remove all their passkeys and sign out the sessions that used them |
uptight users revoke-sessions alice | Signs them out everywhere |
uptight users break-glass alice | A one-time sign-in link, valid 15 minutes, for when no admin can sign in |
uptight auth init | The 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.