Which SOC 2 criteria a HAPI FHIR platform helps evidence
HAPI FHIR helps with parts of a SOC 2 examination, but it does not satisfy the Trust Services Criteria on its own. The open-source server gives you building blocks: an AuthorizationInterceptor, authentication interceptors, consent and search narrowing interceptors, and BALP audit logging. Those components produce some of the evidence an auditor will ask for, such as who can read or write which resources and a record of access events. The rest of the evidence comes from your own change management, access reviews, monitoring, backups and incident handling. A SOC 2 is performed by a CPA firm under AT-C section 205, and DeployOpen does not issue SOC 2 reports, attestations or certifications. Our role is to design, configure and document the controls so your auditor can test them.
The security common criteria, CC1 to CC9, apply to every SOC 2 report. The availability, processing integrity, confidentiality and privacy categories are added only when they are in scope for your system description. Within the security criteria, the platform most directly supports the logical access series (CC6), where you should map the AuthorizationInterceptor rules and identity provider configuration to documented role definitions, and the system operations series (CC7), where BALP logs and server metrics feed your monitoring. It supports change management (CC8) only indirectly: HAPI FHIR upgrades still need a tested, approved change record for each version you deploy. The platform does not provide your governance, risk assessment, vendor management or personnel controls (CC1 to CC5 and CC9), and it cannot show that your team operated those controls.
Before scoping the audit, confirm with your CPA firm which categories and points of focus they expect, and inventory which HAPI FHIR components, database nodes, identity providers and hosting accounts sit inside the system boundary. Ask whether the auditor will want a Type 1 report on design or a Type 2 report covering operating effectiveness over a period, because that choice changes how long you must keep evidence running before the examination starts.
Mapping SOC 2 common criteria to HAPI FHIR capabilities and configuration
This table maps the SOC 2 criteria areas an auditor is likely to test (logical access, system operations, change management, risk mitigation and availability) to what HAPI FHIR provides and what the operator must configure. Read the middle column as the built-in building block and the right column as the work that stays with your team. The main takeaway is that HAPI FHIR supplies components, not a finished security layer, so most evidence comes from your own configuration, records and operating procedures.
| Criteria area | HAPI FHIR building block | Operator must configure or evidence |
|---|---|---|
| CC6 logical access | AuthorizationInterceptor and authentication interceptors on the JPA server | Define resource-level rules, connect an external identity provider, and document who can change access rules |
| CC6 access reviews | Access decisions are made by the interceptors you configure, not by a built-in review feature | Periodic review of identities, roles and client registrations, with retained review records |
| CC7 system operations and audit logging | BALP audit logging for FHIR access events | Confirm BALP output is enabled, forwarded to a log store you control, and protected from edits |
| CC7 monitoring | Metrics, tracing and logging hooks in the server (confirm the current options for your version) | Alert rules, log retention settings and a documented on-call response for failed logins and errors |
| CC8 change management for upgrades | Versioned releases such as the v8.8.2 release on GitHub, with the Docker image and Helm chart as deployable artifacts | Pin image tags, test upgrades in a non-production environment, and keep approvals and rollback steps in your change tickets |
| CC8 change management for configuration | Configuration held in the starter's settings and deployment manifests | Store configuration and interceptor code in version control with peer review before deployment |
| CC9 risk mitigation and supplier management | Public project and commercial support options listed in the HAPI FHIR README | Assess the open-source dependency, record the support arrangement, and track known vulnerabilities for each release you run |
| A1 availability (if in scope) | PostgreSQL or Microsoft SQL Server as supported production databases, with the JPA server starter for Kubernetes | High availability design, tested database backups and restore, and recovery time targets your organization sets and confirms |
| Database and encryption at rest | Production support for PostgreSQL and Microsoft SQL Server; the embedded H2 default is not a production choice | Encryption, access to the database, and backup protection provided by your platform; confirm each with your database vendor |
How the auditor traces a change from release notes to production
A Type 2 examination asks whether controls operated effectively over a period, so the auditor needs evidence that exists throughout that period, not a clean configuration on the day the report is requested. For a HAPI FHIR upgrade, the trail starts with the release notes for the target version, such as v8.8.2 published on GitHub, and the compatibility check against your runtime. HAPI FHIR 8.2.0 requires JDK 17, so a team that jumps across that boundary must show the Java runtime change was tracked as its own item, tested in a non-production environment, and deployed through the same approval path as the application change. Confirm with the project's upgrade documentation which schema migrations and breaking changes apply between your current version and the target before you open the ticket.
Each upgrade should produce a linked set of records: a change ticket that cites the release notes and the impact assessment, test results from the FHIR conformance and regression suite run against a staging copy of your database, a named approver who is not the person who built the change, and a deployment record showing the image tag or WAR artifact, the time, and who executed it. The auditor will sample upgrades from the period and walk each one in both directions, from ticket to production and from a production change back to a ticket. Ask your auditor early which sampling approach they will use, and make sure your pipeline, such as GitLab or Argo CD, retains the approval and deployment history long enough to cover the whole period.
The description of the system is evaluated against the AICPA 2018 description criteria (DC 200), which means the change management process you describe must match what the evidence shows, including the Java, database and HAPI FHIR version pinned in each environment. If your written description says upgrades are tested in staging but the logs show direct production deployments for patch releases, the mismatch becomes a finding. Before the period starts, document the upgrade procedure in the system description, define what counts as an emergency change, and agree with your auditor how the change log will be exported. Check the current criteria text in the AICPA's 2017 Trust Services Criteria before you finalize the wording.
Where the SOC 2 control boundary sits around a HAPI FHIR deployment
The diagram starts at the client identity provider, which issues the tokens users and applications present to the reverse proxy in front of the HAPI FHIR JPA server. The server's authorization and audit interceptors produce evidence about access, while the database, log destination, monitoring and backup storage sit in the operator's infrastructure. Check each hand-off: who issues and revokes identities, whether the proxy passes only approved traffic, and whether audit records and backups leave the boundary under the same controls as the data.
Trust boundary between the SaaS environment and operator-run controls around the server.
Evidence auditors ask for and how to keep it
A SOC 2 examination tests whether controls operated over a period, so the evidence has to exist continuously, not be assembled at audit time. The cards below cover the records a HAPI FHIR platform operator should expect to produce and keep, and each one maps to a control area the auditor will sample.
Change management records for upgrades
Each HAPI FHIR version change, schema migration and configuration change needs a ticket, a reviewed pull request or change record, test results and an approval recorded before deployment. Auditors sample these to confirm changes followed the documented process and were not made directly in production. Keep the release notes you reviewed for each target version, since the HAPI FHIR releases page lists the changes you need to assess. Confirm with your auditor how they want emergency changes documented.
HAPI FHIR releasesAccess review exports and authorization rules
Access reviews show who holds access to the FHIR server, to the database and to the hosting environment, and whether that access was confirmed by someone accountable. Export user lists from your external identity provider at each review date and retain the signed review. Store the authorization rules you configured, such as those built on the AuthorizationInterceptor, under version control so you can show what was in force on any given day. HAPI FHIR does not produce these reviews for you.
HAPI FHIR security docsAudit logs and their retention
Audit logs show who accessed or changed records and when, which is the evidence for monitoring of access to data. If you enable BALP audit logging, decide where the events are written, who can read them, and how long they are kept, then document that retention period and test that logs are not altered. Ask your auditor which logs they will sample and whether they expect the log pipeline itself to be covered by access controls. Confirm the retention period with your legal and compliance owners before you set it.
Monitoring and alerting records
Monitoring evidence proves that availability and security events were watched and acted on. Keep the alert rules you defined, the notification routing, and a sample of alerts with the tickets and responses that followed. For a HAPI FHIR server, relevant signals include service health checks, error rates, authentication failures and database resource limits, which you select and configure yourself. Auditors often test a sample of alerts from the period, so make sure responses are recorded in the same system.
Database backup and restore test records
A backup is only evidence if you can show it restores. Keep the backup job logs for the examination period, the retention settings, and dated records of restore tests into a separate environment, including the time taken and who verified the result. This matters most for the PostgreSQL or Microsoft SQL Server database behind the JPA server, since that is where the FHIR data is stored. Schedule restore tests across the period so the auditor sees operating effectiveness, not a single test.
The written system description
The system description states what the platform does, its components, its boundaries, the controls and the responsibilities of your organization and its subservice providers. It is the management assertion that the auditor evaluates against the description criteria, so it must match how the HAPI FHIR server, database, hosting and identity provider are actually run. Update it when the architecture or hosting changes, and record the version and date of each revision. Describe what you operate, not what the platform does by default.
AICPA description criteriaConfiguration sequence before the observation window opens
This sequence fixes the scope, access model, platform baseline, change control, reviews and recovery checks that an auditor will test, so the observation period starts with controls already operating and documented.
Define the system boundary and TSC scope
Name every component that stores, processes or transmits customer data: the HAPI FHIR JPA server, its database, the application server, reverse proxy, identity provider, logging stack and backup store. Decide which Trust Services Criteria categories are in scope beyond the common criteria CC1 to CC9, which apply to every SOC 2. Management writes the system description against the AICPA's 2018 description criteria. Done when the boundary diagram and the in-scope category list are approved by the control owner and the auditor has confirmed the approach in writing.
Fix the authorization model and audit logging
Choose how requests are authorized, using HAPI FHIR's AuthorizationInterceptor with an external identity provider, and document which roles can read, write, search and delete each resource type. Enable BALP audit logging and confirm that audit events capture the user, the resource and the action, and that they are shipped to storage the application team cannot edit. Done when a test account with a restricted role is denied out-of-scope requests and the resulting audit entries are visible in the central log store.
Place the JPA server on a supported database and Java version
Run the server on PostgreSQL or Microsoft SQL Server, since the starter does not support MySQL, and use the JDK version the target HAPI FHIR release requires. The HAPI FHIR documentation lists 8.2.0 as requiring JDK 17, so confirm the requirement for the exact version you deploy. Record the database engine, version, Java runtime and image or WAR digest in the configuration baseline. Done when the baseline record matches what is running in each environment and the production build is traceable to a tagged source revision.
Set up change control for version upgrades
Define how a proposed HAPI FHIR or dependency upgrade is requested, reviewed, tested in a non-production environment, approved and deployed, including schema migration steps and rollback criteria. Keep the approval record, test results and release notes linked to each change ticket. The release notes for each version must be read before approval, since breaking changes differ by release. Done when a sample upgrade has been run end to end with a complete change record that an auditor could sample.
Schedule access reviews for people and service accounts
Set a recurring review of users with administrative access to the server, the database, the container platform and the identity provider, plus service accounts and API clients that call FHIR endpoints. The reviewer compares each grant against an approved role list and records removals. Include leavers and role changes from HR. Done when the first review is signed by a manager who is not the grant holder, the removals are tracked to completion, and the review record shows the population reviewed.
Establish monitoring and alerting
Configure metrics, logs and alerts for server health, failed authentication, authorization denials, database errors and unusual search volume, using the monitoring stack your team operates. Assign an owner to each alert and a documented response path. Keep alert history so you can show that events were reviewed. Done when a deliberate test failure produces an alert, a ticket and a recorded response, and the alert rules are stored in version control.
Test backups and restores
Take scheduled database backups and confirm that the FHIR resources, search indexes and configuration can be restored to a separate environment. Store backups with access controls that match production and set a retention policy agreed with the business. Run a restore test and record the start and finish times, the data checked and any gaps found. Done when a restore has been completed and verified at least once, and the test record is filed with the availability controls.
Start collecting evidence for the observation period
Open an evidence register that maps each control to its owner, the artifact produced (change tickets, access review sign-offs, audit log exports, alert records, restore tests) and the frequency. Confirm with the auditor which population and sample sizes they will select, and which controls they expect to test for operating effectiveness in a Type 2 report. Done when the register is live, a sample of each artifact has been produced and reviewed, and the auditor has accepted the evidence format.
How evidence work differs for single-tenant and partitioned deployments
When each customer gets its own HAPI FHIR server and database, the isolation question is answered by architecture. Access control testing focuses on the perimeter, the identity provider, and the administrative paths into each instance. The system description can list every environment, and the auditor can sample one or more of them. The cost is operational: more instances to patch, back up, monitor and review, and each one needs its own evidence trail.
- Access reviews: Confirm who holds administrative access to each instance, the database and the hosting account, and whether those lists are reviewed per environment.
- Logging scope: Audit logs from each server, database and reverse proxy must be collected and retained for every customer environment, with a clear owner for each.
- System description: Document the instance count, hosting locations and the standard deployment pattern, then explain how new instances are provisioned through a controlled process.
- Change management: Each upgrade must be tracked per instance, so the change record shows which customers received a given HAPI FHIR version and when.
- Backups: Restore tests should cover at least a sample of customer instances, with results recorded per environment.
Before the audit, ask the auditor which environments they plan to sample and confirm your inventory of instances matches the system description.
A shared server that uses HAPI FHIR JPA partitioning places each resource in a partition. Partitions can support multitenancy, separate data sources or group data by region. That organization is useful for operations, but it is a data-organization feature, not an isolation guarantee. The auditor will expect you to show that a request from one tenant cannot read or change another tenant's data, and that the application enforces this. Partition settings alone do not provide that proof.
- Access control testing: Testers will try cross-partition requests, including searches, includes, history and bulk operations, using accounts from different tenants. Authorization must be enforced in the server layer, not only in the client.
- Logging scope: Audit records must identify the tenant or partition for each access, so the logs can be filtered per customer during an investigation or a customer inquiry.
- System description: Describe how partitions map to tenants, how partition assignment is set and protected, and which shared components sit underneath every tenant.
- Change management: A single upgrade affects every tenant at once, so the test evidence and rollback plan must cover the whole shared population.
- Backups and restores: Restoring one tenant's data from a shared database needs a tested procedure, and restore tests should show that other tenants' data is not affected.
Ask the auditor early whether they will accept partition-level testing as evidence, and confirm this with your own testing before the observation period starts.
Auditors assess the design and operation of controls against the Trust Services Criteria, including the logical access criteria in CC6 and the change management criterion in CC8. For a shared platform, they look for evidence that tenant boundaries are enforced and monitored, not just described. Your Type 2 evidence must show the controls working across the whole observation period, so the chosen deployment model shapes the sampling and the populations you need to produce.
- Population definition: Single-tenant deployments produce one population per customer environment, while a shared server produces one population covering every tenant's accesses.
- Sampling: Auditors select samples from the populations you provide, so the record format for each tenant must be consistent and retrievable.
- Test of isolation: For a shared server, expect requests designed to cross tenant boundaries, and keep the results and remediation records.
- Scope statements: Shared infrastructure, such as the database, identity provider and log store, may fall in scope for every tenant, so the system description must name them.
- Complementary controls: Where customers rely on their own controls, such as user account management in their identity provider, document those responsibilities clearly.
Write down the deployment model in the system description and check that every control narrative matches it.
The deployment model is a design decision with compliance consequences, so it should be recorded before the audit window opens. Change it later and the evidence trail changes with it. Teams often move from a shared server to dedicated instances for larger customers, or the reverse, so the process should cover both paths. Document the trade-offs in plain language so that security, platform and audit teams agree on the same facts.
- Decision record: Note the isolation approach, the reasons for it, and the customers or data types it applies to.
- Hybrid models: If some customers run on dedicated instances and others share a server, list each model separately in the description.
- Migration between models: Treat a move between models as a significant change, with its own approval, testing and evidence.
- Customer commitments: Contract language about data location, isolation or deletion must match what the platform actually does.
- Verification plan: Agree with the auditor, in advance, which tests will prove isolation in your chosen model.
Before finalizing the model, ask your auditor and your HAPI FHIR implementation partner to confirm which isolation tests they will run and which evidence each one produces.
Questions SaaS teams ask before a SOC 2 on HAPI FHIR
Is HAPI FHIR SOC 2 certified?
No. HAPI FHIR is open-source software licensed under the Apache Software License 2.0, and it does not hold a SOC 2 report. SOC 2 examines a service organization, meaning the company that runs the system for its customers. Your SaaS product is the system in scope, and the examination covers your people, processes, infrastructure and the way you operate the HAPI FHIR server around them. The auditor will want to see how you configure, deploy, change and monitor the platform, not a certificate attached to the library.
What is the difference between a SOC 2 Type 1 and Type 2 report?
A Type 1 report describes your system and whether your controls are suitably designed as of a specific date. A Type 2 report adds an opinion on whether those controls operated effectively over a period. The Type 2 period is what drives most of the extra effort, because the auditor samples evidence across the whole window, such as access reviews, change tickets and backup restores. Ask the CPA firm for its own estimate of hours and calendar time, and ask which evidence it will sample and over what period. No fixed timeline applies to every platform.
What drives the cost of a SOC 2 examination on HAPI FHIR?
Two cost groups apply. The CPA firm charges for the examination itself, and your team or a partner charges for preparing controls and evidence. Scope is the main driver: how many Trust Services Criteria categories you include beyond security, how many systems and environments sit in the boundary, and whether you run a Type 1 first. Evidence quality also matters, because manual screenshots take more time than evidence exported from tickets, logs and infrastructure code. When requesting quotes, ask each provider to list its fees, assumptions and exclusions separately.
Can our team prepare for a SOC 2 on HAPI FHIR internally?
Many teams can, provided they have an owner for the control set and time from engineering and security. The work includes mapping controls to the common criteria, documenting the system description, collecting recurring evidence and running a readiness check before the auditor arrives. Teams that have not run an examination before often underestimate the evidence routine. A practical check is to ask whether one person can produce a full access review, a sample change record for a HAPI FHIR upgrade and a backup restore report within a week without rebuilding the process.
What do engineering, security and the CPA firm each need to provide?
Engineering provides the architecture diagram, deployment configuration, change pipeline records, monitoring and backup setup, and the list of systems in scope. Security provides the policies, access review process, logging standards, vulnerability handling and incident records. The CPA firm defines the examination scope, the period, the sampling approach and the list of evidence it will test. Agree on that list early. Engineers should know which HAPI FHIR settings, such as authorization interceptors, audit logging and database backup jobs, must be shown as operating throughout the period.
How do HAPI FHIR upgrades affect SOC 2 evidence?
Each upgrade is a change that auditors can test. Keep a record for every change: the release reviewed, the reason for the upgrade, the test results, the approval, the deployment date and the rollback plan. Database schema migrations and Java runtime changes need the same treatment, since a JDK requirement change can alter the build and deployment path. Releases such as v8.8.2 should be logged with the version deployed in each environment, so the auditor can match production state to approved changes during the Type 2 period.
Does DeployOpen issue the SOC 2 report?
No. DeployOpen does not issue SOC 2 reports, attestations or certifications. An independent CPA firm performs the examination and issues the report. DeployOpen can plan, implement, harden and document the self-hosted HAPI FHIR environment and prepare the systems, controls and evidence that the examination tests. Confirm the scope of that work in a written agreement before it starts, and confirm with your CPA firm which evidence it expects to receive.
How DeployOpen works on this
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, so the controls and evidence an auditor samples come from the system you run. For HAPI FHIR, that means agreeing the audit scope first, building the controls around the server, and handing over records your team can keep producing after the engagement ends.
How we scope
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
- We map which systems, data stores and environments fall inside the SOC 2 system description and which Trust Services Criteria apply.
- We confirm with your auditor which evidence periods and sampling populations they expect for each control.
How we build
- We set up the HAPI FHIR JPA server, database, identity provider and audit logging in your accounts or data centers, with change records for each release.
- We configure access reviews, backup jobs and monitoring alerts so each control produces records automatically.
- We test authorization, audit trails and restore procedures, and document the results against the agreed control list.
How we hand over
- You receive a control narrative, system description inputs and evidence procedures written so your staff can run them.
- Runbooks cover upgrade approval, emergency change, access recertification and restore testing for the HAPI FHIR server.
- We walk your compliance and engineering leads through the evidence set before the auditor's fieldwork begins.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers for the HAPI FHIR platform.
- Retainer work can cover reviewing each upgrade against the change management control and refreshing evidence.
- We do not issue audit reports or attestations, so the independent auditor remains responsible for the SOC 2 opinion.
Sources and further reading
- AICPA 2017 Trust Services Criteria (revised points of focus, 2022) ↗
- NIST Privacy Framework crosswalk to the AICPA 2017 Trust Services Criteria (2023) ↗
- AICPA 2018 SOC 2 Description Criteria (revised implementation guidance, 2022) ↗
- HAPI FHIR security introduction ↗
- HAPI FHIR versions ↗
- hapifhir/hapi-fhir releases (GitHub) ↗

