Choose how people sign in
On-premises, people sign in to the control plane through an identity provider with OpenID Connect. The identity provider keeps the accounts and their groups; Fistron maps each group to a role under Organisation › Roles (Set up your organisation). Fistron never keeps a password, except the bootstrap admin’s, for the first sign-in.
Choose one:
| You have | Then |
|---|---|
| An identity provider with OpenID Connect and groups (Microsoft Entra ID, Okta, Keycloak, another) | Your own identity provider |
| Google Workspace | Google Workspace, through Keycloak |
| No identity provider | Keycloak installed with Fistron |
Your own identity provider
Fistron needs, from any identity provider with OpenID Connect:
- a client for Fistron with the authorization code flow and a client
secret, its redirect URI
https://<Fistron's address>/auth/callback; - the scopes
openid,profileandemail; - the person’s groups in a claim of the ID token,
groupsunless you name another withcontrolPlane.oidc.groupsClaimin your--valuesfile.
Then install with its issuer and client:
curl -fsSL https://get.fistron.io | sh -s -- on-premises --licence organisation.paseto \
--issuer https://idp.example.com/realms/acme --client-id fistron \
--client-secret-file client-secret.txt
The installer checks the issuer’s discovery document before it changes anything. Sign in as the bootstrap admin, then map your groups to Fistron’s roles in Organisation › Roles (admin-organisation.md).
Give the identity provider an address of its own, never a path of
Fistron’s address: /auth is Fistron’s own. With a certificate of your own
CA, see Your own CA.
A Keycloak you run
In the realm of your organisation, create a client fistron with
Client authentication on and the redirect URI above. Under its
Client scopes, in its dedicated scope, add the mapper Group
Membership with the token claim name groups and Full group path
off. The issuer is https://<Keycloak's address>/realms/<realm>.
So that admins add people under Organisation › People (Add a
person), give the control plane Keycloak’s admin API: a client
fistron-control-plane-admin with Client authentication and
Service accounts roles on and the standard flow off; under Service
accounts roles, the roles manage-users, view-users and query-groups
of realm-management. Every person of the realm is then the
organisation’s. In your --values:
controlPlane:
operator:
keycloak:
url: http://keycloak.keycloak.svc:8080 # inside the cluster
clientSecret: {secretName: fistron-keycloak-admin, key: client-secret}
The Keycloak that --with-keycloak installs has this client already.
One installed before 2026-11-19 gets it by hand: create the client as
above in its realm fistron, with the secret of the key
admin-client-secret of the Secret fistron-keycloak (the installer
adds the key when it runs again).
Microsoft Entra ID
In App registrations, register Fistron with a redirect URI of the
platform Web, and add a client secret under Certificates & secrets.
Under Token configuration, Add groups claim with the security
groups, for the ID token. The issuer is
https://login.microsoftonline.com/<tenant id>/v2.0. Entra ID names
cloud groups by their object id: map those ids under Roles.
Okta
Create an app integration of the type OIDC, Web Application, with the
sign-in redirect URI above. In its Sign On settings, set the groups
claim groups with a filter, for example Matches regex .*. The issuer
is your Okta domain, for example https://acme.okta.com.
Check the groups Fistron received
Sign in through the identity provider as an admin and open Organisation › Roles. Your sign-in’s groups lists the groups your sign-in named, as Fistron received them, and which hold a role; Map it fills the group in the form. Your sign-in named no group means the identity provider sent no groups claim: add it to Fistron’s client, then sign in again.
The command line
fistron licence login --control-plane <Fistron's address> needs nothing
in the identity provider: the person confirms a code on the control plane,
where they are signed in.
When people leave, or you change provider
- Disable the account or take it out of its groups: the person cannot sign in again, and a session already open ends at its lifetime (Organisation › Signing in). Revoke their command line under Organisation › Members’ command lines.
- Fistron keeps the role mappings by the groups’ names. Before you move to
another identity provider, give its groups the same names, or map the
new names first; then install again with the new
--issuer. Fistron knows a person by the identity provider’s subject: with another provider, each person is new to Fistron, and their own pages start empty.
Google Workspace, through Keycloak
Google’s OpenID Connect gives no groups, so no group of it can hold a role. For a few people, sign in with Google directly and give each a role of their own once they have signed in (admin-organisation.md). For many, run Keycloak between Google and Fistron: people sign in with their Google account, and Keycloak keeps their groups.
- Install Fistron with Keycloak, as in Keycloak installed with Fistron, or use a Keycloak you run.
- In Google Cloud, create an OAuth client of the type web application,
with the redirect URI
https://<Keycloak's address>/realms/fistron/broker/google/endpoint. - In Keycloak’s console, in the realm
fistron, add the identity provider Google with that client’s id and secret, and its Hosted domain, your Google Workspace domain, so that only your organisation’s accounts sign in. - Put each person in the group of their role (
fistron-engineers, for example) after their first sign-in.
Keycloak installed with Fistron
For an organisation without an identity provider, the installer installs
Keycloak with the control plane: Keycloak’s official image, without an
operator, at an address of its own. Its realm fistron is made at its
first start: the client of the control plane, a group for each of
Fistron’s roles and the first admin. An upgrade keeps its people and
groups.
Before you start
-
An address of its own for Keycloak, for example
https://id.example.com, never Fistron’s, with its DNS name and a TLS certificate. Give the certificate as a Secret with--keycloak-tls-secret, or terminate TLS before the cluster. -
Keycloak’s own role and database in your PostgreSQL, never Fistron’s. As a superuser:
CREATE ROLE keycloak LOGIN PASSWORD 'choose-a-password'; CREATE DATABASE keycloak OWNER keycloak;Choose a password without
%,@or/: the installer takes it from the URL as it is.
Install
export FISTRON_KEYCLOAK_DATABASE_URL='postgresql://keycloak:choose-a-password@db.example.com:5432/keycloak'
curl -fsSL https://get.fistron.io | sh -s -- on-premises --licence organisation.paseto \
--with-keycloak --keycloak-url https://id.example.com
Instead of the variable, --keycloak-database-url-file FILE reads the URL
from a file. In an answers file the keys are keycloak=yes,
keycloak_url and keycloak_database_url.
- The installer checks Keycloak’s database from the cluster with Fistron’s PostgreSQL: its own role, its own database, and the role may create in it.
- It generates Keycloak’s secrets once and keeps them on the next run: the control plane’s client secret, the first admin’s password and the password of Keycloak’s console.
- It installs the chart with Keycloak, and Fistron signs in at
https://id.example.com/realms/fistron. - It maps each group of the realm to Fistron’s role in your organisation:
fistron-adminsto admin, andfistron-managers,fistron-engineers,fistron-viewers,fistron-auditorsandfistron-managementlikewise. - It prints the first admin’s password once. Sign in to Fistron as
adminwith it; Keycloak asks you to choose a new one.
When Keycloak runs behind the ingress controller of the same cluster, the control plane reaches it there: see The identity provider in the same cluster.
Add people
Keycloak’s console is reached from the cluster only, never through its address:
kubectl -n fistron port-forward svc/fistron-keycloak 8080
Open http://localhost:8080/admin/ and sign in as keycloak-admin with
admin-password of the Secret fistron-keycloak. In the realm fistron,
add each person under Users, set a temporary password, and put them in
the group of their role. To sign in with your directory instead, add your
LDAP or Active Directory under User federation, and allow Keycloak to
reach it in your --values file:
keycloak:
networkPolicy:
egress:
- to: [{ipBlock: {cidr: 10.0.20.15/32}}]
ports: [{port: 636, protocol: TCP}]
An upgrade (fistron-install update on-premises) backs up Keycloak’s
database beside Fistron’s first, then upgrades Keycloak with the chart; it
keeps its realm and its people. fistron-install status says Keycloak’s
version. Running on-premises again keeps Keycloak without
--with-keycloak.
Troubleshooting
| What you see | Why | What to do |
|---|---|---|
--with-keycloak is the identity provider: give no --issuer with it |
Keycloak installed with Fistron is the issuer | Leave out --issuer, or leave out --with-keycloak |
Keycloak's address ... is Fistron's |
Keycloak needs an address of its own | Give it another name, for example id.example.com |
Keycloak's role ... may not create in its database |
The role does not own its database | CREATE DATABASE keycloak OWNER keycloak |
Keycloak's role is Fistron's database |
Keycloak was given Fistron’s database | Create a database of its own, as above |
| After signing in, you see none of the organisation’s pages | Your account is in no group of the realm, so it holds no role | Put it in a group in Keycloak’s console, then sign in again |