Skip to content

Before you expose it

Work through this before anyone outside your own machine can reach the deployment.

Must be true

  • [ ] TLS everywhere, and IDEN_ENV=prod so the session cookie is Secure.
  • [ ] IDEN_ISSUER is the public HTTPS URL. It goes into every token and clients validate against it.
  • [ ] Signing keys are not in the image, are mounted read-only, and are backed up separately.
  • [ ] keys/totp.key exists and is backed up with them. It encrypts TOTP secrets at rest, and it is generated by the same scripts.gen_keys — but a deployment that copied only the .pem files finds out at the first enrolment. Lose it later and everyone with an authenticator is locked out, because they owe a factor nobody can verify.
  • [ ] The bootstrap administrator's password has been changed from the one the seed printed.
  • [ ] IDEN_FORWARDED_ALLOW_IPS names the proxy's network, and is not *. It decides whose claim about the caller's address is believed. Empty behind a proxy makes every per-address rate limit a deployment-wide one and writes the proxy into every audit row; * makes both forgeable by anyone. Verify it by signing in and reading the ip column of the audit log — it must be your own address.
  • [ ] A reverse proxy is rate-limiting by volume, and its limiter keys on the corrected address too. An uncorrected proxy limits itself as a single client, which is the whole internet in one bucket.
  • [ ] IDEN_ALLOWED_ADMIN_ORIGINS lists only origins you control. It permits credentialed cross-origin requests. On a single-origin deployment it should be empty — there is no cross-origin request to allow.
  • [ ] /docs, /redoc and /openapi.json do not answer. IDEN_ENV=prod withholds them; check rather than assume, because they are the complete shape of the admin API.
  • [ ] No service is published on a public interface. Bind to loopback or to nothing. Docker publishes ports through its own iptables chain, which a host firewall such as ufw does not cover — so a ports: entry can be reachable from the internet on a host you believe is closed. It also leaves a path to the provider that bypasses the proxy, and anything reaching it that way can forge X-Forwarded-For.
  • [ ] Database and Redis are not reachable from outside the deployment network.
  • [ ] The stores' default credentials have been replaced. IDEN_POSTGRES_PASSWORD, IDEN_REDIS_PASSWORD and IDEN_S3_SECRET_KEY each default to a value published in deploy/docker-compose.yml. Redis matters as much as PostgreSQL here and is easy to overlook: a session id is the cookie, so read access to Redis is read access to every signed-in account. The tunnel overlay will not start while one is empty, and the provider will not start in prod on a published one — but a value you generated is what protects you. Set them before the first up: PostgreSQL and the blob store keep whatever credential they were initialised with, so changing the value later does not re-key an existing volume.
  • [ ] The proxy does not strip or rewrite IDEN's response headers. The application sets Content-Security-Policy, X-Content-Type-Options, Referrer-Policy, and — when IDEN_ENV=prod — Strict-Transport-Security. A proxy that adds its own copy of any of these leaves two policies to disagree with each other.
  • [ ] Backups exist and have been restored at least once. An untested backup is a hope — see Backup and restore, which restores into a throwaway Compose project so the test cannot touch what you are running.

Should be true

  • [ ] Administrators hold admin:grants:write only if they need to assign permissions. It is the one scope that can raise somebody's authority, and it is separate from admin:users:write for that reason. An account that manages people — creating, renaming, deactivating, resetting passwords, clearing a lost authenticator — does not need it. Neither rule can be worked around by acting on somebody who already holds more: that is refused too. See Scopes.
  • [ ] Only full administrators can change applications. There is no clients-only permission; see Scopes. If a team needs its own application, it registers it through self-service.
  • [ ] skipConsent is set only on applications your organization owns.
  • [ ] Every client's redirectUris are exact — no unused entries left from testing.
  • [ ] Machine clients hold the narrowest permissions that let them work.
  • [ ] backchannelLogoutUri is registered for every application with its own session, so signing out means something.
  • [ ] Someone reads GET /admin/audit on a schedule. A log nobody reads is a log nobody reads.
  • [ ] scripts/cleanup.py is scheduled, so expired codes and tokens do not accumulate forever.
  • [ ] The dashboard client's redirectUris name this deployment's origin and nothing else. The seed registers <issuer>/console/callback, and adds the two localhost development callbacks only when IDEN_ENV=dev. It is a first-party client that skips consent and may request every admin scope, so anything left over from testing is worth removing.

With faces on

  • [ ] The engine is reachable only by the provider — on the provider's Docker network, or on a private address. See The biometric engine.
  • [ ] Each kiosk's camera is tuned in the light it stands in, and someone has enrolled at it end to end. See Tuning the kiosk camera.
  • [ ] Every kiosk in the dashboard is one you can point to. Revoke any that was lost or replaced, and take out of service any that stands unattended outside opening hours.

Known gaps

Honest rather than reassuring. Each is tracked on the roadmap.

Gap Consequence
An audit row is written just after the change If the database becomes unreachable in between, the change stands and the record is lost. Logged loudly, but lost.
Face liveness is not certified The anti-spoofing checks are not tested by an accredited lab, and no check on IDEN's side can prove a frame came from a real camera. Faces are a second factor for that reason. See what it does not stop.
The default face models are for research only Their licences forbid commercial use. Replace them in engine/models.toml before a deployment that is not research.
An engine on another machine is reached over plain HTTP Faces cross the network between the two unencrypted, and the engine's port answers whatever can reach it — refusing any caller without the engine token. Keep both machines on a network you trust and let only the provider's reach that port. See On another machine.
The face threshold ships uncalibrated Measure on your own cameras before relying on it — see Calibrate the threshold.
IDEN sends no email There is no mail transport, so there is no self-service password recovery: an administrator resets a forgotten password from the dashboard (Users → a person → Issue a new password), which shows the new one once and ends every session the person had. A lost bootstrap password is set with scripts.change_pass. Nobody is emailed when a face is enrolled on their account either — it appears on their Security page and in the kiosk's history, and the audit log records it.
RP-initiated logout accepts GET The specification requires it, and a GET carries the session cookie from any page. So a GET whose id_token_hint does not name the signed-in person is sent to the sign-in UI, which asks before ending anything; its answer is a POST, which a cross-site page cannot send with the cookie. An application that passes its hint signs out at once.

Not gaps, though they look like it

Access tokens survive revocation for up to ten minutes. They are self-contained by design — that is what lets your APIs validate them without calling IDEN. The short lifetime is the trade. For immediate revocation, use introspection on the endpoints where it earns the round trip.

Signing out on a laptop leaves a phone signed in. Revocation is per session, deliberately. To end everything, an administrator can revoke all sessions for a user; changing a password does it automatically.

You cannot remove the last administrator. Any change that would leave no active user holding admin:grants:write is refused with 409 — deactivating them, deleting them, stripping their roles, emptying the role or group that granted it. It is the only permission whose last holder is protected, because it is the only one that can restore all the others; without it the way back in is a hand-edited database.

A refresh token can be presented twice within 30 seconds. That is the grace window that stops honest double-refreshes signing people out. Detection is delayed by one rotation, never removed. Set IDEN_REFRESH_GRACE_PERIOD=0 to opt out.