Keycloak vs Authelia for HIPAA and healthcare

This page covers only the HIPAA angle of Keycloak against Authelia: what the Security Rule asks of an identity layer, what each side documents, and what your organization must still configure, evidence and sign off. The general feature comparison is on its own page.

On this page

Keycloak vs Authelia for HIPAA: which fits which healthcare estate

Keycloak suits an estate where many applications, some of them clinical or patient-data systems, need one identity layer that speaks several protocols. Its documented protocols are OpenID Connect, OAuth 2.0 and SAML 2.0, so a legacy clinical application that only supports SAML can sign in beside newer OIDC apps. It can also read users from LDAP or Active Directory, so the source of identity can stay where your team already manages accounts.

  • SAML and OIDC together: Useful when a clinical or billing vendor supports only SAML 2.0 and an internal app uses OIDC.
  • Directory federation: Keycloak federates users from LDAP or Active Directory, so joiner and leaver handling can stay in the directory your auditors already review.
  • Identity brokering: It can broker logins to an external OIDC or SAML identity provider, which suits partner staff who authenticate at their own organization.
  • Production database: A relational database is required in production. PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL are supported, and that database becomes part of your HIPAA scope.
  • Kubernetes installation: The Keycloak Operator installation guide covers installs through Operator Lifecycle Manager or kubectl, which matters if your platform team already runs clusters.

Check: list each application that touches patient data with its protocol and directory source, and confirm Keycloak supports both before you choose this route.

What the HIPAA Security Rule asks of an identity layer

The Security Rule governs the organization's program as a whole. It is codified at 45 CFR Part 164 Subpart C, sections 164.302 to 164.318, and applies to covered entities and business associates for electronic protected health information. No identity platform makes a deployment compliant on its own, so the useful question for Keycloak or Authelia is which requirements the identity layer can support and which remain with your policies, staff and operations. The rule sets 18 standards across administrative (164.308), physical (164.310) and technical (164.312) safeguards, with 36 implementation specifications: 14 required and 22 addressable. Organizational and documentation standards sit in 164.314 and 164.316. An identity layer mainly touches the technical safeguards for access control, audit controls, person or entity authentication and transmission security, and it feeds the administrative safeguards for access management.

For an addressable specification, you must assess whether it is reasonable and appropriate for your environment. If it is not, document the reason and adopt an equivalent alternative measure where one is reasonable and appropriate (45 CFR 164.306(d)). Expect an assessor to ask for that decision record for each identity-relevant specification. Illustrative example: if your identity layer enforces session lifetimes in place of another control, the record should name the Keycloak realm setting or Authelia session configuration, the owner and the test that proves it works. Keycloak's Server Administration Guide documents user and admin event auditing, brute force protection with temporary and permanent lockout, and a per-realm Require SSL setting. Authelia's documentation lists TOTP, WebAuthn and Duo push second factors, separate session, storage and logging configuration, and HTTPS-only operation. Neither set of pages mentions HIPAA or a BAA, so your organization carries the obligations either way. Start the mapping from the Appendix A matrix.

Read the HHS FAQ on certifying compliance yourself before you decide what evidence to prepare, since the answer shapes what you show a customer or assessor. Then confirm with each vendor and in your own environment how long audit events are retained, whether they export to your log platform, and whether the MFA and session settings you rely on apply to every realm and client. Give each control a named owner and retest after every upgrade. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors and certification bodies issue any audit reports or certifications.

How Keycloak and Authelia each document the controls an assessor checks

This table sets out what each platform's public documentation says about the controls a HIPAA assessor typically asks to see, using the Security Rule's access, audit, transmission and vendor-terms areas as the frame. Read each cell as the starting point for your own evidence: where a page is silent, the cell says what to confirm. The main takeaway is that Keycloak's guide documents more of the audit and lockout controls by name, while Authelia's documented controls depend more on the operator's own configuration.

Requirement areaKeycloak as documentedAuthelia as documented
Business associate agreement and vendor termsThe Server Administration Guide does not mention HIPAA or a BAA. Ask any support provider whether it will sign one.Authelia's documentation does not mention HIPAA or a BAA. Ask any support provider what terms it offers.
Vendor attestationsThe guide does not describe third-party assessment reports. Ask the project or your distributor which reports cover the version you deploy.Its documentation does not describe independent assessment reports. Ask the maintainers whether any exist and what they cover.
Access control and multi-factor authenticationDocuments TOTP/HOTP, passkeys, recovery codes, WebAuthn and OTP policy settings, plus fine-grained authorization services.Second factors: TOTP, WebAuthn security keys and Duo mobile push. Confirm how access rules are written and tested in the configuration reference.
Brute force protection and lockoutDocuments brute force protection with temporary and permanent lockout.Confirm with Authelia whether login attempt limits exist and how the configuration reference sets them.
Encryption in transitPer-realm Require SSL setting with External requests, None and All requests modes. Confirm the mode set for every realm in production.Authelia runs only over HTTPS because session cookies require it, and it does not support plain HTTP.
Audit loggingDocuments auditing of user events and admin events. Confirm retention and export in your own deployment.Documents a logging configuration section that you set. Confirm which events it records and whether they meet your audit needs.
Session, storage and logging configurationStorage is a relational database; PostgreSQL 14 to 18 is documented. Confirm session and logging settings for your version.Session, storage and logging each have their own configuration section that the operator sets. Confirm the storage backends and values in the reference.
Data location and hostingSelf-hosted in your infrastructure; the database and data location are yours to choose and document.Self-hosted; the server, its storage and any proxy run where you place them.
Release cadence and upgradesCurrent release 26.8.1 (October 13, 2026). Since 26.0, four minor releases a year are planned, with breaking changes opt-in in minors.Current release v4.39.28 (September 17, 2026). Confirm the release cadence and support window before committing.

Who signs, configures, patches and evidences each control

Keycloak and Authelia differ in what the software provides, but the decisions, configuration and evidence stay with your team in both cases. Each card separates what the product documents from what your organization must sign, set, patch, retain or write down for a HIPAA assessment.

Contract and BAA

A business associate agreement is the contract that governs a vendor's handling of electronic protected health information on your behalf. Neither the Keycloak administration guide nor the Authelia pages reviewed mention a BAA, and both projects are open source that you run yourself. Decide early whether you need paid support terms, and if you do, get written confirmation of whether the vendor will sign a BAA, what it covers and who handles incident notification. Ask the same questions of any partner that installs or operates either product for you.

Hosting, upgrades and patching

Your team hosts, patches and upgrades both products, so the release cadence sets your change calendar. Keycloak has planned four minor releases a year since version 26.0, and says breaking changes in a minor release will be opt-in, which lets you schedule upgrades without accepting breaking changes automatically. Confirm Authelia's release cadence and support window before you commit to a version. Test each upgrade outside production and keep the patch-level records in your change management system.

Keycloak release update

Identity policy settings

Your team sets MFA, account lockout and HTTPS enforcement in each product's configuration, and must document the values it chose. Keycloak documents brute force protection with temporary and permanent lockout, plus a per-realm Require SSL setting with the modes External requests, None and All requests. Authelia offers TOTP, WebAuthn security keys and Duo mobile push as second factors, and serves only HTTPS sites because its session cookies require it. Confirm Authelia's lockout behavior in your own configuration, then test each setting against your access policy.

Authelia second factor options

Audit log capture and retention

Your team ships and keeps the logs from both products, so the audit trail exists only where you send and store it. Keycloak's administration guide documents auditing of user events and admin events, but the export destination, storage location and retention period are your decisions. Authelia has a separate logging configuration section that the operator sets. Confirm which events each product records, how long they remain in your log platform, who can read them and how you show an assessor that administrative changes are captured.

Keycloak admin guide

Data stores, encryption and backups

You choose and operate the database or storage layer, along with its encryption at rest, key management and backups. Keycloak needs a relational database in production, with options including PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL, and its default dev-file database is not suitable for production. Authelia's storage is set in its own configuration section. Confirm backup frequency, restore testing and encryption settings with your database team, and include them in your risk analysis.

Keycloak database guide

Risk analysis, policies and workforce records

The risk analysis, written policies and workforce access records required by the Security Rule are always your organization's work. Those requirements sit in the administrative safeguards section and in the organizational and documentation standards that follow it. No product or vendor completes them for you, and an assessor will ask how each identity control was chosen. Where you decide not to implement an addressable specification as written, document the reason and the equivalent measure, and record who may grant, change and remove access to each platform.

Security Rule text

Both login paths end inside your own network and log store

The diagram starts with a user's browser sending an HTTPS request to a TLS-terminating reverse proxy inside the organization's network. On the first path, the proxy asks Authelia for a decision on each request. Unauthenticated users are sent to Authelia's login portal, and the application receives the request only after the check passes. On the second path, the application delegates login to Keycloak over OIDC or SAML, and Keycloak federates users from LDAP or Active Directory where that is configured. Each product keeps its data in its own store, and both send logs to the organization's log store. Check who operates each store, which events each product logs, and how long those logs are kept.

Both login paths stay inside the organization, and both products log to its own store.

The evidence an assessor will ask for and how each side produces it

An assessor reviewing access control will want to see who can sign in, how each user proves identity, and whether those settings are recorded and reviewable. Keycloak's evidence is mostly exported realm configuration. Authelia's evidence is the second factor section of its configuration and the user source that decides who exists.

  • Keycloak realm and authentication exports: Realm and authentication policy settings can be exported, so you can show the configuration in force on a given date. Confirm the export format and what it leaves out for your version.
  • Keycloak OTP and WebAuthn policy records: The Server Administration Guide covers passkeys, recovery codes and TOTP/HOTP, along with OTP and WebAuthn policy configuration. These policies are your second-factor evidence.
  • Keycloak brute force settings: Temporary and permanent lockout are documented features, so their enabled state and thresholds belong in the access control record.
  • Authelia second factor section: Authelia documents TOTP, WebAuthn security keys and Duo mobile push, all set in its second factor configuration. Export that section along with the version it ran on.
  • Authelia user source: Authelia reads file or LDAP users, so the evidence is the user store and a record of who can change it. Confirm how that store is reviewed.

Ask your assessor whether exported configuration is accepted as access control evidence, or whether they also expect dated sign-off from a periodic access review.

What to confirm with each vendor and counsel before go-live

Start with who signs what. Ask counsel whether this deployment needs a business associate agreement at all, and if it does, which party signs it. Keycloak and Authelia are open source, and the reviewed pages for both do not mention HIPAA or a BAA, so the organization running either one carries the HIPAA obligations. An implementation partner or managed host that can reach systems holding electronic protected health information is a separate question, so confirm in writing whether that party would sign a BAA before scope is agreed. If you buy paid support or a distribution, such as the Red Hat build of Keycloak, ask the vendor directly whether its terms include BAA language and which attestation reports it can share under NDA. Do not assume the upstream projects offer either.

Keycloak needs a relational database in production, and the supported options include PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL. Whatever you choose, the database holds user accounts, credentials and client configuration, so ask who controls encryption at rest, where the keys live, and whether backups are encrypted with keys you hold. For Authelia, the storage settings are configured by you, so the same questions apply to whichever storage backend its storage section points to. Ask for the backup location, its region, and who can restore it. Also confirm whether any managed database or hosting provider sits in a jurisdiction your policy permits. Record the answers in your data flow diagram before the risk assessment is finished.

Logs are the third area. Keycloak documents auditing for user events and admin events, so confirm which events your team will enable, where they are sent, how long they are kept, and who can read them, including the platform administrators who can change the audit settings. Authelia has a separate logging section that you configure, so define the same export, retention and access rules for its logs and for the reverse proxy logs in front of it. Finally, ask whether the data location meets your own policy: the region of the cloud account, the data center or the air-gapped network, and any vendor support access that could reach that environment. The reviewed pages for both products do not describe these items in full, so request written answers from each vendor and from counsel before you scope the work.

Configuring the chosen side for a HIPAA-scoped deployment

This sequence turns a default Keycloak or Authelia install into a deployment that a compliance team can review. Each step names the setting, the owner and the record that shows it is in place. It ends with documentation and a restore test, because an assessor will expect evidence that the identity controls work and can be recovered.

  1. Map applications and data flows

    Before changing any setting, the security or compliance lead lists every application that signs users in through the platform, the data each one handles and the paths between users, the proxy, the identity platform and any directory or user store. Record this inventory in the risk analysis so each component has an owner and a stated purpose. For Keycloak, the inventory covers each realm and client. For Authelia, it covers each protected host and the access rules that decide which users reach it. Done means the inventory is approved and the risk analysis references it.

  2. Enforce HTTPS on every request

    On Keycloak, the platform team sets Require SSL to All requests on each realm, including the master realm that holds administrator accounts, so login and token traffic never travels over plain HTTP. On Authelia, the proxy team confirms that every protected site and the login portal is served only over HTTPS, because its session cookies depend on it and the project does not support plain HTTP. Test this from outside the network by requesting the HTTP address of each site. Done means plain HTTP requests fail or redirect to HTTPS, and the proxy and realm settings are saved in version control.

  3. Choose and harden the data store

    Keycloak needs a relational database in production, and its default development file database is not suitable for production. The database team selects a supported engine, such as PostgreSQL 14 to 18, and confirms encryption at rest, encrypted connections, the backup schedule and the access limits on the database administrator accounts. Authelia keeps its data through the storage section of its configuration, so the team chooses the backend it will run and checks its encryption and backups the same way. Done means the backend choice, its encryption settings and its backup procedure are written down and reviewed.

  4. Require multi-factor authentication for all users

    The identity administrator turns on second factors for every population in scope. On Keycloak, this means setting the realm's OTP and WebAuthn policy and choosing which factors to allow, such as passkeys, recovery codes, TOTP or HOTP, and WebAuthn. On Authelia, the second-factor options are TOTP, WebAuthn security keys and Duo mobile push, and the access rules decide which resources require them. Authelia's second factor options are the starting reference. Test enrollment with a standard user and an administrator, then confirm that a password alone cannot reach a protected resource. Done means each in-scope application has a recorded factor policy and passing test results.

  5. Turn on lockout and test it

    On Keycloak, enable brute force protection, which offers temporary and permanent lockout, and set the thresholds your access policy requires. For Authelia, identify the settings that provide the equivalent behavior in its configuration reference for the exact version you run, and record them. Then test the control: run a scripted set of failed sign-ins against a test account, confirm the account locks as configured, confirm the lock appears in the logs, and confirm that an administrator can unlock it through a documented process. Done means the test output, with its date and platform version, is filed as evidence for the control.

  6. Enable auditing and ship logs

    On Keycloak, turn on user event and admin event auditing so that sign-ins, failed sign-ins, credential changes and administrative changes are recorded. On Authelia, set the logging section, choose the level and destination, and confirm which authentication outcomes that level records. In both cases, forward the logs to the organization's own log store, with retention set by the compliance owner. Generate a test sign-in and a test administrative change, then confirm both appear in the store and can be searched by user. Done means both test events are visible in the central store.

  7. Document the setup and run a restore test

    Write the runbook: the configuration baseline, the owners, the link to the risk analysis, the factor and lockout test results, the log locations and the process for changes and upgrades. Then restore the database and configuration into an isolated environment, sign in through a test application, and confirm that users, clients and enrolled factors come back as expected. Record what the restore produced and what was missing, then fix the gaps and repeat the test. Done means a restore has succeeded, the runbook is signed off by the control owner and the evidence is stored with the risk analysis.

What buyers ask before hiring help with a HIPAA identity build

How much effort does a HIPAA identity build take to deliver?

Effort depends on how many applications need single sign-on, which protocols each one speaks, how many directory sources must be connected, and how much evidence already exists. One application using OpenID Connect with a single user store is a small job. Ten applications across SAML and OIDC, with Active Directory federation and a separate partner login, is a much larger one (illustrative). Existing evidence also shortens the work: written access control procedures, a recent risk analysis and current configuration baselines reduce discovery. Ask every vendor to list applications, protocols, directory sources and identity providers in the scope document before you compare quotes.

How long does a HIPAA identity implementation usually take?

The timeline is set by the scope agreed in writing, how often that scope changes, and how long your internal and customer review cycles run. Fixed-scope engagements agree deliverables and dates before work starts, so the timeline holds only while changes go through change control. Each change request should state its effect on scope, deliverables and dates, and be approved by a named owner. Review cycles add time because security, privacy and compliance reviewers each need to read configuration documents, and their comments create rework. Ask for the review points and the decisions your organization must make before build starts, and treat both as dependencies in the plan.

What does our organization need to provide for the identity build?

Your organization supplies the decisions and access that only it can give. Name an owner for identity, one for the application teams and one for compliance evidence, each with authority to approve design choices. Give the delivery team read access to the directory source, the ability to create test accounts, and a staging environment that resembles production. Book change windows for cutover and rollback, because SSO changes can lock users out. Legal review of business associate agreements runs on its own track: your counsel decides which vendors that touch protected health information need one and reviews the terms before work starts. Start those reviews early, since they rarely finish within a build sprint.

Can our own team build HIPAA identity SSO without an implementation partner?

Yes, a small configuration can be built in-house by an experienced operator, but the team must own the result afterwards. One application using OpenID Connect, one user source and multi-factor authentication is within reach for an engineer who has run identity systems before. After go-live, the team owns upgrades, database backups and restore tests, certificate and secret rotation, audit log review, access reviews and lockout settings. Keycloak's documentation covers auditing, two-factor options and brute force protection, and Authelia's documentation covers its second factors, but neither maps these settings to HIPAA. Your team must do that mapping itself. Compare the internal effort and skills honestly with a written partner scope before deciding.

Does DeployOpen sign a BAA or certify HIPAA compliance?

No. DeployOpen does not sign a business associate agreement for this work and does not certify HIPAA compliance. DeployOpen does not issue audit reports, attestations or certifications, which independent auditors and certification bodies do. What DeployOpen prepares is the system, its configuration and the evidence your assessor will ask for, such as access control settings, audit logging configuration and documented procedures for the Security Rule's administrative, physical and technical safeguards. Read the HHS FAQ on certifying compliance and confirm with your counsel which agreements the hosting, backup and support vendors in your path require.

What should a quote request include for HIPAA identity help?

A useful quote request states the written scope, the deliverables, the environments and the handover terms, so vendors price the same work. List each application, protocol, directory source and identity provider to connect, plus the environments in scope and where they run. Name each deliverable, such as configuration baselines, runbooks, audit logging setup and an evidence pack for your assessor. Specify the handover: who receives the documentation, what training covers and what your team must operate afterwards. Ask whether retainers for upgrades, patching and retesting are quoted separately, since those costs recur after the build. Finally, ask what triggers a change request and how each change is priced.

How DeployOpen prepares the identity layer and the evidence file

DeployOpen works on Keycloak vs Authelia for HIPAA and healthcare as a fixed-scope engagement inside your own infrastructure, with scope, deliverables and timelines agreed in writing before work starts. The goal is an identity layer your compliance and security teams can review, with audit, MFA, session and logging settings documented as evidence. The Keycloak and Authelia documentation we reviewed does not mention HIPAA or a BAA, so your organization carries those obligations.

How we scope

  • The written scope names which Keycloak or Authelia deployment, user sources and applications are covered before work starts.
  • We map the HIPAA Security Rule safeguards that touch identity, such as access control and audit controls.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing; ongoing support is available as a retainer.

How we build

  • Configure login flows, MFA methods and lockout controls, using only settings each platform documents, inside your own infrastructure.
  • Enable Keycloak user and admin event auditing, and set Authelia logging and storage to match your retention plan.
  • Set Keycloak's per-realm Require SSL to the mode your policy needs, and confirm Authelia's HTTPS-only proxy path.

How we hand over

  • A written evidence file that maps each in-scope setting to the Security Rule safeguard it supports.
  • Documented decisions for each addressable implementation specification in scope, with the reason for any alternative measure.
  • A list of tasks still with your team, such as access reviews, key rotation and BAA questions.

How we support

  • Retainers can cover upgrades, continuous testing and reviews of configuration changes after go-live.
  • Keycloak's project plans four minor releases a year, so upgrade planning is part of support.
  • Retests after fixes confirm that access settings, audit logs and SSO flows still behave as the evidence file describes.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.