Skip to content

Security overview

How RealmSSO separates customers, what is encrypted, who can do what and what is recorded. Each section links to the page that holds the detail.

RealmSSO's sign-in service sits between your application and each customer's identity provider. RealmSSO runs it for you.

RealmSSO gives each account its own realm, a separate sign-in space. Between realms, tokens and sessions do not cross.

Isolation between customers

RealmSSO creates a realm for each account, in the same request that creates the account. A realm has its own users, clients, identity-provider links and signing keys.

Between realms, tokens, sessions and identity-provider links do not cross. The sign-in service does not accept one account's token for another account. We ran the attacks on a test deployment. Accounts and isolation lists them.

The token's issuer identifies the account. Your application must check the issuer and the audience of each token.

Inside a realm, the server checks that an account owns an object before it reads or changes it.

What is encrypted and what is hashed

These database fields are encrypted, with AES-256-GCM: a connection's OIDC client secret, the identity provider's SAML signing certificate, and the private key behind a customer-issued SAML certificate. The sign-in service holds its own working copy of each of these three.

RealmSSO stores only a SHA-256 hash of these credentials. They are API keys, SCIM tokens, dashboard sign-in links, refresh tokens and Admin Portal invite tokens.

RealmSSO's database holds no secret for your application's sign-in client, no product client secret and no agent client secret. The sign-in service holds them, and RealmSSO keeps no copy.

The encryption keys sit in a key ring that supports rotation. See Encryption and secrets for each stored credential.

Who can do what

An account has three roles. From lowest to highest, they are viewer, member and account admin. RealmSSO reads the role from the database on each request.

Some writes need an account admin. Among them are deleting the account or a connection, rotating the account's client secret and changing a connection's discovery URL. Setting the connection-error policy, managing API keys and inviting an IT admin need one too. A member can do the other writes.

An API key belongs to one account. RealmSSO checks its scopes on each route that accepts a key. A route that needs an account admin refuses every key. By default a key has the scope * and no expiry.

Your customer's IT admin needs no account. An invite link opens one session on one account. The link works once, and the session ends 30 minutes after RealmSSO makes the link. Send the link by a channel you trust.

A platform operator is RealmSSO staff, and can read across accounts. No API key can hold the role.

Access control has the full list.

What is recorded

Each account has an audit log. A row records who acted, the action, the resource, the IP address, a severity and a time. The log covers changes made through the RealmSSO API.

Every member of the account, from viewer up, can read the log. An admin can export it as CSV or JSON lines. RealmSSO keeps the rows while the account exists and deletes them with the account.

User sign-ins, SCIM syncs and Admin Portal sign-ins are recorded as events. Events carry an email address and an IP address. RealmSSO keeps events 90 days by default, then purges them. See Audit log.

API hardening

Every API response carries standard security headers and a one-year HSTS header.

The API rate-limits each client address.

Sessions

A dashboard session is a 24-hour token. The server sets it in an httpOnly cookie. The sign-in response also returns it.

A 30-day refresh token comes with the session. Each use of the refresh token gives a new one. If someone presents a used refresh token again, RealmSSO revokes all refresh tokens of that user.

Dashboard sign-in

Dashboard users sign in with an email link. There is no password. The link works once and lasts 15 minutes.

Where to go next

Accounts and isolation — what a realm separates, with the attacks we ran.

Architecture — what is on the login path and what each public hostname serves.

Encryption and secrets — each stored credential and how it is kept.

Audit log — what is recorded, who can read it, and how long it lasts.

Access control — roles, API keys and scopes.

How we run RealmSSO — how RealmSSO is run for you.