Security at every layer
Idenplane layers its defences, from Argon2id password hashing to AES-256-GCM encryption of stored secrets. The design is written down in a published threat model and checked in an OWASP ASVS 5.0 self-assessment, gaps included.
Authentication Protocols
OAuth 2.0 + PKCE
RFC 7636 Proof Key for Code Exchange on all public clients
OpenID Connect 1.0
ID tokens, UserInfo, Discovery, Backchannel Logout
SAML 2.0
Identity Provider with signed assertions for your registered Service Providers
Device Authorization
RFC 8628 for input-constrained devices (smart TVs, CLI tools)
Credential Security
Argon2id Hashing
OWASP-recommended memory-hard password hashing; imported legacy hashes are rehashed at first sign-in
Password Policies
Configurable complexity, history, expiration, and minimum length
WebAuthn / FIDO2
Passwordless with hardware keys and biometrics (Face ID, fingerprint)
TOTP + Recovery Codes
Time-based OTP with Google Authenticator, plus backup recovery codes
SMS One-Time Codes
Texted codes bound to one sign-in, single-use, 5 guesses max, stored only as keyed hashes; phone numbers encrypted
Token Security
RS256 JWT Signing
One RSA 2048 key pair per realm, private key encrypted at rest, public key on the realm JWKS endpoint
Certificate-Bound Tokens
RFC 8705 mTLS client authentication and access tokens bound to the client certificate (since 0.8.0, off by default)
Short-Lived Tokens
5-minute access tokens; refresh tokens rotate, and reusing a rotated one revokes the session
Token Revocation
Revoke individual tokens or all sessions of a user; a password reset signs the user out everywhere
Infrastructure Protection
Security Headers
CSP with nonces on hosted pages, frame-ancestors none, HSTS, Permissions-Policy, CORP, and no-store on dynamic responses
Rate Limiting
Global + per-realm + per-user + per-IP configurable throttling
CORS Validation
Dynamic CORS from database — only allowed origins can make requests
TLS / HTTPS
TLS terminates at your proxy; Idenplane sends HSTS and Secure cookies. The optional mTLS listener terminates TLS itself
Access Control
Admin Roles
Since 0.9.0: super-admin, realm-admin limited to assigned realms, and read-only view-only, checked on every admin route
Admin MFA
Since 0.11.0: authenticator app or passkeys at admin console sign-in, a server-wide requirement (on for new installs), and a fresh second factor for sensitive actions
Exact Redirect URIs
Since 0.11.0: redirect URIs match character for character (RFC 9700); loopback ports for native apps per RFC 8252
Step-Up Authentication
Require stronger auth (ACR levels) for sensitive operations
Brute Force Protection
On for realms created on 0.10.0 or later; a locked account is refused before the password is checked
Session Management
Max sessions per user, forced logout, and session expiry; SCIM deactivation ends every session
Compliance & Audit
Login Event Logging
Sign-in attempts with IP, user agent and outcome; on by default for realms created on 0.10.0 or later
Admin Action Audit Trail
Who changed what and when, with secrets redacted from the recorded request
Impersonation Tracking
Admin impersonation logged with both admin and target user details
Secrets Encrypted at Rest
AES-256-GCM for every stored secret since 0.8.0, with key rotation on start
Built on open standards
Idenplane follows established security standards and specifications — no proprietary lock-in.
OWASP ASVS 5.0
Level 2 self-assessment: 117 pass, 88 partial, 19 fail, 29 N/A
RFC 8705
mTLS client authentication and certificate-bound access tokens
RFC 6749/6750
Authorization-code and bearer-token flows
RFC 7636
PKCE mandatory for all public client flows
OpenID Connect Core
Discovery, authorization-code flow, back-channel logout; conformance-tested weekly, not certified
OASIS SAML 2.0
Identity provider: signed assertions and IdP metadata
The numbers we ship
The out-of-the-box defaults for new realms. Most are configurable per realm or environment; the secure defaults page explains each one.
Password hashing — Argon2id
- Algorithm
- argon2id
- Memory cost
- 64 MiB (65536 KiB)
- Time cost (iterations)
- 3
- Parallelism
- 4 lanes
- Salt
- 16 random bytes
Above OWASP minimum (19 MiB / 2 iterations) on the memory axis. Tune per host.
JWT signing & rotation
- Algorithm
- RS256 (RSA 2048)
- Access token TTL
- 5 min
- Refresh token TTL
- 30 min, rotating
- Offline token TTL
- 30 days
- Refresh token reuse
- revokes the session
Public keys are served at /realms/{realm}/protocol/openid-connect/certs. Signing keys are not rotated automatically.
Rate limiting & brute-force protection
- Global rate limit
- 100 req / 60 s
- Brute-force protection
- on for new realms (0.10.0+)
- Max login failures
- 10 in 15 min
- Lockout duration
- 5 min, progressive
- Permanent lockout
- off (opt-in)
The global limit (THROTTLE_TTL / THROTTLE_LIMIT) is a coarse per-IP flood guard in each process. Per-realm rate limits are separate and off by default. Brute-force lockout is a third, per-realm mechanism: on by default for realms created on 0.10.0 or later, and checked before the password, so a locked account cannot be used to test passwords. Realms created earlier keep their setting.
Sessions & cookies
- Session lifetime
- 30 min, sliding
- SSO idle timeout
- none (known gap)
- Cookie flags
- Secure; HttpOnly; SameSite
- CSRF
- double-submit token
- HSTS
- 1 year; includeSubDomains; preload
Session cookies use SameSite=Lax or Strict. The session lifetime is refreshTokenLifespan; absolute expiry is enforced by an hourly clean-up job. Browsers honour HSTS only over HTTPS.
Check our work
What the project publishes so you don't have to take its word for it. Everything here is maintained by the project and has not been reviewed by a third party.
Signed releases
- Image signature
- cosign, keyless
- Transparency log
- Rekor
- SBOM
- SPDX, signed attestation
- Build provenance
- SLSA (BuildKit)
- Release assets
- signed SHA256SUMS
Since 0.10.0, for every image of islamawad/idenplane. Images published earlier are not signed. How to verify a release.
Threat model and ASVS 5.0 self-assessment
- Pass
- 117
- Partial
- 88
- Fail
- 19
- Not applicable
- 29
- Requirements
- 253 (Level 1 and 2)
A self-assessment against OWASP ASVS 5.0 Level 2, with evidence from the code and the remaining gaps in priority order. It is not a certification or an audit. Read the assessment and the threat model.
Weekly automated checks
- DAST
- OWASP ZAP baseline + API
- OpenID conformance
- basic plan: 21 passed, 0 failed
- Restore drill
- backup and restore
- Upgrade test
- from the previous release
- Supply chain
- OpenSSF Scorecard
Scheduled GitHub Actions workflows. The conformance suite is the OpenID Foundation's; Idenplane is tested against it, not certified. ZAP also runs on pull requests that change the server.
Advisories and fixes
- Advisories
- one per fixed vulnerability
- Supported
- latest release only
- Backports
- none
- Bug bounty
- none
Every fix ships in a new release with a Security section in the changelog and a GitHub Security Advisory. Reporters are credited on the acknowledgments page.
What we defend against
A summary of the published threat model: its scope, what it assumes, and the risks that remain.
In scope
- The server: admin API, OAuth/OIDC, SAML IdP, SCIM, account and hosted login endpoints.
- The admin console, the official Docker image and the Helm chart.
- The integrations Idenplane initiates: email and SMS providers, LDAP, external IdPs, webhooks, audit streams, back-channel logout.
- STRIDE threats at 11 trust boundaries, each with the mitigation in the code and the residual risk.
Out of scope
- Relying-party apps, external IdPs, LDAP directories, email and SMS providers, browsers and user devices.
- Physical and social-engineering attacks.
- Denial of service by volume: that is your proxy's or platform's job.
- Undisclosed vulnerabilities in third-party dependencies.
It assumes
- TLS terminates at a reverse proxy, and
TRUSTED_PROXIESnames only that proxy. - PostgreSQL and Redis are on a private network.
- The host is trusted: whoever controls it holds the encryption key and the admin API key.
- Plugins are trusted code; they run with the server's privileges.
Highest residual risks
- Installs upgraded to 0.11.0 that have not turned on the admin MFA requirement; the upgrade health check names admins without a second factor.
- Clients still on the legacy wildcard redirect URI opt-in, set by the 0.11.0 upgrade so they keep working; the upgrade health check lists them.
- Realms created before 0.10.0 may still have brute-force protection or events off.
- The SSRF guard does not cover every outbound call; adaptive auth's geo-IP lookup uses plain HTTP.
- No SSO idle timeout, and no idle timeout for offline sessions.
Responsible disclosure
Report it privately first. You are credited when the advisory is published.
- Open a private report at github.com/idenplane/idenplane/security/advisories/new. Without a GitHub account, email [email protected].
- Include a description, steps to reproduce or a proof of concept, and the affected versions.
- Idenplane has one maintainer, so these are best-effort targets: acknowledgement within 3 business days, and a fixed release within 90 days, much sooner for critical issues.
- The GitHub Security Advisory is published when the fixed release is out, with the affected and fixed versions. You are credited unless you prefer not to be.
- Do not test against systems you don't own or have written authorization for.
Ready to secure your stack?
Initialize unique local credentials, then review the production deployment requirements.