Pomentumgraphos

Many teams, one service, single sign-on

Each team gets a graph of its own, people sign in with the company's provider, and the record says who asked.

Platform and security teams6 stepsTested

Step through it, animated →

The situation

For a team that runs graphos for others: several teams, each with its own data, and people who already have a company sign-in. With one shared service account instead, every audit line carries that account's name, and the application must keep its own record of who asked.

Step by step

  1. Problem 1. One account for everyone

    An internal app calls the graph with one service account for all its users. Every line of the record says the same name, and nothing shows who asked.

    The audit log names: the shared account · A leaked token works for: — · Signing keys at rest: —

  2. With graphos 2. A tenant per team

    An admin registers a tenant per team with POST /v1/tenants, or lets a user create tenants whose names match a pattern; whoever creates one owns it.

    On first start, the built-in admin must change its password, at least 12 characters, before it can do anything else.

  3. With graphos 3. Sign in with your provider

    graphos signs people in with OpenID Connect: Authorization Code with PKCE, as a public client. Grants can name the provider's groups, roles or people (oidc-group:red), and a first sign-in creates nothing by itself.

    Changes to someone's groups at the provider apply at their next sign-in.

  4. How it works 4. Tokens that last 15 minutes

    Access tokens last 900 seconds by default, settable from 60 seconds to 24 hours; the web UI and the Python client renew theirs by themselves. Five failed sign-ins lock an account for 15 minutes.

    A leaked token works for: minutes, not months

  5. With graphos 5. The person, on the record

    The audit log writes one JSON line per request: the method, the path, the tenant, who made it, the status and the time it took. Writes are logged by default; reads by a setting.

    An app in front of graphos can pass on the person's own token, so the log names the analyst, not the app.

    The audit log names: the person who asked

  6. How it works 6. Secrets sealed at rest

    With a master key file set, graphos seals its signing keys and each session's ID token with AES-256-GCM, a key per row. Without the key, it can't open what it sealed and refuses to start.

    Unset, they are stored in clear, with a warning.

    Signing keys at rest: sealed, with a master key

What graphos does here

Users, grants and sign-on
Tenants, levels, OpenID Connect sign-on, 15-minute tokens.
Tenant
A graph per team, reached only with a grant.
Audit log
One line per request, naming the person.
graphos-api
Signs people in and checks every call's grant.

What shows it: Tested

Tested: graphos's tests check that a person signs in and gets the access of their groups, that an analyst's token passed on is audited as the analyst, that resealing moves everything to the newest master key, and that the audit follows each operation's declared access; sign-on was tried by hand with Keycloak 26. The teams, groups and app drawn are examples.

In graphos's latest release and covered by graphos's automated tests; no result is measured for it here.

Try it

The single sign-on guide registers graphos at an OpenID Connect provider, with a Keycloak example.

Read the sign-on guide

Related use cases