Sign-in
Accounts live in Postgres, and Admin → Users manages them. The settings are under Admin → Settings → Sign-in.
The first admin
Section titled “The first admin”bootstrap: email: admin@example.com password: change-mebootstrap.* is read when the control plane starts, and only matters while no enabled admin exists: a new installation, or one whose only admin was disabled. The user with that email becomes an admin, and is created with that password if there is none. Once an admin exists it does nothing, so changing the admin’s email or password in Silo is never undone by a restart.
That admin’s first sign-in opens Admin, where a new installation is set up. On SiloOS the generated first password is shown on the machine’s console until it stops signing in.
Everyone else
Section titled “Everyone else”- Invite links. An admin makes one in Admin → Users, optionally as an admin, and passes it on; the person opens it and picks their own password. A link works once and lasts 7 days. Silo sends no mail. A password is at least 8 characters.
- Workspace invites. A Workspace’s admins invite people to their Workspace. With
spaces.invite_signupon, such a link also makes an account for someone who has none; off (the default), it only joins someone already signed in. - Email is the sign-in name, and a person can change their own on their Account page. Nothing confirms the new address, which is why single sign-on never matches an account by an address its user typed in themselves.
- A forgotten password is a reset link from the user’s page in Admin → Users (once, 24 hours), or a password the admin sets there. Either one signs the user out everywhere.
- Disable blocks a user’s sign-in and stops the Bots only they manage (runs, automations, channels, tunnels and machines), deleting nothing. Delete takes them off every Workspace and Bot, and deletes the Workspaces they were alone in, with those Bots and skills. An admin cannot disable, delete or demote themselves, so one admin always remains.
Sessions and two-factor
Section titled “Sessions and two-factor”- Two-factor is each person’s choice on their Account page: an authenticator app plus ten single-use recovery codes. An admin can turn it off for someone who lost both. It applies to password sign-in; single sign-on is the provider’s to protect.
- Sessions last 30 days. The Account page lists them and signs any of them out; a new password signs out all the others. Only a hash of each cookie is kept. The cookie is
Securewhenpublic_urlishttps://. - Guessing is limited. Wrong passwords, codes and invite links count per account and address: five tries, then a wait that doubles from 30 seconds to 15 minutes. An address is also held after 20 failures in 15 minutes, and an account after 50 in an hour. The counts are in memory and clear on restart.
Behind a reverse proxy
Section titled “Behind a reverse proxy”The limits and the session list need each visitor’s address. By default it is the address of the connection, and X-Forwarded-For is ignored, because anyone can send that header. Behind a proxy every visitor then looks like the proxy and shares one limit, so a few wrong passwords from anyone make everyone wait. Name the proxy and its header is believed:
auth: trusted_proxies: 127.0.0.1, 10.0.0.0/8 # the proxy as the control plane sees itThe visitor is then the right-most X-Forwarded-For entry that is not itself a trusted proxy, so nobody can forge it by sending their own header. The proxy must append to or set X-Forwarded-For.
Single sign-on
Section titled “Single sign-on”One OpenID Connect provider (Authentik, Keycloak, Dex, Google, Entra, …) can sign people in beside or instead of passwords. Register a client at the provider with the redirect address <public_url>/auth/oidc/callback (the Sign-in page shows it), then:
oidc: issuer: https://id.example.com/application/o/silo/ client_id: silo client_secret: "…" # label: Company login # the button's text # auto_create: true # make accounts on first sign-in # allowed_domains: example.com # ...but only for these email domains # admin_group: silo-admins # members are admins (needs a groups claim)Check on the Sign-in page asks the provider for its discovery document with the saved settings. A trailing slash on the issuer is tolerated either way.
Who a sign-in becomes:
- The user already linked to that identity.
- Otherwise the user with that email, only if the provider says it is verified (
email_verified: true), that user is not linked to another identity, and the address was set by an admin or an invite, not by the user themselves. They are linked from then on, and their password keeps working. - Otherwise, with
auto_createon and the domain allowed, a new user with no password. They can set one on their Account page. - Otherwise nobody: the sign-in page says to ask an admin for an invite.
A provider that sends no email_verified (some Entra setups) can therefore only sign in people already linked. With admin_group set, the provider decides who is an admin at every sign-in, except that it never demotes the last one. Without it, roles are what Admin → Users says.
auth.password: false hides the password form and refuses password sign-in. It counts only while single sign-on is configured, so removing the OIDC settings brings passwords back.
Tunnels under your own domain
Section titled “Tunnels under your own domain”auth.host_cookie: true is for a deployment whose tunnels, or anything else serving content you did not write, live under the same registrable domain as Silo: silo.example.com with *.tunnels.example.com. Any page under example.com can set a cookie for example.com, which the browser then sends to Silo too, so a tunnelled app could plant a session of its choosing and sign a visitor into another account.
With the setting on, the session cookie is __Host-silo_session, which only the exact host can set, and the plain name is never read. Browsers take such a cookie only over HTTPS, so it counts only while public_url starts with https://. Turning it on or off signs everyone out once. Tunnels on a separate registrable domain need none of this.
The settings
Section titled “The settings”| Key | Default | What it does |
|---|---|---|
bootstrap.email |
none | The first admin. Restart required. |
bootstrap.password |
none | Their password, when the account has to be made. Restart required. |
auth.password |
true |
Password sign-in. false leaves only single sign-on, while it is configured. |
auth.trusted_proxies |
none | Comma-separated IPs and CIDRs of the proxies in front, whose X-Forwarded-For is believed. |
auth.host_cookie |
false |
__Host- cookie names, over https only. |
spaces.invite_signup |
false |
Let a Workspace’s invite link make an account. |
oidc.issuer |
none | The provider’s issuer address. Single sign-on is on when this and client_id are set. |
oidc.client_id |
none | The client registered at the provider. |
oidc.client_secret |
none | Its secret. |
oidc.scopes |
openid email profile |
Space-separated. openid is always asked for. |
oidc.label |
Single sign-on |
The button’s text. |
oidc.auto_create |
false |
Make an account at someone’s first sign-in. |
oidc.allowed_domains |
none | Comma-separated email domains auto_create is limited to. |
oidc.groups_claim |
groups |
The ID token claim that lists a person’s groups. |
oidc.admin_group |
none | Members of this group are admins, checked at every sign-in. |