Auth0 vs Keycloak for HIPAA: which side fits which setup
Choose Auth0 when your organization needs a vendor Business Associate Agreement and a managed service is acceptable. Choose self-hosted Keycloak when identity data must stay inside your own infrastructure and your team can carry the HIPAA obligations itself. This page covers only the compliance angle, and the general comparison of the two platforms sits on its own page. The decision turns on three questions: whether your Auth0 plan is eligible for the BAA, which hosting region and deployment model you can use, and who will run and evidence the controls. Auth0's documentation says it is a Business Associate under US HIPAA and HITECH and can provide its BAA on request.
On the Auth0 side, the BAA applies to customers who qualify as a Covered Entity and who provide ePHI as part of the Auth0 user profile, so confirm that your user records will hold only data the agreement covers. The documentation does not state which subscription plans qualify, so ask Auth0 to confirm plan eligibility in writing before you design around it. Hosting is the second gate. Public cloud tenants can be created in Australia, Canada, Europe, Japan, the United Kingdom or the United States, and a tenant name cannot be changed after creation, so settle region and naming before go-live. Auth0's documentation also states that HIPAA compliance is not available on Azure deployments. Auth0 Private Cloud runs on AWS or Azure, so confirm the exact cloud and region in the contract before you accept it as the hosting model.
With self-hosted Keycloak, no vendor signs a BAA for the software, and the administration guide does not address HIPAA. The organization running Keycloak carries the obligations, so your compliance team must map its controls to the Security Rule itself. The documented controls to review include auditing of user events and admin events, two-factor authentication with passkeys, recovery codes and TOTP/HOTP, brute force protection with temporary and permanent lockout, and the per-realm Require SSL setting. Under the Security Rule, Appendix A lists 18 standards with 36 implementation specifications, 14 required and 22 addressable. For each addressable specification, document whether it is reasonable and appropriate and, if it is not, the equivalent measure you chose. Your team also owns the database, backups, log retention and the evidence that these settings stayed in place.
How Auth0 and Keycloak each meet the identity-related safeguards
This table sets out what Auth0 and Keycloak document for the identity-related safeguards an assessor will look at, row by row. Read each cell as a checklist: where a vendor statement is missing, the cell tells you what to confirm before you rely on the platform. The main takeaway is that Auth0 will provide a business associate agreement on request, with conditions to confirm, while Keycloak's guide does not mention HIPAA, so the evidence sits with your team.
| Safeguard | Auth0 | Keycloak |
|---|---|---|
| Business associate agreement | Auth0 says it is a business associate and will provide its BAA on request. Confirm it covers your contract. | The Server Administration Guide does not mention HIPAA or a BAA. Your organization carries the HIPAA obligations. |
| Plan eligibility | The documentation does not say which plans qualify for the BAA. Confirm plan eligibility with Auth0 in writing. | Upstream Keycloak has no plan to qualify for. Confirm vendor terms if you use a supported distribution, such as Red Hat build. |
| Hosting and data location | Tenant region chosen at creation, from six regions. Private Cloud runs on AWS or Azure. HIPAA compliance is not available on Azure deployments. | Runs wherever you host it, so data location is set and evidenced by you. |
| Audit logging | Confirm with Auth0 which log events are retained, for how long, and how you export them for review. | Configurable auditing tracks user events and admin events. Confirm how long events are kept and how they reach your log store. |
| Multi-factor authentication | Confirm which MFA factors and policies your plan includes, and whether they apply to your tenant's login flows. | Two-factor options include passkeys, recovery codes, TOTP and HOTP, plus WebAuthn and OTP policy configuration. |
| Brute force protection | Confirm lockout and attack protection settings for your plan and tenant. Document the thresholds you configure. | Documented temporary and permanent lockout. Record the thresholds you set as control evidence. |
| Transport encryption | Confirm TLS settings and certificate handling for your tenant and any Private Cloud deployment with Auth0. | Per-realm Require SSL setting with External requests, None and All requests modes. Confirm which mode each realm uses and why. |
| Documentation and evidence | Auth0 documentation describes the BAA and Azure exclusion. Ask for the signed BAA and written plan eligibility. | Your own configuration records are the evidence: audit settings, MFA policy, lockout thresholds and SSL modes per realm. |
How login events and audit evidence flow in each deployment
Clinical staff sign in to a clinical app, which sends the login to either Auth0 or Keycloak. The Auth0 side sits inside a vendor boundary covered by a Business Associate Agreement, on a plan you must confirm with Auth0, and the tenant region should be recorded. The Keycloak side sits inside your own trust boundary, covering the server, database, logs and backups. The assessor reviews the BAA and tenant event records on one side and Keycloak's audit configuration, logs and backup records on the other. Check who holds each record and how long logs are kept.
Login and audit evidence paths for Auth0 and self-hosted Keycloak.
The evidence an assessor asks for and how each side produces it
Auth0's documentation says Auth0 is considered a Business Associate under US HIPAA and HITECH and can provide its Business Associate Agreement on request. That agreement applies to customers who qualify as a Covered Entity and who send ePHI to Auth0 as part of the user profile. Keycloak is software your team runs, so no vendor agreement exists for it. HIPAA obligations stay with your organization, and any cloud or data center provider hosting the deployment is a separate contract to review. See Auth0's data privacy and compliance documentation for the starting point.
- Plan eligibility: The documentation does not state which subscription plans qualify for the BAA. Ask Auth0 to confirm eligibility in writing for the plan you intend to buy, whether Free, Essentials, Professional, Enterprise or a Private Cloud contract.
- Azure deployments: Auth0 documents that HIPAA compliance is not available on Azure deployments. Confirm the hosting option and cloud provider before you sign.
- Attestation reports: Request Auth0's current attestation reports directly from Auth0, and check that the scope and period of each report cover the systems you plan to use.
- Keycloak evidence: The Keycloak project does not issue an attestation for your deployment. Your evidence is the configuration, logs and records your team produces, plus any BAA your hosting provider signs.
- PHI mapping: Identify which user profile attributes would hold ePHI, because the Auth0 BAA is tied to ePHI supplied as part of the user profile.
Before the assessment starts, hold a signed BAA, a written plan confirmation and the current attestation reports in one folder, each with its date.
An assessor will want to see who can sign in, how strongly users prove their identity and how administrators are restricted. The Keycloak Server Administration Guide documents two-factor options, policy settings and brute force protection as configuration your team owns and can record for an assessor. For Auth0, the documentation available for this comparison does not give enough detail on these controls, so the tenant settings need to be reviewed with Auth0 directly.
- Multi-factor options: Keycloak lists two-factor authentication with passkeys, recovery codes and TOTP/HOTP, plus WebAuthn and OTP policy configuration. Record which methods each realm allows and which are required for administrators.
- Lockout settings: Keycloak documents brute force protection with temporary and permanent lockout. Record the thresholds you chose and tie them to your risk analysis.
- Fine-grained authorization: Keycloak provides fine-grained authorization services. Document which roles and resources gate each application that handles PHI.
- Auth0 tenant settings: Review the tenant settings for MFA, connections and admin roles with Auth0, and keep a dated record of each setting and the Auth0 confirmation behind it.
- User inventory: Auth0 documents bulk user exports, which can support a user inventory showing who holds accounts.
Check that the MFA, lockout and role settings you show the assessor match the written access control policy, and that the policy names an owner.
Assessors usually ask for proof that sign-ins, failures and administrative changes are recorded and can be reviewed. The Keycloak Server Administration Guide documents configuring auditing for user events and admin events, so those records come from your own server and your own storage. The documentation available for this comparison does not describe Auth0's log content, retention or export, so those answers have to come from Auth0 before you rely on them.
- User events: Enable auditing of user events so that sign-ins, failures and related actions are recorded for review.
- Admin events: Enable admin events so that changes made through the admin console and admin interfaces are recorded with the actor who made them.
- Storage and retention: Where events are kept, how long they stay and who can change them are decisions your team makes and must document.
- Auth0 log scope: Ask Auth0 which log events exist for your plan, how long they are retained and how an assessor would receive them.
- Monitoring flow: Decide whether Keycloak events flow into a log platform you operate, then test that a sample sign-in and a sample admin change both appear there.
Before the assessment, produce one sample login and one admin change from each platform, and confirm each record shows the actor, the action and the time.
Assessors ask how data is protected between the user, the identity platform and the systems it connects to, and where that data is stored. Keycloak exposes a per-realm Require SSL setting with three modes: External requests, None and All requests, so the transport rule is set in configuration you can show. Certificates, protocol versions and database encryption sit with your team, while Auth0's encryption controls need to be confirmed with Auth0.
- Require SSL mode: Keycloak offers External requests, None and All requests per realm. Record the mode each realm uses and the reason for it.
- Certificates and TLS: Certificate issuance, renewal and the allowed protocol versions and ciphers are typically set at your proxy or load balancer. Name the owner of each certificate.
- Database choice: Keycloak needs a relational database in production and supports PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL. Encryption at rest depends on the database and storage you choose, so document it for that choice. The Keycloak database guide lists the options.
- Auth0 controls: The documentation available for this comparison does not describe Auth0's transport or storage encryption in enough detail to rely on. Ask Auth0 for its documented controls and the attestation that covers them.
- Traffic map: Keep a diagram that shows where connections terminate, which network segments they cross and which party controls each hop.
Keep one record per environment with the SSL mode, certificate owner, database encryption setting and the Auth0 control references.
The Security Rule applies to covered entities and business associates for electronic protected health information, and each implementation specification is either required or addressable. For an addressable specification, the organization must decide whether it is reasonable and appropriate, document why if it is not, and implement an equivalent measure where that is reasonable and appropriate. Neither Auth0 nor Keycloak makes these decisions for you, so the risk analysis is the document an assessor reads first.
- Scope: The Security Rule covers covered entities and business associates for ePHI under 45 CFR 164.302. The identity platform falls inside that scope whenever it handles PHI.
- Specification count: Appendix A lists 18 standards and 36 implementation specifications, 14 required and 22 addressable, across administrative, physical and technical safeguards.
- Addressable decisions: For each addressable specification, record your assessment, your decision and any equivalent alternative. Identity decisions such as MFA methods and lockout thresholds belong in this record.
- Documentation standards: Sections 164.314 and 164.316 add organizational and documentation standards for the policies and records you keep for the platform.
- Vendor evidence: Cite the dated Auth0 BAA, plan confirmation and attestation reports in the analysis. Keycloak's analysis is written by your team and needs its own owner.
Assign one owner to the risk analysis and review it after each change to identity settings, including MFA, lockout and SSL modes.
Configuring Keycloak controls an assessor will check
This sequence sets out the Keycloak settings an assessor will ask to see, in the order an organization should configure them. Each step ends with a check and an exported artifact that can go into the evidence file. Retention, encryption and the Auth0 BAA position remain for the organization to confirm in its own environment.
Choose a supported production database
The platform team selects a relational database for Keycloak before any workforce or patient-facing login goes live. Keycloak needs a relational database in production and supports PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL. The default dev-file database is not suitable for production, so the build must show a supported engine. Record the engine and version in the system inventory, and confirm with the hosting team that backups and encryption at rest for that database meet the organization's own policy. Done when the deployment configuration names the database and version, and the inventory entry matches it.
Set Require SSL to all requests
The realm administrator sets the per-realm Require SSL option, which offers the modes External requests, None and All requests. Choose All requests so that every connection to the realm, including internal ones, is encrypted in transit. If another mode is kept for a documented reason, that reason goes into the decision log described in the documentation step. Check the result by exporting the realm settings to confirm the mode, then attempting a plain HTTP login to confirm it is refused. Done when the export and the refused plain HTTP attempt are saved with the change ticket.
Enable user and admin event auditing
The administrator turns on event auditing so that user events and admin events are recorded, including logins and administrative changes, as the Keycloak Server Administration Guide describes. Decide where those events go, whether the realm event store or an external log pipeline, and which roles can read them. The organization must confirm the retention period, access controls on the log store and whether the logs are encrypted in its own environment, because enabling the feature does not settle those. Done when a test login and a test admin change both appear in the chosen store, and the retention period is written into the logging standard.
Set OTP, WebAuthn and passkey policies
The administrator sets the OTP policy and the WebAuthn policy for the realm, and enables passkeys and recovery codes where the workforce will use them. Keycloak documents two-factor authentication with passkeys, recovery codes and TOTP/HOTP, so the factor choices and policy values must match the access rules in the organization's risk assessment. Test enrollment with a privileged account and with a standard user, then confirm that a login requires the second factor. Done when the policy values are exported, the enrollment results are saved, and the recovery code process is written down for help desk staff.
Enable brute force protection and lockout
The administrator enables brute force protection and chooses between temporary lockout and permanent lockout, the two modes Keycloak documents. Temporary lockout is usually simpler to run because an administrator can release the account later. Permanent lockout needs a defined unlock procedure, owned by a named role, before it goes live. Test with a deliberate run of failed logins in a non-production realm, then confirm that the account locks and that the unlock step works. Done when the test record shows both the lock and the unlock, and the chosen mode appears in the decision log.
Document each addressable decision
Under the HIPAA Security Rule, each addressable implementation specification must be assessed for whether it is reasonable and appropriate. If it is not adopted, the reason must be documented, along with an equivalent measure where one is reasonable. Map the settings from the earlier steps to the technical safeguards in 45 CFR 164.312 and to the documentation standards in 164.316. Write one entry per setting with the choice made, the reason, the owner and the evidence file, and date each entry. Done when every setting above has an entry that an assessor can trace from the regulation to the exported configuration.
Repeat the trail for Auth0 tenant settings
Auth0 settings are configured in the tenant, so the same evidence trail applies to them: MFA policy, lockout configuration, log retention and the change history. Auth0's documentation states that it is a Business Associate under HIPAA and HITECH and can provide its Business Associate Agreement on request. That agreement applies to covered entities that provide ePHI in the user profile, and the documentation states that HIPAA compliance is not available on Azure deployments. The documentation does not say which plans qualify, so confirm plan eligibility with Auth0 and file the signed agreement beside the Keycloak evidence.
Where identity data lives under each option
Under Auth0, the region is chosen when the tenant is created. Public cloud tenants can be created in Australia, Canada, Europe, Japan, the United Kingdom or the United States, and a tenant name cannot be changed later, so make the naming decision deliberately. Auth0 Private Cloud is a dedicated deployment on AWS or Azure for organizations that cannot use the multi-tenant public cloud or need isolation or guaranteed capacity. HIPAA is not available on Azure deployments, so the cloud choice is also a compliance choice. Ask Auth0 in writing where user profiles, logs and backups are stored and processed for the tenant you select, because the region alone does not settle that question.
With Keycloak, the server runs wherever you deploy it: your own cloud account, a data center or an air-gapped network. That makes data location your documented decision, covering the relational database, backups, log stores and any replicas. Keycloak needs a relational database in production, and the supported choices include PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL, so the database engine and its host become part of the data map an assessor will read. The organization running Keycloak carries the HIPAA obligations for it. Write the data flow down once, with each store, its location, who can administer it and which audit events are kept where.
Plan the exit path before the contract is signed. Auth0 documents bulk user exports, and that documentation is the starting point for exit planning and for evidence of data portability. Run an export against a test tenant, time it, and check that the fields you need, such as custom attributes and enrolled authenticators, appear in the output. Confirm with Auth0 in writing whether password hashes and MFA enrollments are included, because an assessor will ask how users would be re-established elsewhere. On the Keycloak side, your team owns the export and backup routine, so schedule it, restore it into a non-production environment and keep the result with the data map.
Questions to answer before hiring help on a HIPAA identity project
How much effort does a Keycloak rollout need compared with confirming an Auth0 BAA?
Confirming an Auth0 BAA is mostly a contract and plan question, while a Keycloak rollout is an engineering project that your organization owns from end to end. Auth0's documentation says Auth0 is considered a Business Associate under HIPAA and HITECH and can provide its BAA on request. That BAA applies to customers who qualify as a Covered Entity and send ePHI in the Auth0 user profile, and the documentation does not say which plans qualify. With Keycloak there is no hosted vendor to sign a BAA with, and the Keycloak Server Administration Guide does not mention HIPAA or a BAA, so the organization running Keycloak carries the obligations for hosting, patching, database backups, audit logs, MFA settings and access reviews. Ask any partner to list each of those tasks in the written scope so the effort is visible before work starts.
What drives the cost of Auth0 compared with Keycloak?
Auth0 costs are mainly a recurring subscription priced by monthly active users, defined as non-internal users who authenticated during a month for a given tenant, with plan tiers (Free, Essentials, Professional and Enterprise) that add features. Auth0's pricing page lists the Free plan at up to 25,000 MAUs, custom database connections start on Professional, and private deployment and a 99.99% SLA are Enterprise only. User growth, the plan Auth0 confirms is eligible for the BAA, and any dedicated deployment all push the bill up. Keycloak is licensed under Apache-2.0, so there is no license fee for the software itself. Its cost sits in infrastructure, a production relational database, staff time to build, patch and upgrade it, and any paid support you choose. Those costs rise with availability targets, the number of environments and the audit evidence you must produce. Ask for each line separately: subscription or license, hosting, database, one-time build, recurring operations and support.
How long does a HIPAA identity project take to deliver?
The timeline comes from the written scope, and a few factors set how long each part takes. The main drivers are the number of applications and their protocols (OIDC, OAuth 2.0 or SAML), the user sources to federate from LDAP or Active Directory or to broker from an external identity provider, the MFA and session policy, the database and high availability design, and the number of clinical and business systems that must be integrated and tested. On the Auth0 side, hosting choice matters: Auth0's documentation states that HIPAA compliance is not available on Azure deployments, so early architecture decisions can change the schedule. DeployOpen's engagements are most often fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ask for a dated plan with milestones, the testing and retest window, and the client review points the schedule depends on.
What does the project need from our security, clinical and IT staff?
The project needs named owners from security, clinical operations and IT before design starts, because each group signs off a different part of the risk. Security owns the mapping to the HIPAA Security Rule, MFA and password policy, brute force lockout settings, the Require SSL setting for each realm, and retention rules for user and admin event logs. Clinical staff confirm which applications and roles touch ePHI, which users need shared or emergency access, and how session timeouts affect clinical workflows. IT owns the directory sources such as Active Directory or LDAP, DNS, certificates, the database platform, backup and restore tests, and the on-call model for sign-in outages. Ask the written scope to name each role, the decisions it covers, the review dates, and the access the partner will need inside your environment.
Can our own team build and run this without outside help?
A capable in-house team can build and run either platform, and the deciding factors are skills, time and continuity for the HIPAA obligations. With Auth0, your team mostly configures applications and connections while Auth0 runs the service, which leaves fewer operational tasks but keeps the contract and plan questions on your side. With Keycloak, your team also runs hosting, the production database, monitoring, backups and upgrades. The Keycloak project said in an October 2024 blog post that it plans four minor releases a year and that breaking changes in a minor release will be opt-in, so the upgrade calendar is steady but still needs staff time. Check that the team has Keycloak administration, OIDC and SAML, database operations, Kubernetes or Linux operations, and security testing skills. Outside help can cover a fixed build, and a retainer can cover upgrades and continuous testing afterward.
Which Auth0 deployment, region and data fields affect HIPAA scope?
The main scope decisions are which Auth0 deployment you use, which region holds the tenant, and which fields hold PHI. Auth0's documentation states that HIPAA compliance is not available on Azure deployments, and Auth0 Private Cloud is a dedicated managed deployment on AWS or Azure, so any private option needs its cloud and BAA coverage confirmed in writing. Public cloud tenants can be created in Australia, Canada, Europe, Japan, the United Kingdom or the United States, and a tenant name cannot be changed after creation, so choose region and naming before anything is built. The BAA reaches ePHI in the Auth0 user profile only for customers that qualify as a Covered Entity, so limit profile fields to what the sign-in flow needs and document each field that holds PHI. Ask Auth0 to confirm in writing which plan, region and deployment carry the BAA.
What evidence will an assessor ask for from an identity platform?
An assessor will ask for records that show access is controlled, logged, reviewed and recoverable, plus the documented reasoning behind each decision. The Security Rule requires covered entities and business associates to protect electronic PHI, and for each addressable specification the organization must assess whether it is reasonable and appropriate. If it is not, the organization must document why and apply an equivalent alternative where that is reasonable. For identity, expect to show MFA configuration exports, brute force lockout settings, the realm SSL setting, user and admin event audit settings and log retention, access review records, backup and restore test results, upgrade change records, and the signed Auth0 BAA with plan confirmation. DeployOpen prepares systems, controls and evidence for compliance assessments, while independent auditors and certification bodies issue audit reports, attestations and certifications.
What does an implementation partner deliver for HIPAA readiness on identity?
DeployOpen plans, implements, customizes, integrates, hardens, backs up, upgrades, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. It also prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications, so those remain the work of independent auditors and certification bodies. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Security testing of applications, APIs, cloud and infrastructure can be scoped separately from the build. Ask any partner, DeployOpen included, for a written list of deliverables, the evidence each one produces, who signs off on each item, what the client must provide, and which items continue under a retainer.
How DeployOpen helps prepare, implement and evidence the setup
If you choose self-hosted Keycloak, DeployOpen plans, implements, integrates, hardens, documents and supports it inside your own cloud accounts, data centers or air-gapped networks. The work is scoped so your compliance and security teams can review the identity setup, its controls and its evidence. DeployOpen prepares systems and evidence for compliance assessments but does not issue audit reports, attestations or certifications.
How we scope
- The written scope lists which Security Rule safeguards the Keycloak work covers, such as access control and audit controls.
- Fixed-scope engagements agree deliverables, timelines and responsibilities in writing before any work starts.
- The scope separates what DeployOpen configures from HIPAA obligations your organization keeps, such as risk analysis and policies.
How we build
- Keycloak is configured with the realm, OIDC or SAML clients, brokering and LDAP or Active Directory federation you choose.
- Passkeys, recovery codes, TOTP, brute force lockout and Require SSL are configured and tested.
- Admin event and user event auditing is enabled and routed to the log destination your security team chooses.
How we hand over
- A written configuration record lists realms, clients, identity providers, MFA policies and audit settings as deployed.
- Database backup and restore steps are written and tested with your team, using a production database Keycloak supports.
- Evidence packs map each setting to the safeguard it supports, for your assessor to review.
How we support
- Retainers can cover upgrades, continuous testing and ongoing support after handover.
- Keycloak's release cadence and breaking-change policy are reviewed with your team before each planned upgrade.
- Your compliance lead should confirm which HIPAA obligations sit with you, since Keycloak's guide does not map them.
Sources and further reading
- Auth0 Data Privacy and Compliance docs ↗
- Keycloak Server Administration Guide ↗
- 45 CFR Part 164 Subpart C, Security Standards for the Protection of Electronic Protected Health Information, eCFR ↗
- Appendix A to Subpart C of Part 164, Security Standards: Matrix, eCFR ↗
- HHS FAQ 2003: Are we required to certify our organization's compliance with the standards? ↗

