Private datasets in CKAN: what they hide and what they do not
A portal team often holds data that is not ready for the public: a draft that still needs checking, an embargoed release that must wait for a set date, or internal records that were never meant for outside readers. In CKAN, a private dataset is visible to authorized users of its owning organization and hidden from anonymous visitors. The setting applies per dataset, so one organization can publish open datasets and keep others private at the same time. Teams usually need it in three situations: drafting metadata before a release, holding a dataset until an embargo date, and keeping operational or internal records in the portal for the staff who maintain them. For each case, decide which members of the organization must see the dataset and confirm that nobody outside it can.
Private does not mean protected from everyone who has already seen the data. Anything downloaded while a dataset was public, or copied by a harvester or reuse partner, stays where it is when you switch the setting back to private. Members who are allowed to view a private dataset can also copy its files, so the setting limits discovery through the portal, not what authorized staff do with the data. Before you rely on the setting for an embargo, confirm in your version whether direct resource URLs stay reachable without a login, whether Data API and DataStore queries for that dataset follow the same restriction, and whether search results reveal the dataset title to anonymous users. The exact behavior depends on the CKAN version in use, so test it on your own instance before relying on it. The CKAN releases policy explains which releases receive fixes and how they differ.
Run a short anonymous check before each planned release date. Sign out or open a separate private browser window, search for the dataset title and a distinctive word from its description, open its page, request each resource URL, and make an API call without a token. Record what you saw, the CKAN version, and the date, and ask the release owner to confirm the switch to public. Repeat the check after every upgrade, because minor releases may include backwards-incompatible changes that alter access behavior. Patch releases are designed not to break backwards compatibility, but a patch can still change a fix you depend on, so retest after those too. Where the check fails, hold the release and treat the exposure as a publication incident, not a routine edit.
Visibility options for CKAN datasets and when each fits
This table compares who sees and who edits a CKAN dataset under each visibility option, and the governance risk each one carries. Read each row as a default: the more named people a dataset depends on, the more often its access needs review. Choose the least open option that still lets the intended team publish on schedule.
| Option | Who sees it | Who edits it | Governance risk |
|---|---|---|---|
| Public dataset | Anyone, including anonymous visitors, in search and the API | Organization editors and admins | Drafts or errors become visible to everyone as soon as they are published. |
| Private dataset in owning organization | Members of the owning organization and sysadmins only | Organization editors and admins | Access follows organization membership, so staff changes need a review. |
| Collaborator on a private dataset | Named collaborators, in addition to the owning organization | Collaborators with editor rights; member rights allow viewing | Only available if the portal enables it. Each grant needs a named owner and periodic review. |
| Permission labels | Users whose labels match the dataset, as set by your extension | Confirm in your version whether edit rights still come from organization roles | Labels live in the search index, so changes need a reindex. Confirm the setup in your version. |
| Dataset with no owner organization | Anyone the portal's visibility setting allows | Users the portal's unowned dataset settings allow | No organization admin owns the dataset, so no team is accountable for its review. |
How private datasets appear in search, the API and the DataStore
A private dataset should be absent from anonymous search results and from anonymous API calls, and an authenticated user should see it only when their role on the owning organization allows it. Test this before you rely on it. Sign out, search for the dataset title and a distinctive word from its description, and request its package record without a token. Then repeat the same searches as a user from a different organization and as a member of the owning organization. A private dataset that appears in any anonymous or outside view is a finding to fix before an embargoed or internal release goes ahead. Search results are only the first check, because the same dataset can still be reachable through direct API calls and resource URLs, so the checks below cover those paths too.
API calls that carry a token act as the user who owns that token, so the token's scope decides what it can see. A publishing script issued from a sysadmin account can read every private dataset on the portal, while a harvester token from an editor in one organization should not see another department's drafts. Check each token's owner and role before the first call, and confirm the account behind it matches the job. DataStore tables linked to a resource need the same check. The CKAN DataStore documentation describes a separate PostgreSQL database with a read-only user, so test a private resource's rows through the Data API with and without a token, and keep the read-only database connection on an internal network that outside users cannot reach.
Confirm the remaining behavior on your own CKAN version and extensions. Ask whether search, the action API, the DCAT RDF endpoints from ckanext-dcat, and resource download URLs each enforce private visibility, because an extension or a custom route can expose a record that the core checks would hide. Also confirm how the search index is refreshed after a dataset changes from private to public or back. Search results come from the index, so a stale entry can show or hide a dataset incorrectly until it is reindexed. Check the release notes and documentation for the version you run, then test a visibility change end to end on a staging portal before the release date.
How a dataset moves from draft to public release
The diagram starts when an editor in the owning organization creates a dataset with private visibility. Resources and DataStore loads are added while the dataset stays private, so it is hidden from the public. An editor then reviews the record. If the planned release date arrives, the dataset is published. If the release is delayed, it stays private until a new date is set. After publishing, check for unplanned changes. If one is needed, revert the dataset to private. Either path ends with a search index refresh, so check that the dataset appears or disappears in search as expected.
Publishing steps for a CKAN dataset, from private draft to search index refresh.
Setting up a private dataset for an embargoed release
This sequence produces a private CKAN dataset that only the owning organization can reach, with recorded evidence that anonymous visitors, anonymous search and an outside user's API token all fail to expose it. Each step names who does the work and who signs off before any embargoed material is published. Run the checks in your own environment before uploading anything sensitive.
Confirm the CKAN version and extensions
The platform owner records the CKAN version, the installed extensions and any custom authorization or permission label code running on the portal. Visibility behavior can change between versions and extensions, so compare the running version with the CKAN releases policy and the release notes before relying on any check in this sequence. The output is a short configuration record signed off by the platform lead, who confirms that the tests below run against the same portal that will publish the release.
Create or confirm the owning organization
A sysadmin creates the publishing organization or confirms an existing one, then assigns the people who will prepare the release. Organization members, editors and admins control who can see and change private datasets, so list each named user with the role they hold and the reason for it. Give publishers organization roles only, and keep sysadmin rights with the platform team. The output is a membership list approved by the data owner.
Create the dataset as private
An editor or admin in the owning organization creates the dataset and sets its visibility to private before any file is uploaded. Confirm on the dataset page that the private marking is shown and that the owner organization is the correct one, since changing ownership later can change who keeps access. Record the title, owner and embargo note in the release record. The output is a private draft reviewed by the data owner.
Add resources and review metadata
The editor uploads or links each resource and completes the metadata the release needs, keeping embargo conditions in internal notes rather than in fields that anyone can read. Confirm that no resource points to a public copy of the file outside CKAN, and that the resource list matches the release manifest. The output is a complete resource list checked by the data owner, with any external copies removed or flagged for removal before testing begins.
Check the dataset in an anonymous browser
Open the dataset page in a browser session with no login and confirm that CKAN shows a login prompt or a not-found page, with no title, description, resource list or download links. Repeat the check for each resource URL that appears in the resource list. The output is a dated note or screenshot stored with the release record, signed off by the security or compliance lead.
Search anonymously for the dataset title
From a logged-out session, search the portal for the exact dataset title and for a few distinctive words from its description. Confirm that the dataset does not appear in results, facet counts or suggestions. A title that shows up in search can reveal an embargoed release even when the page itself is protected. The output is the search terms, the result count and the timestamp, recorded in the release record and signed off by the security or compliance lead.
Call the package API without credentials
Send an unauthenticated request to the package_show action for the dataset, using its name or identifier, and confirm that the response is an authorization error or a not-found result with no metadata or resource URLs. Also call package_list without credentials and confirm the dataset is absent. Save each request and response, including the status code. The output is the saved evidence, reviewed by the platform lead.
Test token access from a non-member
Use an account that is not a member of the owning organization, create an API token for it, and call package_show for the embargoed dataset with that token. Use a non-sysadmin account, because a sysadmin token will see private datasets by design. Confirm the response does not return the dataset. Repeat the call for any account that is meant to have access so the grant is verified too. The output is the test account name, request and result, signed off by the data owner and the security or compliance lead before a release date is set.
Moving a private dataset to public on a release date
Two routes can move a private dataset to public on its release date. In the first, an editor changes the visibility by hand on the day. In the second, a scheduled process makes the change automatically. The manual route suits a small number of datasets when a named editor will be available on the day to make the change and confirm it. A scheduled change needs three things before the embargo date: a tested job, a named owner who answers for it when it runs, and a rollback plan that returns the dataset to private if the release is pulled or the metadata contains an error. Confirm with your CKAN version and deployment which route is supported, including whether the job can call the API with a token that has rights on the owning organization.
The main risk is a short public window. A dataset becomes visible to anonymous visitors once its private setting is cleared, but the search index must reflect the same change. If the switch runs late, the release appears after the planned time. If the index is stale, search results and listings may still hide the dataset or show the wrong state, so users get different answers depending on where they look. Confirm the change from a signed-out browser session, through both the dataset page and the API, and check search results at the same time. Agree in advance how long a dataset may be public before someone must act, and who decides to revert it.
After the switch, check every resource and DataStore table, not only the dataset record. Confirm that each resource file or link resolves for anonymous users, that no resource points to a location meant to stay internal, and that tables loaded through XLoader can be queried through the Data API with the read-only user. Rehearse the full sequence on a staging portal with the same CKAN version, a copy of the dataset and the same scheduler, and run the rollback at least once. Do the rehearsal well before the embargo date, and record who signs off on the switch and who is called if the rollback is needed.
Where private datasets leak in practice
Private datasets stay hidden in the portal interface, but copies of their data and metadata reach places that do not share the portal's access rules: search indexes, API tokens, database credentials, file storage, metadata exports and backups. Each card names one exposure path, the control to check and the recurring task that keeps it closed.
Search index and cached pages
CKAN keeps a search index, built on Solr, that holds a separate copy of each dataset's metadata, so visibility must be applied there as well as in the database. Check who can reach search results, feeds and sitemaps, and any cached or proxied copies held by a reverse proxy or CDN in front of the portal. Re-check the index after every visibility change and after any restore, and confirm that a private title does not show up in suggestions or listings. Re-check the index after every visibility change.
API tokens with broad rights
An API token acts with the rights of the user who created it, so a token issued to a publishing script can reach every private dataset that user can see. List which accounts hold tokens, which organizations each can write to, and whether each token is still in use. Confirm how token expiry and revocation work in your CKAN version before you rely on them. Tie each token to one named service account and one job. Review the list on a fixed schedule and revoke tokens when a script or its owner changes.
Direct DataStore database access
Tabular resources loaded into the DataStore sit in their own PostgreSQL database, and the Data API reads them through a read-only database user. Anyone who holds that user's credentials, or who can reach the PostgreSQL port from analysts' workstations, BI tools or other application servers, can read rows without passing through CKAN's visibility checks. Confirm the grants in the database itself. Include the DataStore users, their credentials and network paths in each access review.
DataStore docsResource URLs and downloads
A private dataset can still expose its files through resource URLs. If a resource points to a file on a web server, object store or CDN, anyone with the link may be able to download it, whatever the dataset page shows. Trace where each uploaded file is stored, whether the bucket or web root allows public reads, and whether download links can be shared or reused. Storage permissions set the actual access to files. Check them during each visibility review and after any storage migration.
Harvesters and DCAT endpoints
The ckanext-dcat extension can publish DCAT RDF endpoints and import records from other catalogs, so metadata can leave the portal through a route other than the dataset page. Check whether each export filters on visibility, which external catalogs or harvest sources pull from your portal, and whether any sync sends records back in. Test each endpoint with a private dataset before you publish it. Metadata endpoints republish whatever they are configured to include.
ckanext-dcat repositoryLogs and backups
Logs and backups copy data outside the visibility model. Web server and application logs can record request URLs, which may include tokens or file paths if clients place them there, and database backups contain every private dataset and DataStore table. Ask who can read log storage, how long logs and backups are kept, and where copies are stored. Restrict backup access to the same people who can administer the database. Document who approves a restore and test restores in an environment with the same access rules.
How much effort and outside help do private datasets need in CKAN?
How much effort does setting up private datasets in CKAN take?
The configuration is small, but the effort sits in testing and governance. A single site with one organization needs little more than the right roles and a clear rule for which datasets start private. Effort grows with the number of organizations, the extensions in use, the single sign-on setup and any harvesting that brings in datasets from other catalogs. Plan time to check that search, dataset pages, the API and downloads all respect visibility, because these paths do not always behave the same way. Ask the provider to split the work into configuration, testing, documentation and handover, and to mark which parts are one-time and which repeat at each upgrade.
How long does it take to confirm private dataset behavior on our CKAN version?
The duration depends on your CKAN version, your extensions and your environments, so ask for it in the written scope and do not accept a generic figure. Confirming behavior means testing anonymous visitors and each role (member, editor, admin and sysadmin) against search results, dataset pages, the API and any DataStore resources. The number of roles, access paths and extensions decides how long that takes, and a test portal with a copy of your configuration shortens the feedback loop. Version matters: CKAN 2.12.0 was released on August 26, 2026, with maintenance releases 2.11.6 and 2.10.11 the same day. Check the CKAN release policy to see which minor versions still receive security fixes, then confirm behavior on the exact version you run.
What does a CKAN private dataset project need from our own team?
Your team supplies decisions, accounts and a calendar along with server access. Four parts matter most:
- Owners who decide which datasets are private, how long they stay private and who may see them.
- Organization admins and editors who hold roles and are trained on what each role can do.
- A test portal close enough to production to check visibility, with a test account for each role.
- A release calendar for embargoed datasets, with a named person responsible for switching each one to public on the agreed date.
Confirm early who approves changes to roles, because those changes decide who can see restricted data.
Can an internal publishing team set up private datasets without outside help?
A team with CKAN administration skills can often do the core setup alone, provided it has someone who understands CKAN's authorization behavior and can run the test cycle. The gaps usually appear in search index behavior, API responses, harvesting and extension interactions, where a visibility setting looks correct in the web interface but behaves differently elsewhere. Write test cases for each role and each access path, keep them in version control, and rerun them after every upgrade or extension change. Decide before starting who owns backups, the search index and upgrades, because visibility problems often surface after a change to one of those. If none of these skills exists in-house, an outside team can cover the gap within the written scope.
What makes the cost of a CKAN private dataset engagement go up?
Cost follows the amount of configuration, testing and integration in the written scope. The main drivers are:
- Number of organizations and role structures, since each organization adds roles, members and test cases.
- Extensions in use, and whether each supports your CKAN version. The ckanext-dcat extension, for example, lists support for CKAN 2.10 and 2.11.
- Single sign-on, because ckanext-saml2auth can assign users to organizations and roles from SAML2 attributes, and that mapping needs testing.
- Harvesting and DataStore resources, which add more access paths to check.
Setup is usually one-time work. Upgrades, extension updates and continuous testing recur, and DeployOpen offers them as retainers. Your own staff time is a cost too, so include it when comparing options.
What should a written quote for CKAN private datasets include?
A quote follows from a written scope, and DeployOpen does not publish a price list. Ask for a quote that states the CKAN version and extensions in scope, the organizations and roles to configure, and whether single sign-on, harvesting and DataStore access are included. List the test cases, environments and the evidence you will receive, such as configuration records and a test log. Name who performs each step, what you must supply and by when, and which items are excluded, such as upgrades or later role changes. Ask how scope changes are agreed and priced, and which parts recur under a retainer. Most engagements are fixed-scope, so the agreed scope is the basis for comparing bids.
How do I check that a private dataset stays hidden in CKAN search and the API?
Test visibility as each role would see it. Run anonymous requests and authenticated requests for each role against the dataset page, the search results, the package API calls and any resource download or DataStore query. Visibility is applied through the search index, so after a permission change confirm that the index reflects it and that any reindex step your version requires has run. Check your Solr version as well: the CKAN install guide recommends Solr 9 and supports Solr 8. Record each result with the account, endpoint and expected outcome, so a failed check is easy to reproduce on the test portal before anything reaches production.
Limits to confirm in your CKAN version and environment
Private datasets depend on settings that can behave differently across CKAN releases, extensions and hosting setups. The checks below name what to confirm before you rely on visibility, search and embargoes, and who should confirm each one. Record each answer with the versions you tested.
Confirm your CKAN release line
CKAN 2.12.0, 2.11.6 and 2.10.11 were released together on August 26, 2026. The project supports the latest patch of the current minor release and the previous minor release, and an older patch loses support once a newer patch is out. Ask the platform owner to confirm which line you run and whether it sits inside the support window. Minor releases may include backwards-incompatible changes, so plan any move before you rely on private datasets in production.
CKAN release policyReview extensions that touch search
Any extension that changes how datasets are indexed or what metadata they carry can change who sees a private dataset in search results. Typical examples include DCAT harvesters, custom schemas and permission label logic. The extension developer should confirm in writing which fields reach the search index, and the platform owner should test a private dataset as an anonymous user and as a signed-in non-member after every extension change. Record the extension versions you tested.
ckanext-dcat repositoryCheck the search index refresh
A visibility change has to reach the Solr index before search results change, and the delay depends on how your portal runs indexing and background work. Ask the operations lead to measure the delay on a test dataset and to confirm whether any visibility change needs a manual reindex. Solr 9 is recommended and Solr 8 is supported, so confirm which one you run and whether it matches your CKAN release.
Confirm DataStore access follows privacy
Resources loaded into the DataStore are served through the Data API, so a private dataset's rows must stay private there too. XLoader is the officially supported loader, and DataPusher is now legacy. The data platform lead should confirm that the Data API, search and any downloads respect dataset visibility on your version, and that the read-only database user stays internal. Test an anonymous request against a private resource before any release date.
DataStore docsMap SSO groups to roles
With SAML2 single sign-on, group or attribute mapping decides which organizations and roles a user receives, and so which private datasets they can open. The identity team should confirm the attribute names, what happens when a user leaves a group and whether sysadmin assignment comes from a short, reviewed email list. Ask the portal owner to test a removed user's access immediately after the change.
ckanext-saml2auth repositoryDecide how embargoes go public
Do not assume a private dataset will switch to public on its release date. Decide whether that switch is a scheduled job, a manual step by a named editor or a calendar task your team runs. The portal operations lead should confirm who owns the job, how failures are alerted and how each change is logged, and should test the switch on a dummy dataset before anyone relies on it.
How DeployOpen scopes and delivers private dataset setups
DeployOpen plans, implements, customizes, documents and supports self-hosted CKAN inside your own infrastructure, so private dataset settings are designed with your publishing teams, security team and compliance reviewers. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ongoing support is available as a retainer after handover.
How we scope
- The written scope lists which organizations, roles and datasets are private, and which stay public.
- It records who can find, view and edit each private dataset, including collaborator and sysadmin access.
- It defines how private datasets behave in search and the API, and whether any release date applies.
How we build
- Organization roles, collaborator settings and any permission labels are configured and tested before production changes.
- Search index behavior is tested with private and public accounts, so results match the permissions set in the scope.
- Registration, SSO and API token settings that affect private data access are set in the same build.
How we hand over
- A written configuration record covers each organization, role, dataset visibility setting and the release-date process.
- Test evidence from the access checks is delivered with the record, for your security and compliance teams to review.
- Your administrators receive a walkthrough of how to publish, restrict and release datasets, with the steps documented.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Changes to visibility rules, collaborators or the release process can be reviewed and tested before they go live.
- Each CKAN upgrade is retested against the private dataset cases in the scope before it reaches production.

