PostgreSQL or MariaDB for openDesk's Nextcloud and XWiki

For a new openDesk install, PostgreSQL is the engine to evaluate first for Nextcloud and XWiki, backed by a published support window and recovery tooling. An existing MariaDB deployment needs a planned, tested move, sequenced against the openDesk upgrade documentation.

On this page

PostgreSQL or MariaDB for openDesk: which database to plan for Nextcloud and XWiki

For a new openDesk installation, evaluate PostgreSQL first, and treat an existing MariaDB deployment as a system that needs a planned move. openDesk's requirements list PostgreSQL 15 and MariaDB 10 among the external production-grade services it expects you to provide, which means you provision and operate the database yourself. The engine you pick changes three things: how you back up and restore the Nextcloud and XWiki data, how and when you upgrade the database itself, and which team carries the database on call. Before you commit, confirm in the current openDesk documentation which engine each application supports and whether MariaDB has a deprecation timeline, since that timeline sets how urgent a migration is.

PostgreSQL is the stronger default to plan around for two checkable reasons. Its license is the PostgreSQL License, a liberal license similar to the BSD and MIT licenses. Its versioning policy supports each major version for five years after its first release. PostgreSQL 15 is supported until November 11, 2027, and PostgreSQL 18, first released September 25, 2025, is supported until November 14, 2030. PostgreSQL 14 support ended on November 12, 2026, so a new install should not start on that line. Ask your openDesk contact which PostgreSQL major version the release you deploy was tested against, and set your database version to match that answer.

Plan the MariaDB move as its own project. Nextcloud and XWiki both depend on their databases, so the cutover has to freeze writes, move the data, verify row counts and application behavior, and keep a tested rollback. Rehearse the restore on a copy before the production cutover. PostgreSQL's upgrading documentation covers moves between PostgreSQL major versions, including logical replication with several seconds of downtime, but it does not cover moving data from MariaDB, so you must design and test that cross-engine method yourself. Once PostgreSQL runs in production, it does not fail over on its own: detecting a primary failure and promoting a standby needs external tools. Decide those tools, and your continuous archiving and point-in-time recovery setup, before go-live.

Database options for Nextcloud and XWiki and when each fits

This table compares the PostgreSQL majors still in their support window with MariaDB 10 for the databases behind Nextcloud and XWiki. Read each row for fit, support dates and trade-offs, then use the confirm column to check chart support, release testing and your team's skills before you choose. The main takeaway is that PostgreSQL 16, 17 and 18 have the longest published support windows, while PostgreSQL 15 and MariaDB 10 depend on what your openDesk release tests and what your team already runs.

OptionWhen it fitsSupport status and trade-offsConfirm before choosing
PostgreSQL 15Existing PostgreSQL 15 estate or a team that already operates itNamed in openDesk's production service expectations. Supported until November 11, 2027.Confirm each application chart accepts PostgreSQL 15 in your release, and plan the major upgrade before the support end date.
PostgreSQL 16New installs that want a longer support window than 15Supported until November 9, 2028. Requirements name 15, so check the tested version for each app.Confirm the openDesk release you deploy tests PostgreSQL 16 for Nextcloud and XWiki.
PostgreSQL 17New installs that want a later end date with a stable majorSupported until November 8, 2029. Major upgrades need pg_upgrade, pg_dumpall with restore, or logical replication.Confirm the tested engine list in the release notes and the chart values for each application.
PostgreSQL 18New installs that want the longest window and the newest majorFirst released September 25, 2025 and supported until November 14, 2030. Confirm driver and extension compatibility.Confirm openDesk tests PostgreSQL 18 for both applications, and that your team can operate it.
MariaDB 10Existing MariaDB databases and staff who already run MariaDBNamed in openDesk's production service expectations. The end-of-life date is not in our research, so confirm it with MariaDB.Confirm the MariaDB 10 minor line your release tests for each application, and whether a future move to PostgreSQL is planned.
Moving an existing MariaDB databaseDeployments that want to standardize on PostgreSQLMoving between engines is a data migration, not a version upgrade. Plan a rehearsal, a cutover window and a restore test.Confirm the openDesk migration procedure for your release and the application data each store holds.

Why PostgreSQL suits a new openDesk install, and where it needs extra design

PostgreSQL suits a new openDesk install because the PostgreSQL License is permissive, similar to the BSD and MIT licenses, so running it in your own infrastructure adds no copyleft obligations to the database layer. Its lifecycle is also predictable. PostgreSQL releases a new major version about once a year and supports each major version for five years after its initial release. PostgreSQL 15 is supported until November 11, 2027, PostgreSQL 17 until November 8, 2029 and PostgreSQL 18 until November 14, 2030. PostgreSQL 14 support ended on November 12, 2026, so a new build should not start on it. openDesk's requirements list PostgreSQL 15 for production, so confirm the version your openDesk release expects, and plan a major upgrade well before November 11, 2027 if you stay on 15.

PostgreSQL does not fail over automatically. It does not detect a failed primary or promote a standby, so the high availability design needs an external failover tool, plus fencing rules that stop the old primary from accepting writes after promotion. Hot standby servers can serve read-only queries, and you choose between synchronous replication, where a commit waits for standbys, and asynchronous replication, which can lose the latest commits during a failover. Replication does not protect against mistakes. A dropped table or a bad update reaches every standby, so continuous archiving of WAL with regular base backups is what makes point-in-time recovery possible. Restore to a chosen timestamp in a test environment before go-live, and record how long that restore takes.

Settle these items with the team that will run the database before the build starts. Confirm which PostgreSQL major version the openDesk release you deploy expects and whether it has been tested on your target version. Confirm the database and role each openDesk application uses for its connections, and whether PgBouncer should sit in front if many clients connect. Confirm that password logins use SCRAM, since PostgreSQL 18 deprecates MD5 password authentication in favor of SCRAM. Decide where WAL archives and base backups are stored, how long they are kept, and who owns the scheduled restore test. The PostgreSQL continuous archiving documentation explains the mechanics your team will need to verify.

Choosing PostgreSQL or MariaDB for openDesk: the decision path

The diagram starts at one decision: is this a new openDesk install, or an existing one that already runs MariaDB for Nextcloud or XWiki? The new install branch confirms that the chosen openDesk release supports the engine for each application, checks that the PostgreSQL major version is still inside its support window, and then plans high availability and backups. The existing install branch reads the upgrade documentation for deprecation or migration instructions, rehearses the conversion on a copy of the data, and schedules the cutover with a rollback plan ready before the window opens.

Decision path for new and existing openDesk database engine choices.

How to set up PostgreSQL for openDesk's Nextcloud and XWiki

This sequence connects Nextcloud and XWiki to an external PostgreSQL server you run, with one database and one least-privilege role per application, SCRAM password authentication over TLS, and credentials held in Kubernetes Secrets. It ends with both applications running on the database and a tested backup, restore and archive path. Run the steps in dev before production.

  1. Confirm the openDesk release and chart support

    The platform owner confirms, from the openDesk release list, which release you will install, using the latest minor version because only that minor is supported. Read the release notes and the Nextcloud and XWiki chart settings to confirm which database engines and versions each chart supports, and record them in your change ticket. Check: you can name the release, the chart versions and the PostgreSQL major version the release documents for production.

  2. Provision PostgreSQL 15 with high availability

    The database team provisions an external PostgreSQL 15 cluster (or another major still in support) in infrastructure you control, which openDesk's requirements list for production. Check the PostgreSQL versioning policy before you commit: 15 is supported until November 11, 2027, while 14 was supported only until November 12, 2026. Plan high availability now, because PostgreSQL supports hot standbys and synchronous or asynchronous replication but does not detect a failed primary by itself, so automatic failover needs an external tool. Check: a standby streams from the primary, and your failover tool has been tested against it.

  3. Create one database and role per application

    The database administrator creates one database and one login role each for Nextcloud and XWiki. Each role owns only its own database, with no superuser rights and no access to cluster-wide settings, so a leaked credential exposes only one application's data. Revoke the default PUBLIC connect right on each database. Use names that match the application so audit logs stay readable, and keep generated passwords in your secret manager and out of chart values. Check: the Nextcloud role cannot connect to the XWiki database, and the XWiki role cannot connect to the Nextcloud database.

  4. Enforce SCRAM authentication and TLS

    The database administrator sets password_encryption to scram-sha-256 before creating the roles, so passwords are stored as SCRAM verifiers. In pg_hba.conf, both application roles authenticate with scram-sha-256 over hostssl connections only, and the server certificate comes from your internal or public CA, with each client trusting that CA. PostgreSQL 18 deprecated MD5 password authentication in favor of SCRAM, so keep no md5 entries on any major version. Check: a plain connection without TLS is refused, and SHOW password_encryption returns scram-sha-256.

  5. Store credentials as Secrets, then prove in dev

    The platform engineer creates one Kubernetes Secret per application holding its connection details and password. Confirm the key names in the release configuration documentation, then reference those Secret keys from the openDesk environment values, so passwords never appear in values files. Build the same structure in dev, test and prod so only the Secret contents differ. Run the complete sequence in dev first, and repeat it in production only after dev works. Check: the Secrets exist in the openDesk namespace, the values files contain no password, and the rendered manifests show Secret references only.

  6. Deploy and confirm each application connects

    The deployment lead deploys Nextcloud and XWiki from the environment values and watches each startup log as the application connects and runs its schema setup. Confirm the tables were created in the correct database and are owned by the correct role. For Nextcloud, run occ status in the pod and confirm it reports that the instance is installed. For XWiki, confirm startup completes and an administrator can log in and open a page. Check: each application logs a successful database connection and no schema errors, and each schema sits in its own database.

  7. Test backup, restore and continuous archiving

    The database team takes a base backup and confirms that WAL archiving runs to the archive location, following the continuous archiving and point-in-time recovery documentation. Restore that backup into a separate instance so production stays untouched, then recover to a chosen point in time. Point a test copy of Nextcloud and XWiki at the restored database and confirm users can log in and content loads. Check: the restore completes, the application roles can connect, and a test write made after the base backup is recoverable from the archive.

Database security controls to review before go-live

Each control below closes a gap that a database can leave open even when the application itself is hardened. Together they decide who can connect, how the connection is protected, what each application can do once connected, and whether data can be recovered. Confirm each item with your openDesk release and your own database team before go-live.

Password hashing and authentication methods

PostgreSQL documents several client authentication methods, including password, GSSAPI, SSPI, LDAP, RADIUS, certificate, PAM and OAuth. Password logins should use SCRAM (scram-sha-256), because PostgreSQL 18 deprecated MD5 password authentication in its favor. Check that no md5 entry remains in pg_hba.conf on your server. Confirm which methods openDesk supports for the Nextcloud and XWiki connections in your release. If you choose MariaDB, confirm its authentication plugins instead.

PostgreSQL authentication docs

TLS for client connections

Encrypt every connection between the openDesk pods and the database, including traffic that stays inside the cluster. On PostgreSQL, enable ssl on the server and use hostssl entries in pg_hba.conf so that plaintext connections are refused for application users. For MariaDB, require TLS on the application accounts. Check which CA signs the server certificate and that each application trusts it. Add certificate expiry to your monitoring, and confirm with openDesk how it mounts the CA bundle into each application.

Credentials as Kubernetes Secrets with rotation

Keep database passwords in Kubernetes Secrets that openDesk references by name, and keep them out of values files committed to Git. Each application should have its own database user and password, so a leaked credential reaches only one application. Write the rotation procedure before go-live, covering who generates the new password, how the Secret is updated and how each pod picks up the change. Confirm whether each application reloads a changed password without a restart, because that decides how much downtime a rotation causes.

Least-privilege roles per application

Create one database role per application, with rights only on that application's database and schema. No application connects as a superuser, and Nextcloud and XWiki should not use the owner role that administrators use for maintenance. Upgrade jobs may need elevated rights for schema changes, so plan a separate migration role if your process needs one. Confirm with openDesk which privileges its jobs require, then review grants after each release. Review the default privileges on the public schema as well.

Network policies for the database port

Restrict ingress to the database port so that only the application pods can reach it. In Kubernetes, this is a NetworkPolicy that selects the database pods, or firewall rules your network team controls if the database runs outside the cluster. Test that an unlisted pod is refused, and confirm that the connection fails rather than succeeding through a default rule. Compare your rules with the network policy documentation openDesk publishes before you write your own.

openDesk security docs

Encrypted, tested backups with restore evidence

Back up each database to encrypted storage, and keep the encryption keys separate from the backup store. PostgreSQL point-in-time recovery depends on continuous archiving of WAL files, so confirm that archiving runs and that no gaps appear in the archive. Keep restore evidence: schedule restores into a separate environment and record the restore time, the data checks you ran and the application login afterward. Confirm the backup scope for Nextcloud and XWiki with openDesk, since the set of stores each application uses decides what must be restored together.

PostgreSQL archiving docs

PostgreSQL or MariaDB for openDesk when you already run MariaDB

This section does not confirm a migration path for existing MariaDB deployments, so do not assume one. Check the openDesk release notes and upgrade documentation for the release you run today and the release you plan to move to. Look for any statement that MariaDB is deprecated for Nextcloud or XWiki, and for the migration steps that statement specifies. The openDesk release management guide sets the rules that frame this check: only the latest minor version is supported, in-place upgrades between major versions are not guaranteed, and skipping several minor versions may need intermediate steps. The openDesk requirements also list MariaDB 10 among the external services expected for production, so confirm which MariaDB version your databases run before you plan anything.

A database engine change is a separate change from an openDesk upgrade, and it must be sequenced with the upgrades rather than folded into one window. Confirm which minor version the project currently supports, and whether your current release can reach it directly or needs intermediate minor releases first. Apply those steps in order, and only then consider moving Nextcloud or XWiki data from MariaDB to PostgreSQL, and only if the upgrade documentation specifies that path for your target release. Keep the engine change in its own window where possible, so that a failure has one cause to diagnose.

Test every step on a copy before production. Restore a recent backup of the Nextcloud and XWiki databases, along with the object storage and configuration they depend on, into a separate namespace or cluster. Run the openDesk upgrade and any engine migration there, then check logins, file access, XWiki pages and attachments, and the backup job against the copy. Record each command and each value you changed, so the production window repeats only what worked on the copy. If a step does not reproduce cleanly, stop and resolve it before touching production, and ask the openDesk project for guidance on that specific step.

Questions buyers ask before moving openDesk's databases

Who pays for a PostgreSQL or MariaDB move for openDesk, and what drives the cost?

Your organization pays for three separate things: internal staff time, database administration after go-live, and database hosting, which runs in your own infrastructure. The design and migration work is one-time, while staff time and hosting recur. The cost of the move is set by the written scope, and the main drivers are the high availability design, the number of environments (each of dev, test and prod needs its own database), and how much migration is included, such as moving existing data or only building new installations. DeployOpen does not publish a price list, and a quote follows from the written scope. Ask any quote to show design, migration, testing, cutover support, hosting capacity for each environment and expected database administration effort separately, so you can see which items are fixed and which depend on your data volume.

How long does moving openDesk's databases take from start to finish?

No single duration applies to every installation, so the answer depends on how much data each database holds and how long your change window is. Large tables take longer to copy and verify, and the cutover window limits how much downtime the move can use. Ask for a written plan that breaks the work into design, a rehearsal on a copy of production data, the migration run, verification and rollback steps, with an estimate for each. Ask which steps need downtime and which can run while openDesk stays in use. The rehearsal tells you the most, because it measures actual copy and restore times on your own data. Also ask what the plan does if the rehearsal shows the window is too short.

What must our team provide before a database migration for openDesk can start?

Your team provides the infrastructure and access, and the migration work happens inside it. The list is short, but each item needs an owner and a lead time:

  • Database hosts for each environment, running the PostgreSQL or MariaDB version you have chosen, with enough storage for the copy and the backups
  • Network paths from the Kubernetes cluster to each database host, with firewall rules agreed in writing
  • Backup targets that the database servers can write to and restore from, with retention set by your policy
  • A change window for cutover, agreed with the business owner of each application that uses the database
  • Access to the openDesk release notes for the exact release you will run, so the migration follows that release's requirements

Ask for this list in the written scope so every item has a named owner and a date.

Can our own team migrate openDesk's databases without an outside partner?

Yes, if your team already runs PostgreSQL or MariaDB in production, operates Kubernetes and has restored databases from backup recently. The work needs skills in database administration, replication, backup and point-in-time recovery, along with openDesk's Helm and Helmfile configuration. A team without these skills will carry the risk alone. Check three things honestly: whether someone has restored a database under pressure, whether the team has rehearsed a major version upgrade, and who is on call during cutover. A partner fits when those gaps exist or when the team cannot run a rehearsal and the cutover at the same time as its normal work. DeployOpen plans, implements, backs up and documents self-hosted platforms in your own infrastructure under a fixed scope agreed in writing, so you can split the work between your staff and an outside team.

Is PostgreSQL 14 still acceptable for openDesk's Nextcloud and XWiki?

PostgreSQL 14 is out of community support: the PostgreSQL versioning policy lists its end of support as November 12, 2026, and that date has passed. The openDesk requirements name PostgreSQL 15 as the production version, so start from 15 or a later release that openDesk documents for your release. Check the policy when you choose the version, because PostgreSQL 15 is supported until November 11, 2027, and PostgreSQL 18 until November 14, 2030. If you already run 14, plan a major upgrade. PostgreSQL documents dump and restore, pg_upgrade and logical replication as options, and logical replication can keep downtime to several seconds. Rehearse whichever method you choose on a copy of your data before cutover.

Does PostgreSQL fail over automatically when the primary database goes down?

No. PostgreSQL supports hot standby servers, synchronous replication and asynchronous replication, but it does not include software that detects a failed primary and promotes a standby. Automatic failover needs an external tool, and that tool becomes part of what you must test, patch and operate. With synchronous replication, a commit waits for a standby, which protects data but adds write latency and can affect availability when the standby is unreachable, so choose the mode with the people who own your recovery objectives. Applications must also reconnect to the new primary, and the design must say where a connection pooler such as PgBouncer sits. Test failover in a rehearsal, including what happens to writes in progress and to clients that still point at the old primary.

Is MariaDB still supported for the openDesk release we plan to run?

The openDesk requirements currently name MariaDB 10 as the expected production version, but that is only the starting point, and the answer depends on the exact release you will run. Read the openDesk release notes for that release, check for any note about MariaDB or database changes, and confirm the answer in writing with the openDesk maintainers before you commit. Ask the same question for each bundled application that uses MariaDB, because each one has its own database requirements. If a note marks a database as deprecated or replaced, the migration path becomes part of the scope and belongs in the written plan with a stated date for the change. Keep your MariaDB hosts patched in your own environment either way, since the security of those hosts is your responsibility to run.

Limits to confirm in your environment

Each item below is a limit that changes what you can rely on after go-live. Some depend on the openDesk release you deploy, some on the PostgreSQL and MariaDB lifecycles, and some on the edition and support contract you buy. Confirm each one in writing before you size the databases or plan failover.

Engine support per application

openDesk's bundled applications do not all use the same database engine, and the release you deploy sets the mapping from each application to PostgreSQL or MariaDB. Get the per-application table from the documentation for that exact release, then build your database inventory from it. Keep that table in your change record so each monthly upgrade shows any engine change before it reaches production. Include the engine versions each application accepts, since the version list can differ by application.

Requirements docs

PostgreSQL 15 test coverage

The production requirements list PostgreSQL 15 among the external services openDesk expects, but the list alone does not show test coverage for your release. Confirm test coverage for your release in the release documentation before you install. PostgreSQL 15 is supported until November 11, 2027, so plan the major upgrade into your openDesk upgrade cycle well before that date. Ask whether a newer PostgreSQL major is on the test matrix before you choose the version.

PostgreSQL versioning policy

MariaDB deprecation status

MariaDB 10 appears among the production services openDesk expects, and its status can change between releases. Check the current release documentation for the deprecation status and removal date, the applications it affects and the date the project gives for removal. Ask for those dates in writing before you pick an engine for any application. If a deprecation is announced, moving an application to PostgreSQL means re-planning data migration, credentials and backup scope, so schedule that work against the announced date.

Release management docs

No automatic failover

PostgreSQL does not provide automatic failover. It offers hot standby servers and both synchronous and asynchronous replication, but it does not detect a failed primary or promote a standby by itself. Automatic failover requires external tooling that you select, operate and test. Decide who owns promotion, how applications reconnect after a switch and how you prevent two primaries from accepting writes. Rehearse a failover before go-live and record the recovery time you measure.

PostgreSQL failover docs

Community Edition has no SLA

The Community Edition of openDesk is supported only by the community on openCode and carries no service level agreement. Nothing contractual sets a response time, a patch window or an owner for a database incident that blocks users. A Community deployment can still run, but your team carries the full incident response for PostgreSQL and MariaDB, backups included. Decide whether that ownership fits your organization before you choose the edition.

Enterprise Edition docs

Enterprise support scope

Enterprise Edition adds SLA-backed 2nd and 3rd level support and patches, sold as SaaS or for on-premises installation. Whether a problem in an external PostgreSQL or MariaDB service falls inside that support must be stated in the agreed scope. Database incidents must be named in the written scope. Ask the vendor to name the components covered and who owns the external database services. Match that answer to your own database runbook so that no incident falls between two owners.

How DeployOpen works on this

DeployOpen plans and implements the database side of openDesk's Nextcloud and XWiki inside your own infrastructure, with the engine choice, connection settings and backup scope agreed in writing before build starts. Most engagements are fixed-scope, and ongoing upgrades and support are available as a retainer after handover.

How we scope

  • The written scope lists each openDesk application that uses a database, with its engine and version.
  • Engine choice is checked against the PostgreSQL 15 and MariaDB 10 versions openDesk lists for production.
  • Scope also covers client authentication, TLS, credentials as Kubernetes Secrets, backup scope and the upgrade path.

How we build

  • Provision PostgreSQL or MariaDB in infrastructure you control, then point each openDesk application at its external database service.
  • Choose authentication methods such as SCRAM passwords or certificates, and avoid MD5 password authentication.
  • Test replication, failover and point-in-time recovery in staging before the database carries production openDesk data.

How we hand over

  • Handover includes a runbook for connection settings, credentials, backup and restore, and the monitoring you agreed.
  • Restore tests are included in scope and their results are delivered with the documentation.
  • Handover records the PostgreSQL version in use and its support end date, so upgrade planning starts early.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Planned major upgrades can use pg_upgrade, a dump and restore, or logical replication, chosen during scoping.
  • Automatic failover needs external tooling, so the written scope should name who operates it and who gets paged.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.