AxiomSearch

Wiki › Admin guide

Single sign-on and tool access

Accounts signed in to the Axiom portal open the companion tools (CyberChef, Uptime Kuma, Portainer) and the admin console without signing in again. Which tools an account may open is set per account on the admin page, under People → Users.

How it works

Every sign-in goes through the Axiom server, so two-factor sign-in and the lockout rules apply once, at the portal. After that the browser holds the portal's session, and each tool trusts it in one of three ways:

ToolHow it signs you inWhat you set up
Admin consoleUses the portal session directlyNothing
CyberChefThe gateway admits the session; the tool has no login of its ownNothing
Uptime KumaThe gateway admits the session; Kuma's own login is turned offTurn off Kuma's login once
PortainerPortainer signs in through the Axiom server with OAuth 2.0Register Portainer once

Signing out of the portal (or of the admin console when it was opened from the portal) ends that session everywhere it is used. Portainer keeps its own session for as long as Portainer allows; removing an account's access stops new Portainer sign-ins at once.

Tool access per account

On the admin page, the People → Users table has a Tool access column with a box for each tool. A tick lets the account through the gateway to that tool and, for Portainer, sign in to it. Changes apply to the next request and are recorded in the audit log as tools_changed.

Accounts start on the defaults, shown as a default pill:

  • Admins: CyberChef, Uptime Kuma and Portainer.
  • Everyone else: CyberChef.

Tick or untick a box to give an account its own set; Use defaults puts it back. The admin console itself is not a tool grant: only admins can open it. The analyst portal shows each account only the tools it may open.

Warning: Portainer manages Docker on the server host, which is equivalent to full control of the host. Grant it only to people you would give root.

An account without access that opens a tool's address sees a short No access page with a link back to the portal. A disabled account opens nothing.

The admin console

Admins who are signed in to the portal open the admin console from the Axiom Admin tile, or at https://axiom.example.com/admin, and are signed in automatically. The console's own sign-in form still works for admins who go straight to it.

Uptime Kuma

Uptime Kuma can't delegate its login, so the gateway's check becomes the only sign-in:

  1. Open Uptime Kuma from the portal and sign in with its own admin account one last time.
  2. Go to Settings → Security and choose Disable Auth.

From then on anyone the gateway lets through (accounts with Uptime Kuma ticked) opens it directly. Kuma publishes no port of its own and shares its Docker network with the gateway alone, so the gateway is the only way in.

Know what that choice rests on:

  • Any container added to Kuma's Docker network becomes a full, unauthenticated Kuma administrator. The standard layout keeps exactly Kuma and the gateway on that network; never attach anything else to it.
  • Kuma stores the credentials for its notifications (the SMTP password, webhook addresses and tokens). Anyone who controls the gateway can reach Kuma as an administrator and read them, so give Kuma a send-only mail account and webhooks that can do nothing but post alerts.
  • The stricter alternative is to keep Kuma's own login enabled. Deployments that want a second layer skip the Disable Auth step (or re-enable authentication under Settings → Security), set a strong Kuma-local password and keep it in the password manager. The gateway's access check stays in front either way; people then sign in twice, once at the portal and once in Kuma.

Portainer

Portainer Community Edition supports a custom OAuth provider, and the Axiom server is one.

Requirements

  • The gateway serves a DNS name with a publicly trusted certificate (Let's Encrypt). Portainer checks the certificate when it redeems sign-in codes at https://axiom.example.com/oauth/token. On an IP-only deployment, use Portainer's own login instead.
  • The gateway and Portainer share the axiom-portainer network (the standard compose files do this). The gateway answers there under the site's DNS name, so Portainer's requests stay on the host.

Register Portainer on the Axiom server

  1. On the admin page, open Integrations → Single sign-on and find the Portainer card.
  2. Enter the Redirect URL: Portainer's address as browsers use it, normally https://axiom.example.com:8444/.
  3. Select Generate client secret and copy the secret. It is shown once; the server keeps only a hash of it.
  4. Tick single sign-on on and select Save.

The card lists every value Portainer needs, each with a Copy button.

Configure Portainer

In Portainer, go to Settings → Authentication, choose OAuth, then Custom, and enter:

Portainer fieldValue
Client IDaxiom-portainer
Client secretthe secret you copied
Authorization URLhttps://axiom.example.com/oauth/authorize
Access token URLhttps://axiom.example.com/oauth/token
Resource URLhttps://axiom.example.com/oauth/userinfo
Redirect URLhttps://axiom.example.com:8444/
Logout URLhttps://axiom.example.com/portal
User identifierpreferred_username
Scopesprofile

Also turn on Use SSO, so accounts already signed in to the portal aren't asked to sign in again.

Portainer matches accounts by username. Either turn on Automatic user provisioning (new users arrive as standard users; promote admins inside Portainer), or create Portainer users whose names match the Axiom usernames before switching. Keep a note of Portainer's own admin password: if single sign-on is ever misconfigured, Portainer's internal login is how you get back in.

Note: Portainer's login page shows a Login with OAuth button. One click signs an account in without a password. Portainer itself requires that click, because it checks that the sign-in started in the same browser.

Changing or removing it

  • New client secret replaces the secret immediately; paste the new one into Portainer, or Portainer sign-ins fail until you do.
  • Unticking single sign-on on stops all Portainer sign-ins through Axiom at once.
  • Configuration changes and new secrets are audited as sso_config_changed and sso_secret_rotated. Every completed sign-in is audited as sso_signin with the tool's name, and a tool presenting a wrong secret as sso_client_refused.

Troubleshooting

SymptomCause and fix
"This application is not set up for Axiom single sign-on"Single sign-on is off for that tool, or the Client ID in the tool is wrong.
"...does not match its single sign-on settings"The Redirect URL in Portainer differs from the one on the admin page. Make them identical, including the trailing /.
Portainer says "Unable to login via OAuth"Portainer couldn't redeem the code: check the client secret, and that Portainer resolves the site's DNS name to the gateway on their shared axiom-portainer network with a valid certificate. The Axiom audit log shows sso_client_refused for a wrong secret.
"Invalid OAuth state, try again" in PortainerThe sign-in was started from a different browser or tab. Start again from Portainer's Login with OAuth button.
A tool keeps sending you to the portalThe browser has no portal session. Sign in at the portal; you are sent back to the tool afterwards.