Start here: Standalone installation. Local accounts, groups, MFA and the identity provider run without other Ky servers. Configure an SMTP sender separately for activation and password-reset email; KyAuth is optional for push MFA and app sign-on.
KyIdentity is a self-hosted, single-organization identity provider and user directory for the Busnes.app Ky products. Manage people, groups, application access and MFA in one place; connected products use OpenID Connect for sign-in and configured connectors for provisioning and offboarding.
Built in Go with a focus on simplicity, minimal external dependencies, and native platform standards, KyIdentity serves as the authoritative source of truth for accounts and OpenID Connect authentication. Downstream synchronization is configured per product; it does not replicate every product’s database.
Proxy trust upgrades: broad ranges with multi-hop headers now refuse startup. Follow Proxy trust configuration before upgrading.
- Authoritative User Directory & Real-Time Sync: Create, manage, and deactivate accounts from a unified portal. Changes automatically propagate to paired KySecurity downstream products via HMAC-SHA256 signed sync webhooks. Administrators can export bounded signed KyPost recovery evidence; this supplies current authority without releasing a restore hold.
- OpenID Connect & OAuth 2.0 Provider: RFC-compliant authorization code flow with PKCE (
S256), dynamic JWKS key discovery (/.well-known/jwks.json), and RS256 token signing. - Multi-Factor Authentication (MFA):
- TOTP Authenticator Apps: Standard RFC 6238 time-based one-time passwords with encrypted secrets at rest (AES-256-GCM).
- Push Authentication with Number Matching: The sign-in screen shows a two-digit number; the user types it into KyAuth on a paired device to approve. Delivered through the FCM/APNs relay, directly over UnifiedPush, or through the UBports push service to Linux (Ubuntu Touch) devices; UnifiedPush distributors and UBports see when a sign-in happens but not its content (see SECURITY.md).
- Passkeys (WebAuthn): ES256 platform and roaming authenticators as a second factor, verified with go-webauthn. Works with compatible platform passkey managers and roaming hardware keys; current KyAuth apps are authenticators rather than passkey managers.
- Emergency Recovery Codes: Single-use recovery codes stored as HMAC-SHA256 under a key derived from the encryption key, bound to the user. Codes issued by older versions (bare SHA-256) still work until regenerated;
GET /api/auth/mereportsrecoveryCodesNeedRegenerationwhile any remain.
- 90-Second Ephemeral Pairing: Frictionless UI-based pairing with QR codes and short PINs for native mobile devices and downstream server applications.
- Application Launcher: Search and arrange the applications you can access, with saved groups, ordering and custom icons. The embedded React frontend follows system light/dark appearance with Busnes themes; older named presets remain available.
- Suite keyring uses trusted browsers, compatible passkeys and a printable Emergency Kit to unlock the user’s suite keys locally. KyIdentity holds the encrypted envelopes. Keyring contract
Refer to SECURITY.md for vulnerability disclosure procedures and CONTRIBUTING.md for development guidelines.
RSA token-signing keys must be at least 2048 bits. Existing smaller keys stop startup without being overwritten; read the signing-key upgrade guidance before upgrading such an installation.
-
Active Directory — sync users and groups into one AD OU and set their passwords through the DC agent, so Windows PCs sign in with KyIdentity accounts.
-
HR provisioning — import source UIDs, reserve KyPost email before SSO account creation, and write the confirmed address back to HR.
-
Architecture — Architecture & Standard Library Philosophy.
-
Running — Quickstart with Docker Compose, shared keys for replicas, Health & Status Verification, Command Line Utilities.
-
Accounts and access — Onboarding and passwords, Directory groups, Delegated administration, Expiring access and account end dates, and related procedures.
-
Applications — App connections, Proxy apps, App roles and token claims. Forward-auth protects apps behind the edge. Workstation login signs people in to Linux desktops through Himmelblau.
-
Audit and alerts — Audit search and export, Alerts.
-
Upgrades and recovery — Upgrades and restores.
-
Integrations — Integration Requirements.
-
Provisioning — Outbound provisioning, Inbound SCIM.
-
Verifying releases — Check a release image's signature and source commit, and rebuild its binary to the same bytes.
-
Key strength and Go TLS profile — Key floors, safe migration, Compose configuration and independent Worker/edge limits.
-
Assurance case — Threat model, trust boundaries, and why the security requirements are met.
Read the online manual or browse its Markdown sources.
Build and check it with mdbook build docs and python3 docs/check-links.py,
then open docs/book/index.html. The documentation workflow also provides a
downloadable documentation-book artifact.