FerrisKey is an open-source IAM solution designed for modern cloud-native environments, high-performance and written in Rust.
FerrisKey is an open-source IAM solution designed for modern cloud-native environments, high-performance and written in Rust.
FerrisKey — Open‑Source, High‑Performance Identity & Access Management
Cloud‑native • Extensible • Built in Rust
FerrisKey is a modern Identity & Access Management (IAM) platform built with Rust and a hexagonal architecture. It aims to be a serious open‑source alternative to heavyweight IAMs fast, modular, and cloud‑native by design.
| Capability | Details |
|---|---|
| OIDC / OAuth2 | Standards‑compliant flows for modern apps & services. |
| Multi‑Tenant Realms | Logical isolation of users, roles, clients, secrets. |
| Clients & Service Accounts | Fine‑grained role mapping; bitwise role system. |
| MFA (TOTP) | Pluggable strategies with required actions. |
| Observability | Prometheus metrics, Grafana dashboards. |
| Kubernetes‑ready | Helm chart with sane defaults; OCI distribution. |
License: Apache‑2.0. No paywalls. Community‑first.
For local development using the repo justfile, see DEVELOPMENT.md.
docker compose --profile registry up -dThen visit http://localhost:5556 to access the console. The default credentials are admin and admin.
docker compose --profile build up -dImportant migration note (Postgres 18+ volume path): local compose mounts
pgdataat/var/lib/postgresql(the Postgres 18+ recommended mount point). If you are migrating from an older local setup that used a different mount path, remove or migrate the old volume first. Quick reset (destructive):docker compose down -v.
Then visit http://localhost:5555 to access the console. The default credentials are admin and admin.
Requires a reachable Postgres (or include it via your platform’s recommended operator).
See chart documentation.
git clone https://github.com/ferriskey/ferriskeycd api
cp env.example .env
# feel free to change the env variables in .env to your liking.
docker compose up -d
cd ../core
# to install sqlx you might need to run `cargo install sqlx-cli --no-default-features --features postgres`
DATABASE_URL=postgres://ferriskey:ferriskey@localhost:5432/ferriskey sqlx migrate run# to upgrade rustc version to 1.89.0, you can run `rustup update`
cd ../api
cargo runcd ../front
cp .env.example .env
pnpm install
pnpm run devThen visit http://localhost:5555 to access the console. The default credentials are admin and admin.
Common environment variables (example):
PORT=3333
ENV=development
LOG_LEVEL=info
DATABASE_URL=postgres://ferriskey:ferriskey@localhost:5432/ferriskey
ADMIN_PASSWORD=admin
ADMIN_USERNAME=admin
[email protected]
ALLOWED_ORIGINS=http://localhost:5555ALLOWED_ORIGINS lists the origins accepted on every route. Beyond it, each client declares its own web origins at runtime, enforced per realm — see the web-origins endpoints under a client. Those per-client origins never replace ALLOWED_ORIGINS: /config, the health probes and the API docs carry no realm, so an admin console served from a different origin than the API must keep its origin in ALLOWED_ORIGINS.
By default, the API will listen on port 3333 and the frontend on port 5555.
FerrisKey uses SQLx for database migrations. To apply pending migrations:
cd core
DATABASE_URL=postgres://ferriskey:ferriskey@localhost:5432/ferriskey sqlx migrate runTo check migration status:
DATABASE_URL=postgres://ferriskey:ferriskey@localhost:5432/ferriskey sqlx migrate infoNote: If you have
DATABASE_URLset in your environment or.envfile, you can omit it from the command.
Trident — MFA & security scopes TOTP, WebAuthn, Magic Link; flexible required actions.
SeaWatch — Observability & audit logs Security event trails; queryable from the console; exportable.
Webhooks — Event‑driven extensibility Subscribe to user/client/realm lifecycle events without forking core.
FerrisKey follows a Hexagonal Architecture (Ports & Adapters) to keep business logic pure and infrastructure replaceable.
We welcome contributions of all kinds bugfixes, features, docs, testing.
Join discussions to help shape modules, APIs, and UX.
Please report vulnerabilities responsibly via Security Advisories. Avoid filing publicly until coordinated disclosure is agreed.
Apache‑2.0 — free to use, modify, and distribute.
oci://ghcr.io/ferriskey/charts/ferriskeyNo open issues yet, or sync has not completed.