Running CKAN as a private internal data catalog: what changes from a public portal
Running CKAN as a private catalog is a decision about audience before it is a decision about software. CKAN is open-source software licensed under the GNU Affero General Public License v3.0, and it can be deployed in your own infrastructure with its access settings tightened. In CKAN terms, a private internal catalog combines four settings: private datasets that are visible only to members of the owning organization and sysadmins, publishing scoped to organizations so each department manages its own records, single sign-on as the only login path, and no public registration. A public open data portal makes the opposite assumption, that most datasets are meant for anyone. Choose the internal model when the purpose is finding and reusing departmental data inside the organization, drafting datasets before release, or sharing data between units that are not authorized to publish it outside.
The attack surface is wider than the web application. Installing CKAN from source requires PostgreSQL 12 or newer, Solr 9 (recommended) or Solr 8, and Redis, and the DataStore is a separate PostgreSQL database with a write user and a read-only user. Solr holds the search index, which includes private datasets, so a person or system that can query Solr directly can see what it indexes. Keep it unreachable from user networks. Background workers that load resources into the DataStore also need network routes to storage and the database. Treat the DataStore read-only user as an internal account, because it is the credential most likely to be reused by analysts with direct database tools. Confirm who can reach that database port and which network segments can call the Data API.
Plan the review around what each component exposes and who can reach it. Before go-live, list every host and port in the deployment, mark which ones are reachable from user networks, and confirm with your network team that only the web front end and your identity provider can reach the application. Test visibility with accounts from two different departments: a member of one organization should not find the other organization's private dataset through search, the Data API or a direct dataset URL. Also confirm that the CKAN version you install is still supported, since the CKAN release policy covers only the latest patch of the current minor version and the previous minor version. Plan patching for the search index, database and Redis as well as CKAN itself. For SSO, ckanext-saml2auth adds SAML2 login on CKAN 2.10 and later, but confirm its attribute mapping against your identity provider before you rely on it.
Which access settings fit which internal catalog
This table compares six access decisions for a CKAN catalog that only staff can reach. For each one it shows when the option fits, what it adds to administration and what to check in the documentation for your CKAN version. Each row is a choice you can make on its own, but the SSO, registration and role choices shape one another, so decide them together.
| Access decision | When it fits | Administration cost | Confirm in your version's docs |
|---|---|---|---|
| Private datasets by default | Drafts, unreleased files and internal-only data that should stay out of public search | Publishers must set visibility deliberately when data is ready for wider release | Default visibility for new datasets, and who sees private datasets in search and the API |
| SSO-only sign-in through ckanext-saml2auth | Staff already sign in to a corporate identity provider | Attribute mapping, testing with each department and a documented fallback admin path | How SAML2 attributes map to organizations and roles, and which CKAN versions the extension supports |
| Disabled or invite-only registration | Only staff with an assigned role should hold an account | Someone must issue invitations and remove accounts when people leave | Whether self-registration is off by default, and how invitations are issued and expire |
| Organization roles per department | Each department publishes its own datasets and has a named owner | Membership changes must follow staff moves, and roles need periodic review | What the member, editor and admin roles can do, and who can grant them |
| Sysadmin group size | A few platform operators need site-wide control for upgrades and support | Every sysadmin can change any dataset, so reviews and offboarding must be prompt | How sysadmins are created and removed, including any email-list management in the SSO extension |
| DataStore read-only user kept internal | Tabular resources are queried by internal users and tools through the Data API | Database credentials and connection settings must stay inside the internal network | How the read-only database user is created, and which connections the Data API uses |
How login, search and the DataStore fit inside your network
The diagram starts with a staff browser outside the firewall and ends at the data stores inside it. Every CKAN service sits in the internal network: the web tier signs users in against the identity provider over SAML2, sends search queries to Solr, and keeps site metadata in the main PostgreSQL database. Redis handles background jobs and caching. Resource rows live in a separate DataStore PostgreSQL database, where a write user loads data and a read-only user serves the Data API. Check that your identity provider is reachable inside the network, because a hosted provider would send sign-in traffic across the boundary.
Every CKAN service and data store sits inside the internal network.
Why SSO-only sign-in changes the operating model
Single sign-on moves identity lifecycle work (joiners, movers and leavers) out of CKAN and into the identity provider that already holds your staff records. When SSO is the only way in, granting access means adding someone to the right directory group, and removing access means disabling the directory account. CKAN then needs no separate password reset, manual user deletion or catalog-specific offboarding step. For an internal catalog this matters because private datasets are only as protected as the accounts that can reach them, and a leaver who keeps a working catalog login is a risk that private visibility cannot close on its own. The ckanext-saml2auth repository documents an extension that adds SAML2 single sign-on to CKAN 2.10 and later. Confirm the supported CKAN version in that repository before you choose it, because your installed CKAN minor version determines which extension release you can run.
The extension also governs the attributes that decide what a user can do. According to its documentation, it can assign users to CKAN organizations and roles based on SAML2 attributes, so a department group in your identity provider can map to the matching organization and role in CKAN. It can also manage sysadmins through an email list, which keeps site-wide administration in one short, reviewed list instead of ad hoc promotions made inside the application. The attribute mapping is where access decisions are really made, so the identity team and the catalog owners need to agree which attributes the provider emits, which of them are trusted enough to grant write access, and who may change the mapping later.
The trade-off is fewer local passwords in exchange for a hard dependency on the identity provider. If the provider is down, a user's assertion is malformed, or an attribute name changes, sign-in can fail or roles can drift without an obvious error. Plan a documented break-glass path for a sysadmin account that does not depend on the provider, and decide how existing local accounts are handled when SSO is switched on. Before relying on the setup, test a joiner, a mover and a leaver end to end in a non-production CKAN instance, and check the resulting organization roles and sysadmin status for each. Ask the identity team to confirm which SAML2 attributes the mapping reads and how the sysadmin email list is maintained, since both will need an owner after go-live.
Setup sequence for a private internal CKAN catalog
This sequence takes a CKAN installation from a pinned version to a catalog where each department sees only its own private datasets, and where accounts come only from the identity provider. Each step ends with a check that someone on the team can repeat, so the sign-off records evidence that access works as designed.
Confirm the target CKAN version and support window
The platform owner selects the CKAN minor version and patch before any build starts, then checks the CKAN release policy for how long that line receives fixes. The tech team supports the latest patch of the current minor version and the previous minor version, and an outdated patch loses support once a newer one is released. CKAN 2.12.0 was released on August 26, 2026, together with 2.11.6 and 2.10.11, so the team chooses among the current and recent lines. Minor releases may include backwards-incompatible changes, so record the version, patch and planned review date in the build record. Done when the approved version and its support end point are written into the project plan.
Provision the core services in your infrastructure
The infrastructure team builds the application host and the services CKAN depends on inside the client's own cloud accounts, data centers or air-gapped network. A source installation needs Python 3.10 or newer, PostgreSQL 12 or newer, Solr 9 (recommended) or Solr 8, and Redis, with uWSGI and Nginx recommended for production. If you run Solr or Redis in containers, choose the image tags that match your CKAN version. Restrict each service to the CKAN hosts so that the search index and database ports stay off the general network. Done when each service reports its version from its own host and the CKAN host can reach all of them.
Connect the identity provider over SAML2
The identity team registers CKAN as a SAML2 service provider, and the CKAN team installs the ckanext-saml2auth extension, which adds SAML2 single sign-on to CKAN 2.10 and later. The extension can assign users to organizations and roles from SAML2 attributes, so agree the attribute names and their values with the identity team before mapping them. Confirm that the identity provider is the only login path. Done when a test user from each of two departments signs in through the provider and the CKAN user page shows the organization and role that match that user's directory attributes.
Turn off public self-registration
The CKAN team disables self-registration in the site configuration, so accounts can only be created through the identity provider mapping from the previous step. Remove any sign-up link from the templates in use, and confirm the setting name in the documentation for your installed version. Test by opening the site in a private browser window and checking that no sign-up form appears. Then request the registration page URL directly and confirm that CKAN refuses it. Done when both checks pass and the result is recorded in the build log.
Define organizations and their member roles
The governance lead creates one CKAN organization for each owning department and agrees who holds the member, editor and admin roles in each. Keep admin rights to a few named people per organization, and assign the editor role only to staff who publish datasets. If SAML2 mapping is in place, drive these roles from the same attribute list so that access is maintained in one place. Test by signing in as one editor from each department and confirming that the add dataset control appears only for that person's own organization, and that a plain member cannot change organization settings. Done when department heads approve the role matrix in writing.
Create private datasets and test visibility
Publishers in each organization create datasets with visibility set to private, and the test team then checks what each account can see. Sign in as a non-admin account from a department that does not own the dataset, run a search in the web interface, and call the package search action of the API with that account's token. The dataset should be absent from both results. Repeat the check with a member of the owning organization, who should see the dataset, and with an unauthenticated API call, which should also return nothing private. Done when every result matches the role matrix for each department pair tested.
Set up the DataStore with separate users
The database team creates the DataStore database and two PostgreSQL roles: a write role that the loader uses to store resource rows, and a read-only role that the Data API uses to answer queries. Store both credentials in the deployment secret store and keep them out of the site configuration file. XLoader is the supported loader for the DataStore, so use it for test uploads. Connect with the read-only role and attempt an insert and a table drop on a DataStore table; the database should refuse both. Done when a test CSV loads through the write path and the Data API returns its rows through the read-only path.
Confirm the sysadmin list
The governance lead signs off the named sysadmins, and the platform team checks that the live account list matches that sign-off. Keep the group small, and where SAML2 is in use, manage sysadmins through the email list that the extension reads so the list stays in one place. Remove any test accounts created during the build. Check by signing in as a non-admin account and confirming that the site administration pages return access denied, then comparing the sysadmin list in the admin interface with the signed-off list. Done when both lists match and the sign-off is filed with the build record.
Security controls for a private CKAN catalog behind the firewall
Security reviewers test a private CKAN catalog by asking whether internal data stays internal, who can change access, and how changes are traced. These six controls cover the DataStore, administrator rights, search exposure, the SAML2 trust relationship, patching and logging. Each rests on behavior CKAN documents, but the result depends on your version and configuration, so validate each control in your own environment before the review.
Keep the DataStore read-only user internal
CKAN's DataStore keeps structured resource data in a separate PostgreSQL database with a write user and a read-only user, and the Data API runs its queries through the read side. Treat the read-only credential as an internal secret. It should live only in the CKAN configuration on hosts you control, stay out of scripts and shared documents, and have no network path from outside the firewall. Confirm which connection the Data API and SQL queries use in your configuration. Then check the database grants directly, because PostgreSQL decides what the role can read.
DataStore docsRestrict sysadmin rights
Sysadmins sit above organization roles, so one extra sysadmin account can read and change datasets in every department. Keep the group small, with one named account per person and no shared logins. If you use ckanext-saml2auth, review how it assigns sysadmins from an email list, because that list becomes an access control file. Check that routine publishing runs through organization admin or editor roles instead. Ask who can edit the list, how changes are approved, and how often your security team reviews the current sysadmin accounts.
Test private dataset exposure
Private datasets should not appear in search pages, search API results, or dataset lookups for users outside the owning organization. Test as an anonymous visitor, as a logged-in user with no organization, and as a member of a different department. Run the checks through the web interface and the API, with and without a token. Include DataStore queries for private resources, because a dataset page can be hidden while its data remains reachable. Repeat the tests after upgrades, after membership changes and after any search reindex, and keep the results as review evidence.
Protect the SAML2 trust relationship
With ckanext-saml2auth, CKAN trusts the identity provider to assert who a user is and which organizations and roles that user holds. The signing certificate, the metadata CKAN loads and the attribute mapping together decide who gets in, so a change to any of them is an access change. Confirm that CKAN validates assertions against the identity provider certificate you approved, that only named administrators can change the metadata or mapping, and that a test account from each department receives only its intended organization. Write down the certificate renewal plan before the first renewal date.
ckanext-saml2auth repositoryStay on a supported patch release
CKAN's release policy says the tech team supports the latest patch of the current minor version and the previous minor version. An older patch loses support once a newer patch is out, so falling behind leaves known fixes unapplied. Patch releases do not break backwards compatibility and exclude schema changes and new features, which makes them the smallest change to apply. Minor releases can include backwards-incompatible changes and need a planned upgrade. Record the version you run, and test ckanext-saml2auth and ckanext-dcat against each new patch in a staging copy before production.
Release policyLog administrative actions and access
A reviewer will ask who changed a dataset, who changed an organization, and who signed in and when. Confirm which sysadmin actions, membership changes, sign-ins and API token uses your CKAN version and extensions record, and note any gaps. Send web server access logs and CKAN application logs to a central store outside the CKAN host, with retention set by your policy and write access limited so the platform team cannot edit the history. Then test the trail once: change a dataset, add a member, and confirm each change traces back to a named account.
How publishers, readers and administrators use the catalog differently
Department publishers create and edit datasets for their own organization in CKAN. They need to add datasets, upload or link resources, and maintain metadata for the records their department owns, and they need to review private drafts before release. Their working area should end at the boundary of their organization, so the platform team maps each department to its own organization and assigns roles that match each person's job.
- Their own organization only: A publisher should be able to change datasets owned by their department and nothing else. Test this with one account per department before go-live.
- Private drafts first: Private by default lets publishers prepare metadata and resources before anything reaches readers.
- What they should never see: Other departments' drafts, sysadmin and site settings, the identity provider configuration, and DataStore database credentials.
- What the platform team sets up: Organizations for each department, a named organization admin for each, and SSO sign-in so publishers never hold a local CKAN password.
- Scripted publishing: Issue API tokens only where a department runs a publishing script, and tie each token to a named owner so it can be revoked.
Before go-live, confirm with a test publisher account that a dataset owned by another department cannot be opened for editing.
Internal readers are signed-in staff who search the catalog, open dataset pages and download resources. Their need is findability: they should find the private datasets their role entitles them to see and nothing beyond that. Private datasets are generally visible only to members of the owning organization and to sysadmins, so reader access is largely a membership decision that the platform team should settle before the catalog opens to staff.
- Search and download: Readers use search, dataset pages and resource downloads. Results reflect what each account can access, so confirm them with a test reader.
- Cross-department reading: Decide whether staff in one department should see another department's private datasets. The answer determines how you assign membership and whether any custom access rule is needed.
- Data previews: Readers view tabular data through the catalog's DataStore views and Data API. They never receive the DataStore read-only database user, which stays with internal services.
- What they should never see: Admin pages, user lists with account details, and any private dataset without signing in.
- What the platform team sets up: SSO-only sign-in, registration turned off so accounts come from the identity provider, and a sign-in test for each department's group.
Before go-live, sign in as one reader from each department and confirm they find their own datasets and nothing from a department they do not serve.
Platform administrators run the parts of the catalog that sit above any one department: the sysadmin group with site-wide rights, the link to the identity provider and the upgrade path. Their decisions affect every organization, so they keep the sysadmin list short and separate site administration from organization administration. Managing one department's members should not give anyone site-wide rights.
- Sysadmin membership: Keep the list short, named and reviewed on a schedule you set. The ckanext-saml2auth extension can manage sysadmins from an email list, but confirm its options against your CKAN version before relying on it.
- Identity provider link: Map identity provider groups to organizations and roles, and confirm that disabling someone in the identity provider removes their CKAN access.
- Upgrade discipline: CKAN patch releases do not break backwards compatibility, while minor releases may include backwards-incompatible changes, so schedule minor upgrades as projects with their own test plan.
- What they should never see: Shared administrator logins, and the DataStore read-only credentials kept for internal services. Each administrator should sign in with a personal identity so changes can be traced to a person.
- What the platform team sets up: A backup and restore test before each upgrade, and a staging copy of the catalog for upgrade rehearsals.
Before go-live, confirm that removing a person from the identity provider removes their CKAN access and that the sysadmin list matches the approved owners.
Limits to confirm in your environment before go-live
These five checks depend on your CKAN version, your extensions and how your departments publish data. Confirm each one before go-live and record the answer, because several of them change when you upgrade. Store the answers in your upgrade runbook as well as your go-live checklist.
Check SSO support for your release
Single sign-on for a private catalog usually depends on an extension, and extensions track CKAN releases on their own schedule. The ckanext-saml2auth extension adds SAML2 sign-on to CKAN 2.10 and later, but that range does not confirm support for your build. Confirm that the extension version you pin lists your exact CKAN release, including 2.12.0, released on August 26, 2026, alongside 2.11.6 and 2.10.11. Also confirm that your identity provider sends the attributes you need to assign organizations and roles.
saml2auth repositorySearch index and private datasets
Search results for private datasets come from the search index, so an index that is out of step with the database can show or hide datasets incorrectly. Confirm how your CKAN version indexes private datasets, and test what anonymous users, collaborators and users from other departments see in search and in the API. Also confirm how often the index needs a rebuild in your setup, including after bulk edits, permission changes and restores, and who owns that job. Solr 9 is recommended for source installs, so confirm the Solr version you run.
Install from source guideDataStore loader and file types
Tabular resources reach the DataStore and Data API only if the loader processes them. XLoader is the officially supported tool for loading uploaded or linked files, and DataPusher is now legacy, so confirm that XLoader handles the file types your departments publish. Build a list of those formats per department, then load a representative file of each into a staging catalog. Also confirm how failed loads are reported to publishers, since a resource can look published while its rows are missing from the Data API.
DataStore docsFederation with other catalogs
Internal catalogs often need to exchange metadata with catalogs run by other departments or agencies. The ckanext-dcat extension provides DCAT-AP v1, v2 and v3 schemas, DCAT RDF endpoints and an RDF harvester, and it is supported on CKAN 2.10 and 2.11. Confirm which DCAT profile your partners use, whether your CKAN version is covered by the extension, and whether harvesting from another catalog can pull in datasets that should stay private. Federation also needs a decision on which side owns each harvested record.
ckanext-dcat repositoryExtension fit across upgrades
CKAN patch releases do not break backwards compatibility and exclude schema changes and new features, while minor releases may include backwards-incompatible changes. Confirm that each extension you run has a version for your target minor release before you schedule the upgrade, and test the extensions on a staging copy first. CKAN supports the latest patch of the current minor version and the previous minor version, and older patches lose support once a newer one is out, so confirm who runs patch windows and how quickly they can apply them.
CKAN release policyHow much effort and cost does a private internal CKAN catalog take?
What drives the cost of a private internal CKAN catalog?
Five components drive the total: infrastructure, identity integration, custom authorization, testing and ongoing patching. Infrastructure covers the web and background worker tier, PostgreSQL, Solr and Redis, all running in your cloud account, data center or air-gapped network. Identity integration is often the largest variable, especially when the identity provider needs SAML2 attribute mapping for departments and roles. Custom authorization adds work only when the built-in organization roles cannot express your access rules. Testing covers sign-in, private dataset visibility, search results and API access before go-live. Patching recurs for as long as the catalog runs. Ask for the quote to separate one-time build work from recurring operations so you can compare it with your own team's effort.
Can our own team run a private CKAN catalog without outside help?
Yes, if your team already runs Linux services in production, but the stack needs several skills at once. Expect to install and operate Python 3.10 or newer, PostgreSQL 12 or newer, Solr 9 (recommended) or Solr 8, and Redis, with uWSGI and Nginx recommended for production. Staff also need working knowledge of SAML2 single sign-on, usually through the ckanext-saml2auth extension, and of search index maintenance. Before deciding, confirm who owns each component, who is on call, who tests each patch release and who handles access reviews. A partner can take on the build, the handover and the documentation, or support the running system on a retainer.
How long does a private CKAN setup take in practice?
The timeline depends mainly on the identity provider and the number of departments. An identity provider that already issues the attributes you need connects far faster than one that needs new claims, group mappings or a sign-in flow agreed with another team. Each department adds work for its organization structure, role assignments, membership lists and test accounts. Network approvals, firewall changes and change-control windows often set the pace in regulated environments. No duration is given here because it depends on your environment. Ask for a timeline in the written scope that lists each dependency and the person who owns it, and measure your identity team's lead time first.
What do we need to provide for a private CKAN catalog project?
Four inputs decide whether the build can start on schedule. First, admin access to the identity provider, so the CKAN application can be registered and sign-in tested. Second, attribute mapping decisions that state which SAML2 attributes place a user in an organization, which role they receive and who may hold sysadmin rights. Third, a list of departments and roles that names each organization, its editors and admins, and an accountable owner. Fourth, network and firewall changes that allow CKAN, PostgreSQL, Solr, Redis, the identity provider and users to reach the services they need, along with internal DNS and certificate entries. Agree who approves each change before the build begins.
What recurring work follows a private CKAN catalog go-live?
Recurring work covers patch releases, search index maintenance and periodic access reviews. The CKAN release policy supports the latest patch of the current minor version and the previous minor version, and outdated patch releases lose support once a newer patch is out. Patch releases are designed to keep backwards compatibility and exclude schema changes and new features, while minor releases can include backwards-incompatible changes and need a planned upgrade. Index maintenance includes reindexing when permission rules or dataset visibility change. Access reviews confirm that departed staff, former collaborators and API token holders have lost access. Plan these tasks as ongoing effort for your team or a retainer.
How is a fixed-scope CKAN engagement agreed before work starts?
Most engagements are fixed-scope, and the scope, deliverables and timelines are agreed in writing before work starts. The written scope should list the components to deploy, the identity integration, the authorization rules, the test cases, the handover documents and the acceptance checks. It should also list what the client provides and what is out of scope, such as data migration or custom extensions. DeployOpen does not publish a price list, so the quote follows from that written scope. Ongoing support, upgrades and continuous testing can be added as separate retainers. Before signing, ask for named deliverables for each phase and a written process for handling scope changes.
What should a quote for a private CKAN catalog include?
A useful quote separates one-time build work from recurring operations and names each deliverable. For the build, ask for the installed components, the identity integration and attribute mapping, the custom authorization work, the test scope and retest, the documentation and any training. For recurring work, ask for patch management, index maintenance, backups, access reviews and the support hours or response expectations. Any service levels should be written into the document and confirmed before signing. Also ask which client-side tasks the quote assumes, because those assumptions determine whether the timeline holds.
How DeployOpen scopes and delivers a private CKAN catalog
DeployOpen plans and builds the CKAN catalog inside your own cloud accounts, data centers or air-gapped network, so datasets stay under your control. The work starts from who publishes, who reads and who administers data, then turns those decisions into configured organizations, private dataset defaults, SSO and a read-only DataStore user. Each engagement is fixed-scope, with the scope agreed in writing before work starts.
How we scope
- The written scope lists each department, organization role, and who may publish or administer.
- It also names the SSO provider, the private-by-default rule and whether registration stays disabled.
- Engagements are fixed-scope, and ongoing support is available as a retainer after handover.
How we build
- Install CKAN with its PostgreSQL, Solr, Redis and web server inside your infrastructure, configured for production.
- Set private datasets as the default and map each publishing department to its own organization.
- Connect SAML2 single sign-on, keep the DataStore read-only user internal, and test each access path.
How we hand over
- Documented configuration, role matrix, and sysadmin list, kept in your own repository or document store.
- Access test results showing private datasets stay hidden from users outside their organization.
- Operator notes for adding users, rotating API tokens, and running backups and search index maintenance.
How we support
- Retainers can cover upgrades, extension compatibility checks and patching for your CKAN release line.
- Continuous security testing of the catalog can be added to a retainer, with findings and retests.
- Ask in the quote which release line, upgrade windows and response expectations the retainer covers.

