Passkeys, tokens and sessions
Passkeys for people, scoped tokens for programs, and sessions that end.
In the adminPasskeys

Everybody manages their own passkeys under Administration › Passkeys. There is no password: no password storage, no reset flow and nothing to stuff.
Every passkey asks for the PIN, fingerprint or face that unlocks it, when it is added and at every sign-in, so one passkey is two factors. Touch ID, Windows Hello and a phone's screen lock already do this; a security key that has no PIN needs one set before it works here.
| To | Run |
|---|---|
| Issue a token, a week by default | quilzo token issue nightly --principal deploy --role publisher |
| Let a CI job work with no stored token | quilzo trust add NAME --github OWNER/REPO --as deploy --role publisher (see program credentials) |
| Bind a token to a program's key | quilzo token issue ... --key program.key.pub |
| Short-lived and read-only, for an integration | quilzo token issue ... --api |
| Trade a stored token for a short session | quilzo token exchange |
| List, revoke, find stale ones | quilzo token list / quilzo token revoke ID / quilzo token stale |
A token can carry less than the person holding it, never more. Session limits are organisation policy (see NIST parameters).
How long a sign-in lasts
- A sign-in to the admin lasts
session.max: eight hours by default, twelve at most. - With nobody using the page for
session.idle, it ends: an hour by default, between five minutes and an hour, and never switched off. Anybody who can grant access is signed out after fifteen minutes at most. - Typing, clicking and scrolling count as use. The page warns a minute before the end, and afterwards offers to sign in again with your passkey without leaving it, so nothing you were writing is lost. Only your own passkey carries on with your page.
- A site member signs in again after thirty days, or after two weeks unused.
/signoutreached from a link you did not follow from here, an image or a frame asks Sign out? instead of signing you out, so a page elsewhere cannot end your session. The menu's Sign out still signs out at once.- A break-glass recovery at the store's machine (
quilzo auth recover) is told to the security contact, as well as written to the audit log.
Two factors on every request
Every request a person makes to the admin carries two factors (NIST SP 800-63B-4, AAL2). A passkey is two on its own, and a sign-in through single sign-on counts as two when the identity provider says it used two (see when a sign-in counts as two factors); otherwise it waits for your passkey. A token is one: anybody holding a copy has it.
- Signing in by pasting a token gives a session that reaches nothing but Confirm it's you. Confirming with your passkey replaces it with a session that came through both.
- A token sent in an
Authorizationheader is a program's, and the admin's screens refuse it. Programs use the command line on the store's machine, the API or the agent interface. - A passkey is added from a session already signed in with two factors, so a copied token cannot add its holder's own passkey.
An installation is given fourteen days from the first time this version starts. Until then a token alone still reaches the admin, every page says when that ends, and the security posture names everybody with access who has no passkey and no single sign-on that can say it used two factors (mfa.no-second-factor). In those days a token's session may add its first passkey.
A link that adds somebody's passkey
Somebody without a passkey is given a link that adds one: quilzo auth enrol dana on the command line, or Give a passkey enrolment link beside them under Administration › People.
quilzo auth enrol dana
http://localhost:8080/enrol/qzenrol_…
opened once, by dana, before 09:00 UTC on 22 October: it adds their passkey and does nothing else.
- A link names one person, works once, and ends within a day (
--forsets less). A newer link for the same person replaces the older one. - It adds a passkey for that person and reaches nothing else: no session is made, and they sign in with the passkey they have just added.
- Only its hash is kept. Giving it, using it and ending it are recorded, with who gave it.
- Guessing at links is throttled, and none works while the admin is locked down.
quilzo auth enrol dana --revokeends a link nobody has used.- A link for somebody who administers anything waits for a second administrator, because whoever opens it signs in as them from then on. Once approved, it is received once, within a day, by whoever asked for it: Receive the link under Administration › People, or
quilzo pending redeem ID. quilzo init --admin NAMEin an empty directory that already exists, such as a volume mounted for the store, makes a new store with two factors from its first day, rather than the fourteen days an upgraded installation is given.
A passkey belongs to the address it was made on, and a browser refuses an IP address as one, so open the admin as http://localhost:8080 rather than 127.0.0.1, or set admin.base_url and links carry it.
Too many failed sign-ins
Failed passkey sign-ins to an account lock out the places they come from, not the person. The places you sign in from (the networks you have signed in from before) keep working, so nobody can lock you out by failing in your name.
- Ten failures from places the account is not used from lock those places out of it for thirty minutes, and each lockout after that doubles, up to a day.
- A hundred failures in a row, from anywhere, turn passkey sign-in to the account off until you sign in with a single sign-on that says it used two factors, or another administrator unlocks it.
- Each lockout is recorded and raises the
account-lockedsign-in signal. At your next sign-in you are told how many failures came before it. - A passkey whose signature counter went back exists in two places. Its sign-in is refused, recorded as
passkey.counter-refused, and raises thepasskey-clonedsign-in signal, rated high, which tells the security contact to have the key removed and registered again. The key is not removed by itself. A member's passkey is refused and recorded the same way (see Members). - Every way in is slowed per address as well: after five failures in an hour each one doubles the delay, up to fifteen minutes, and past a hundred in the hour every failure is refused until the hour is up.
- Only failures are slowed. From a throttled address a failure is answered 429 and not counted, and a valid token, passkey or enrolment link still gets in: at
/mcpand/a2a, token exchange, the passkey ceremony, the sign-in box, enrolment links and the studio's sign-in, as at the API and the admin's screens. So somebody behind the same NAT or proxy as a guesser is not locked out with them. - Throttling cannot be switched off. Its settings (
auth.throttle.after,.ceiling,.base,.maxandauth.lockout.alert) are held between bounds: at most ten free failures, a ceiling of 10 to 100, delays of a second to an hour, and an alert by twenty failures.
| To | Do |
|---|---|
| See who is locked out | Protection › Sign-ins, under Locked out |
| Let somebody sign in again from everywhere | Unlock beside them there |
| Get back the only administrator, at the store's machine | quilzo auth unlock dana, with the short-lived token quilzo auth recover issues when no other is left |
Nobody unlocks themselves on the Sign-ins screen, and somebody who administers the whole site is unlocked only by another administrator of the whole site.