CKAN for health data portals: publish aggregate statistics and keep patient data out
A health agency that wants to publish statistics openly while keeping unpublished and sensitive material under control should separate the public catalog from the working area inside one CKAN instance. Each dataset can be marked private datasets so that draft tables, unvalidated counts and source extracts stay visible only to members of the publishing organization. Organization roles decide who can create, edit and publish within each organization, so a public health unit can own its datasets while a central reviewer team holds the right to release them. Metadata and DataStore resources reach anonymous visitors and the Data API only after a dataset is made public. Before go-live, decide who holds each role, then test that a browser with no login and an API call with no token cannot see a private dataset or its resources.
For publishers, the change is that a release becomes a deliberate step with a named sign-off. Publishers load aggregate tables, such as counts by district, week and age band, into the DataStore and attach a data dictionary that explains every column, denominator and suppression rule. Reviewers check each table against a written **publication rule} before the dataset is switched to public, and they confirm that no free-text column carries names, addresses or record identifiers. For re-users, the public Data API becomes the main channel, and it reads through the DataStore's read-only user, so queries cannot write to the stored rows. The ckanext-dcat extension adds DCAT metadata so national catalogs and search tools can find the statistics. Confirm which DCAT profile your national or regional reporting requires before you configure it.
Patient-level records do not belong in the portal at all, and that boundary should be written into the publication rule. Publish only aggregate or de-identified outputs, and keep line lists, free-text clinical notes and direct identifiers in the source systems. Whether HIPAA applies depends on whether your organization is a covered entity (a health plan, a health care clearinghouse or a covered health care provider) or a business associate of one. If it is, the 45 CFR Part 164 Subpart C Security Rule covers the electronic protected health information you create, receive, maintain or transmit. Confirm that status and what it means for the portal with counsel before any health data is loaded. Agree small-cell suppression and disclosure rules with your statisticians, since the portal stores and publishes whatever the publishers load.
Which health data rules shape a CKAN for health data portal build
This table lists the health data rules most likely to shape a CKAN portal build and the configuration each one points toward. Start by settling whether the portal holds personal or protected health data, since that answer determines which rows apply in practice. The main takeaway is that identity, roles and database access are where most of these rules meet the build.
| Rule and source | What it asks for | Build consequence on CKAN |
|---|---|---|
| HIPAA Security Rule scope (45 CFR 164.302) | Applies to covered entities and business associates for electronic protected health information they create, receive, maintain or transmit. | Confirm with counsel whether any dataset holds ePHI. Aggregate counts that cannot identify individuals may sit outside scope. |
| Technical safeguards (45 CFR 164.312) | Unique user identification and emergency access are required. Automatic logoff and encryption are addressable, meaning documented decisions are needed. | Named accounts through SSO, no shared logins. Documented break-glass sysadmin access. Session timeout and TLS settings recorded as decisions. |
| Business associate terms (45 CFR 164.314) | Contracts must require Security Rule compliance, flow terms to subcontractors handling ePHI, and report security incidents to the covered entity. | Hosting, managed database and support vendors who can reach the portal sign these terms before access. Confirm the subcontractor chain in writing. |
| GDPR Articles 32 and 34 (CNIL case against Hopital Prive de la Loire) | CNIL fined EUR 500,000 on 3 September 2026 over external access without VPN or multi-factor authentication, where access ignored need to know. | Require SSO with MFA for every editor and admin, reach admin pages only through VPN, and grant organization roles by need to know. |
| NIS2 Annex I, health sector | Lists health as a sector of high criticality, including healthcare providers and manufacturers of certain medical devices and pharmaceuticals. | Confirm whether your organization is in scope under national transposition. Then document incident handling and supplier access for the portal. |
| Regulation (EU) 2025/327, European Health Data Space | Governs how electronic health data is accessed and reused in the EU. | Plan metadata and access tiers for future health data access requests. Confirm timing and obligations with counsel before publishing. |
Configuration of CKAN for health data portals: the modules that matter
Five modules shape how a health portal publishes aggregate statistics, controls access to unpublished data and exchanges metadata with other catalogs. Each one has its own CKAN version support, so check each version against your target CKAN release before you build.
Private datasets and organization roles
Unpublished statistics live in CKAN as private datasets, which only members of the owning organization and named collaborators can see. Map each publishing unit to an organization before loading anything, because roles inside each organization decide who can create, edit and publish. Test visibility from outside the organization: request the dataset page, the search results and the API with a token from an account that should be blocked. Private datasets control visibility only, so content review happens before release.
SAML2 single sign-on
The ckanext-saml2auth extension adds SAML2 single sign-on to CKAN 2.10 and later. It can assign users to organizations and roles from SAML2 attributes, so your identity provider controls membership and manual invites stop being the source of truth. Sysadmin access can be managed through an email list, which keeps platform administration short and reviewable. Check which attributes your identity provider releases, what happens when a user leaves the identity provider, and whether a local recovery account remains.
Extension repositoryDataStore with split database users
The DataStore keeps structured resource data in a separate PostgreSQL database, and it should run with a write user for loaders and a read-only user for the Data API and public queries. Load aggregate health tables through XLoader, the officially supported loader, because DataPusher is now legacy. Confirm the loader works with your target CKAN release, and check that the read-only role cannot write, drop or alter tables. Remove small-cell rows and suppressed values from the source file before loading, since the Data API serves whatever the DataStore holds.
DataStore docsDCAT-AP metadata and harvesting
The ckanext-dcat extension provides DCAT-AP v1, v2 and v3 schemas, DCAT RDF endpoints and an RDF harvester for importing from other catalogs. It is supported on CKAN 2.10 and 2.11, so confirm the extension's status for CKAN 2.12 before you upgrade. Use the harvester to bring in records from national or regional partners, and check that harvested records keep their publisher and license fields. Test the RDF output with a DCAT-AP validator before partners harvest it.
ckanext-dcat repositoryCustom schema for data dictionaries
A custom dataset schema adds the fields health publishers need and default CKAN does not carry: a data dictionary for each column, the population and period covered, and a disclosure note that explains suppression and small-cell rules. Make a field required only where your publishing rules demand it, and keep free text out of fields that could hold identifiers. Confirm that the schema extension matches your CKAN release, then test validation with a dataset that should fail.
Publishing crosses three trust boundaries before reuse
The diagram starts with a publisher signing in through the identity provider and uploading to a private dataset in their organization. An internal reviewer then approves the record, and the approved dataset is made public. The write database user loads its tables into the DataStore from inside the backend boundary. The read-only DataStore user serves the Data API to reusers, so public queries never touch write credentials. Confirm that private datasets stay unavailable through the Data API until approval, and that the read-only user cannot reach unpublished resources.
Trust boundaries for publishing, internal review and read-only public access.
Who sees what: public, internal and approved external access tiers
Public re-users are anyone who can find a dataset without signing in, including journalists, researchers outside the agency, app developers and other catalogs that harvest the portal. In CKAN, a dataset is public when its visibility is set to public within its owning organization, and public datasets appear in search, the Data API and any harvest feed the portal exposes. Only aggregate tables belong in this tier, and the data owner's agreement decides which tables qualify. The points below need to be settled in writing before anyone publishes:
- Visibility setting: the dataset's visibility is set to public by a member with editing rights in the owning organization.
- Suppression rules: the privacy office confirms the minimum cell size and how small counts are masked before the file is uploaded.
- Licence and terms: the data owner selects the licence and any terms of use shown on the dataset page.
- Data dictionary: definitions, units and collection periods are published with each resource so re-users read the meaning the owner intends.
- Downstream catalogs: the owner confirms which harvesters or catalogs may pick up public records, since those copies sit outside the portal's control.
Check that every table in this tier passes the privacy review in the exact form it will be published, because a downloaded public file cannot be withdrawn from the people who already have it.
Internal users are staff who need data the public cannot see yet, such as draft figures, records under review or tables approved only for internal analysis. In CKAN, these datasets are set to private inside their owning organization, so anonymous visitors and users from other organizations do not see them in search or the API. Organization membership then decides who can view and who can edit, which means the tier is only as tight as the membership list. The points below set the boundaries for this group:
- Private visibility: the dataset is set to private, which hides it from anonymous visitors and from members of other organizations.
- Organization roles: CKAN assigns roles such as admin, editor and member per organization. Confirm which role can view, which can edit and which can move a dataset to public.
- Unpublished drafts: draft tables and corrections stay private until the data owner signs off, and the privacy office reviews any field that could identify a person.
- Sign-in source: confirm whether staff use local portal accounts or the agency identity provider, and whether a SAML2 integration is in scope for the project.
- Leaver process: removing a person from the organization belongs on the offboarding checklist, with a named owner for the change.
Confirm who approves each membership change and how often the membership list is compared with current staff roles.
External researchers receive access only after the data owner and privacy office approve a specific request, usually for a stated purpose and a defined set of datasets. In CKAN, the grant is made dataset by dataset: a named account is added as a collaborator on a private dataset, and that person may use an API token for scripted downloads. Nothing in this tier should expose person-level records. If a study needs them, the data belongs in a controlled environment outside the public catalog. The points below describe what the grant must record:
- Collaborator grant: add the named account as a collaborator on the specific private dataset, not on the whole organization.
- Collaborator permission level: CKAN's collaborator settings decide whether the researcher can only read or can also edit, so confirm the level the agreement allows.
- API token: issue one token per person for scripted access, and record who holds it and which datasets it reaches.
- Data use agreement: the signed agreement sets the purpose, retention period, onward sharing rules and breach notice route before the account is created.
- Revocation: removing the collaborator and revoking tokens is the end-of-access step, and the owner confirms who carries it out and how quickly.
Confirm the legal basis for each disclosure with the privacy office, and check that the collaborator list matches the approvals on file.
Compliance considerations for CKAN for health data portals
Health portals sit under several overlapping rules, and these cards separate what applies to a CKAN site from what counsel and assessors must confirm. Each card links a question to CKAN settings, a recent regulatory change, or the evidence an assessor will ask for. DeployOpen prepares controls and evidence, while auditors and assessors issue the reports.
Decide whether HIPAA applies
The Security Rule covers electronic protected health information held by covered entities and their business associates (45 CFR 164.302). A portal that publishes only aggregate counts, with cells too coarse to single out a person, may fall outside the rule. A feed that carries names, record numbers or dates tied to individuals does not fall outside the rule, and that feed may bring the whole CKAN instance into scope. Get a written scope opinion from counsel before the first publication.
Subpart C textMap safeguards to CKAN controls
The Security Rule groups 18 standards across administrative, physical and technical safeguards, with 36 implementation specifications. Map each one to a CKAN control you can show: unique user identification to SSO and named accounts, access control to organization roles and private datasets, and audit controls to web server and PostgreSQL logs. Use NIST SP 800-66 Rev. 2 as the reference for the mapping, and confirm which encryption and logging settings your team configures.
NIST SP 800-66 Rev. 2Track the proposed Security Rule revision
HHS proposed a major Security Rule revision on 6 January 2025 (90 FR 898), aimed at strengthening the cybersecurity of ePHI. As of October 2026 no final rule had been published, and the Unified Agenda projects final action for July 2027. Confirm the current status in the Unified Agenda before you fix a control baseline, and design the CKAN controls so that stricter requirements can be added without rebuilding the portal.
Proposed rule textSize the penalty exposure
For penalties assessed on or after 28 January 2026, the inflation-adjusted HIPAA civil money penalty under 45 CFR 102.3 runs from $145 to $2,190,294 per violation, with a calendar-year cap of $2,190,294. Ask counsel which tier a portal's potential violations would fall into. Keep dated records of scope, access and logging decisions so your team can show how the portal was governed.
Penalty table textRequest evidence of compliance
HHS states that no Security Rule standard requires an entity to certify compliance, and that private certifications do not stop HHS from later finding a violation. There is no HIPAA certificate to check for, so a partner's claim of one should prompt a request for the underlying evidence. Ask for configuration baselines, access reviews, backup restore records and the business associate contract terms required by 45 CFR 164.314. DeployOpen prepares controls and evidence, while auditors and assessors issue reports.
HHS certification FAQPlan HITRUST assessments with external assessors
HITRUST assessments are performed by external assessors, who issue the report, so a partner can prepare the controls and evidence but cannot award the result. Under the HITRUST Assessment Handbook, e1 and i1 certifications last one year and r2 certifications last two years, so plan re-assessment on that cycle. Confirm the assessment type, scope and CSF version with your assessor before you start preparing evidence.
Assessment HandbookWhat goes wrong when personal data reaches the catalog
Personal data usually reaches a CKAN catalog during ordinary publishing work. The first route is small counts. A table of cases by district and age band can point to one person when a cell holds one or two records. The second is free text: a resource description or a dataset notes field can carry a name, a date of birth or an address that a publisher typed without thinking. File names carry the same risk, since a resource called admissions_ward4_smith_2025.csv displays its name on every page that lists it. The controls sit before publication: small-cell disclosure rules set by your privacy officer, a second-person review of descriptions, file names and CSV contents, and private datasets that stay hidden until that review is signed off.
The DataStore adds a second exposure once a file is loaded. XLoader, the officially supported loader, turns an uploaded CSV into a table that the Data API can filter, search and query with SQL. If a file meant to be aggregate contains row-level records, every row becomes reachable through the same endpoints the public uses. Check the file before it is loaded, because a loaded table is easy to forget and easy to query. Use the read-only DataStore user for any public-facing read path so that portal reads cannot write or alter tables, and confirm with your platform team which DataStore endpoints each dataset exposes in your CKAN version. Ask your privacy office which tables may be queryable at all and whether a row-count floor must be applied to aggregate tables before loading.
Access rules are the third failure, and the one regulators have already penalized in the health sector. On 3 September 2026 the CNIL fined Hopital Prive de la Loire EUR 500,000 under GDPR Articles 32 and 34. The authority found that external access to its patient record system lacked VPN and multi-factor authentication, and that access control ignored the care team's need to know. The catalog equivalent is an account or organization role that can see unpublished health datasets without a clear reason to see them. Limit collaborators on private datasets to named people with a stated purpose, keep sysadmin rights to a short list, and turn on access logging so that reviews can answer who viewed what. Confirm with your privacy office who may see unpublished datasets, how long logs are kept, who reviews them, and whether MFA is enforced for every account that can publish or edit at the identity layer.
How a CKAN for health data portals rollout moves from scope to go-live
Each step ends with a written output, so the sequence moves from a signed disclosure register to a tested, backed-up portal with access rules checked end to end. The schedule for each step comes from the written scope agreed before work starts.
Classify datasets and set disclosure rules
The privacy officer, data owners and the DeployOpen team sort candidate datasets into three groups: public aggregate tables, private datasets for unpublished or restricted material, and content that stays out of the catalog entirely. For each dataset the team records an owner, a suppression rule for small counts, the viewers allowed, and a review date. The step closes when the privacy officer signs the disclosure register and every dataset in the build has an approved classification.
Confirm hosting, prerequisites and identity integration
Confirm the target environment in your cloud accounts, data center or air-gapped network before installing anything. Check the stack against CKAN's install-from-source requirements: Python 3.10 or newer, PostgreSQL 12 or newer, Solr 9 (recommended) or Solr 8, and Redis, with uWSGI and Nginx for production. Solr and Redis can run from Docker images tagged per CKAN version if your platform team prefers containers. Record the identity provider, the protocol it speaks, and who administers it. The step closes with a written environment sheet listing versions, network paths and admin owners, reviewed by your security team.
Configure organizations, private datasets, SSO and DCAT
Create one publishing organization for each data-owning unit, and keep every dataset that is not yet approved set to private. Assign collaborators and organization roles, then connect single sign-on. If your identity provider uses SAML2, ckanext-saml2auth supports CKAN 2.10 and later and can map SAML2 attributes to organizations and roles. Enable ckanext-dcat for DCAT RDF endpoints, confirming the DCAT profile and the CKAN version against the extension's documented support. The step closes when test accounts for each role see only the datasets their role allows, in the UI, the API and the RDF output.
Build data dictionaries and load aggregates
Write a data dictionary for each aggregate table covering column names, units, definitions, and the suppression applied to small counts, then publish it alongside the resource. Load the aggregate files through XLoader, the officially supported loader for the DataStore, because DataPusher is now legacy. Confirm the DataStore write user and read-only user are separated so the Data API serves queries without write access. Compare row counts and column totals against the source files, and load only aggregate rows, with no record-level extracts. The step closes when every table matches its source and its dictionary is approved by the data owner.
Run security testing and sample pre-publication review
DeployOpen tests the configured portal against the access model: SSO sign-in and session handling, organization boundaries, and private dataset visibility in the web interface, the Data API, search results and RDF endpoints. The team also checks resource URLs, uploaded files and admin settings for exposure. In parallel, the privacy officer reviews a sample release of each dataset class for small cells, free-text fields and file names that carry identifiers. Findings are fixed, then retested. The step closes with a retest report and a signed approval for the sample release.
Go live with logging, backups and patching
Before publication, turn on logs with a retention period your security team sets, and confirm that PostgreSQL, DataStore and file storage are backed up on a schedule that matches the written scope. Run a restore test into a separate environment and rebuild the Solr search index from a clean state to prove the recovery path. Adopt a patch policy based on CKAN's release policy: the latest patch of the current minor and the previous minor receive security and bug fixes, patch releases avoid breaking changes, and minor releases may include breaking changes. The step closes when a restore test passes and the owner signs the patch calendar.
What buyers ask before hiring a partner for a health data portal
What drives the cost of a CKAN health data portal project?
The cost follows the written scope, and DeployOpen does not publish a price list, so a quote is produced from that scope. The main drivers are the number of dataset types and metadata schemas, whether you need custom extensions or themes, how many source systems feed the catalog, and how much data review and privacy work sits inside the build. Infrastructure is a separate line: you pay for the cloud accounts, data center capacity or air-gapped hosts where CKAN runs. Implementation is one-time work, while hosting, patching, backups and any retainer recur. When you ask for a quote, request a split into design, build, integration, testing, handover and optional ongoing support, and ask which items assume your own team prepares the data. Quotes are only comparable when each one is built from the same scope document.
How long does a CKAN health data portal take to build?
No single duration applies, because timing depends on the scope, the approvals needed and how ready your data is. DeployOpen's engagements are fixed-scope, so deliverables and timelines are agreed in writing before work starts, and the schedule should appear in that document. The factors that move the schedule most are:
- Data readiness: how clean the aggregate tables and data dictionaries already are.
- Approvals: sign-off from data owners, the privacy office and security on each publishing rule.
- Platform decisions: hosting, identity integration and whether a CKAN extension must be built or adapted.
- Testing: checks on access controls and publication rules before go-live.
Ask for a phased plan with a named milestone for each gate, and confirm which gates depend on your teams.
What does a health data portal need from data owners, privacy staff and IT?
The build needs decisions and access from three groups before it starts. Data owners must name the datasets, confirm that each one contains only aggregate figures, and state who may see it. The privacy office must approve the rules for what can be published, including how small counts are suppressed and which fields are excluded. IT must provide the hosting environment, access to your identity provider, network paths, and backup targets. Expect each group to review drafts and make decisions rather than write the portal. Agree one contact per group and keep a decision log from kickoff, because open questions about publishing rules usually hold up the build.
Can our internal team run a CKAN health portal without a partner?
Yes, if your team has the skills and time to run it. The question is whether you can cover each ongoing role. Running CKAN involves a Python web application, PostgreSQL, Solr, Redis, a web server and background workers, and the DataStore uses its own database with a write user and a read-only user. Ongoing roles include platform administration, extension maintenance, upgrades, backups with tested restores, access reviews and security patching. CKAN targets about two minor releases a year, and patch releases must be applied to stay supported. Map each role to a named person, and confirm that coverage holds for the people who would act during an incident, before you decide.
Does publishing aggregate health statistics make our portal subject to HIPAA?
Not automatically. The HIPAA Security Rule in 45 CFR Part 164 Subpart C applies to covered entities and their business associates, and to the electronic protected health information (ePHI) they create, receive, maintain or transmit. A portal run by an organization outside those categories, publishing only aggregate figures, may hold no ePHI, but the answer depends on who operates the portal, what sits behind it, and how the aggregates were produced. Check three things: whether the operator is a covered entity or business associate, whether any record-level data appears in the DataStore, private datasets, logs or backups, and whether small cell counts could identify individuals. Have privacy counsel confirm the classification in writing before the build starts.
Is there a HIPAA certification for a health data portal?
No. HHS states that no Security Rule standard requires an entity to certify compliance, and that private certifications do not prevent HHS from later finding a violation. The HHS Office for Civil Rights enforces the rule through complaints, compliance reviews and audits. Be cautious with any vendor that claims a HIPAA certificate. Ask instead for evidence: a written risk analysis, documented access controls, audit logging design, business associate terms where they apply, and any independent assessment report with its scope. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors and certification bodies issue the reports. A separate framework such as HITRUST offers its own assessments, and those are not HIPAA certificates.
How does the CKAN 2.12.0 release affect our health portal plan?
CKAN 2.12.0 was released on August 26, 2026, together with maintenance releases 2.11.6 and 2.10.11 on the same day. The release that matters depends on the version your portal runs. CKAN's policy supports the latest patch of the current minor version and the previous minor version, so a portal on 2.10 should plan a move and confirm the end-of-support date with the CKAN maintainers. Patch releases do not break backwards compatibility, but minor releases may include backwards-incompatible changes, so 2.12.0 needs its own test cycle. Before you commit to a version, check that every extension you rely on supports it. For example, ckanext-dcat lists support for CKAN 2.10 and 2.11, so confirm its status on 2.12 with its maintainers before you plan around it.
How DeployOpen works on this
DeployOpen plans, builds and hands over CKAN for health data portals inside your own infrastructure, whether that is cloud accounts, data centers or air-gapped networks. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. The work centers on keeping unpublished and personal data out of public view, documenting the data dictionary, and showing who can see what.
How we scope
- Inventory each dataset to confirm it holds only aggregate statistics, and flag any record that could identify a person.
- Confirm which regulations apply, such as HIPAA, GDPR or national health data rules, with your legal and compliance teams.
- Agree the written scope before work starts, covering private datasets, access groups, DataStore loading, SSO and hosting.
How we build
- Deploy CKAN in your infrastructure with PostgreSQL, Solr, Redis and Nginx configured for production use.
- Model private datasets, organization roles and collaborators so unpublished health data stays hidden until it is approved for release.
- Build the data dictionary into a custom metadata schema and load aggregate tables into the DataStore.
How we hand over
- Test access controls with test accounts for each role, including confirmation that private datasets are invisible to anonymous users.
- Document the schema, access model, loading steps, backup and restore procedures and upgrade path for your team.
- Prepare control evidence for your compliance team, which independent auditors assess; DeployOpen does not issue certifications.
How we support
- Offer ongoing support, upgrades and continuous security testing under a retainer after the initial build.
- Plan CKAN patch and minor upgrades against the release policy, checking extension compatibility before each change.
- Retest access controls and metadata handling after each change to catch accidental exposure of private datasets.
Sources and further reading
- 45 CFR Part 164 Subpart C, Security Standards for the Protection of ePHI ↗
- Appendix A to Subpart C of Part 164, Security Standards: Matrix ↗
- 45 CFR 164.314 Organizational requirements ↗
- HHS FAQ 2003: Are we required to certify our organization's compliance with the standards? ↗
- CKAN DataStore extension ↗

