Connecting openDesk to production PostgreSQL and MariaDB

Learn how each openDesk application points at external PostgreSQL, MariaDB or Cassandra, how credentials are supplied as Kubernetes Secrets, and what the database backup scope must cover.

On this page

How to connect openDesk to external PostgreSQL and MariaDB in production

An evaluation install of openDesk runs its databases inside the cluster, but production expects external production-grade services. In practice, each openDesk application is pointed at an external database service rather than running its own. The openDesk requirements list PostgreSQL 15 and MariaDB 10 among the services a production deployment expects you to supply, alongside Redis, Memcached, Cassandra, an SMTP relay, ClamAV over ICAP, object storage and a TURN server. Which engine each application uses determines the connection settings, the credentials you must create, the backup scope you own and the upgrade path you will follow later.

This page is for the platform team that has moved past evaluation and must decide where each application's data lives. You need it when your organization's database policy requires managed or centrally operated database clusters, when backups must be taken at the database layer, or when you must show a security reviewer how database credentials are issued and rotated. Confirm with the openDesk requirements and the release documentation which applications use which engine in the release you plan to install, because the set of database-backed components and their supported versions change between releases. Check the PostgreSQL 15 and MariaDB 10 versions against your own support plan before you commit, since the supplied PostgreSQL support windows show that version 15 reaches end of support on November 11, 2027.

This page does not give the per-application database settings, the Kubernetes Secret structure or the backup and restore procedure. Those belong to the sibling sections on managing secrets as Kubernetes Secrets, the MariaDB or PostgreSQL choice for Nextcloud and XWiki, and openDesk operations and monitoring. It also does not cover the Cassandra, Redis or object storage connections, which have their own pages. Use the openDesk requirements documentation as the reference for which services must exist before you start, and plan the database sizing and high availability work as a separate decision.

Database engine options per openDesk application

This table lists the three database engines that openDesk's production requirements name, the version stated for each, and the applications you must confirm for your chosen release. Read it before choosing an engine for any application, because that choice determines which Secrets, backups and upgrade paths you operate. The main takeaway is that the per-application mapping must come from the deployment docs for your exact release.

EngineVersion stated in requirementsApplications to confirmDecision it implies
PostgreSQLPostgreSQL 15, supported until November 11, 2027Confirm for each application in the deployment docs for your releasePrefer PostgreSQL where the docs allow it, and schedule the major upgrade path before end of support
MariaDBMariaDB 10Confirm for each application in the deployment docs for your releaseKeep MariaDB only where the release supports it, and check the migration guidance first
CassandraListed as an expected production service; version not stated in the requirementsConfirm which applications connect to Cassandra in your releaseProvision a Cassandra cluster only if a chosen application needs it, and confirm the supported version
Nextcloud and XWikiCan run on PostgreSQL or MariaDBCovered in the sibling topic on PostgreSQL or MariaDB for these two applicationsRead that topic's migration guidance before the first install, since changing engines later is more work
Engine mapping recordPer release, from the deployment docsAll applications using an external databaseRecord the chosen engine, version and Secret for each application before writing any values files

Setup sequence for external database connections

This sequence takes an openDesk deployment from bundled-service assumptions to applications that connect to your own PostgreSQL and MariaDB services, with credentials held in Kubernetes Secrets and each connection verified before go-live.

  1. Confirm database versions and support windows

    Before provisioning anything, the platform team confirms that the database services match what openDesk expects: PostgreSQL 15 and MariaDB 10. For PostgreSQL 15, the PostgreSQL versioning policy lists support until November 11, 2027, and PostgreSQL 14 reaches end of support on November 12, 2026, so a new deployment should not start on a version that is already leaving support. Confirm the MariaDB 10 minor release and its vendor support end date with your database vendor, because this sequence does not carry a supplied MariaDB support window. Done when the versions, support dates and owning team are recorded in the change ticket.

  2. Provision one database and role per application

    The database administrator creates a separate database and a separate login role for each openDesk application that uses an external store, so that a compromised application credential cannot read another application's data. Confirm which applications need PostgreSQL and which need MariaDB or Cassandra against the openDesk requirements documentation for your release, since the set can change between releases. Grant each role access only to its own database and record the naming convention. Done when each role can log in with its password from a database client and cannot see any other application's database.

  3. Store credentials as Kubernetes Secrets

    The platform engineer creates one Kubernetes Secret per application in the openDesk namespace, holding the host, port, database name, username and password. Use the secret names and key names that the openDesk configuration documentation for your release expects, and check them against the chart's values before creating anything, because a misnamed key fails silently at runtime. Keep the password out of values files and any rendered manifests that go into Git. Done when kubectl get secret shows each Secret with the expected keys and the password value is not visible in any committed file.

  4. Point each application's values at the external host

    The platform engineer changes each application's configuration in the environment values files so that it uses the external host and port and no longer deploys the bundled database. Disable the bundled database only for the applications that the release notes allow to run on an external service, and keep the change limited to the database block of each application. Run a Helm diff against the current release and review every changed line, confirming that only database host, port and secret references changed. Done when the diff contains no unexpected changes to images, versions or unrelated settings.

  5. Enable TLS on each database connection

    Where the database service supports encrypted client connections, the platform engineer enables TLS on the application side and on the database side, and supplies the CA certificate that the application trusts. PostgreSQL supports certificate authentication and other client authentication methods, so confirm which method your database team has configured before choosing settings. Keep the CA trust distribution consistent with the internal certificate plan. Done when a connection test from a debug pod with the same CA bundle succeeds with TLS enabled and fails when the wrong CA is used.

  6. Test each connection before deploying

    Before running the full deployment, the platform engineer runs a short-lived pod in the openDesk namespace, mounts the same Secret each application will use, and opens a connection to its database with a standard client. Run one query per role to confirm the login works, the default database is correct and the role has the privileges the application needs for schema creation. Record the result for each application. Done when every application's role connects from inside the cluster and the test pod is removed afterwards.

  7. Deploy and verify each application migrates its schema

    The platform engineer runs the Helmfile deployment for the target environment, then watches each application's startup logs and migration job output until the pods are ready. The database administrator checks that each application database now contains the expected schema objects and that the application roles have not been granted broader rights during migration. Check the application's health endpoint or login page through the ingress. Done when every application pod is ready, every schema is present in its own database, and each application loads a page that reads from its database without errors.

What changes in values files and cluster objects

Pointing openDesk at a production database is a configuration change in the Helmfile and Helm values, not a change to the applications themselves. For each application that uses PostgreSQL, MariaDB or Cassandra, the bundled database is switched off and the chart is given the host, port, database name and TLS settings of your external service. The exact keys differ by application and by release, so copy them from the configuration documentation for the openDesk release you are installing rather than from an earlier environment or memory. Check the database block of each application's values against that release before you render anything, because a key that is silently ignored leaves the application connecting to a bundled service that no longer exists.

Credentials move out of values files and into Kubernetes Secrets. Each application reads its database password from a Secret that you create, or that a secret manager syncs into the cluster, and the values file refers to the Secret by name and key instead of holding the password. This keeps the rendered manifests free of passwords, which matters if you deploy through GitOps, where rendered YAML is often stored in a repository. Confirm which Secret names and keys each chart expects, and agree who owns rotation, since a changed password has to be applied to the Secret and the affected pods restarted before the application can reconnect.

Network policies must allow traffic from the application pods to the database endpoint, and this is the change most often missed. openDesk ships network policies, so a database outside the cluster is unreachable from application pods until you add an egress rule for each application's namespace or labels to the database address and port. Test this from a pod in the same namespace as each application, not only from a workstation, and confirm that the database firewall accepts connections from the cluster's egress addresses. Record each rule with the application it serves so that a later upgrade does not remove it silently.

Securing database credentials and connections

Each openDesk application connects to its own database with its own login, so the credentials, roles and network paths multiply with every application you point at external services. The cards below cover the controls that keep those connections narrow and auditable, and the checks to run before go-live.

Credentials as Kubernetes Secrets

openDesk expects database passwords to live in Kubernetes Secrets rather than in values files, so the chart references a Secret by name and key. Confirm which Secret and key each application reads, and check that no password appears in your committed values files. A separate Secret per application keeps rotation of one database from touching the others. Ask your team how those Secrets are created and by whom.

Requirements docs

Least-privilege database roles

Create one login role per application database, with ownership of that database only and no superuser or cross-database rights. Nextcloud, XWiki and the other applications that use PostgreSQL or MariaDB should not share a role, because a leaked password would then expose every schema. Ask the openDesk team which privileges each application needs during install and upgrade, since schema migrations may require more than day-to-day access. Revoke public defaults you do not need.

openDesk security docs

SCRAM instead of MD5

PostgreSQL 18 deprecated MD5 password authentication in favor of SCRAM, so set password_encryption to scram-sha-256 and configure pg_hba.conf to match SCRAM rules for openDesk's connections. Existing roles created with MD5 hashes need their passwords reset after the change. Confirm the PostgreSQL version your platform team runs, since the supported versions list determines how long each release receives fixes.

PostgreSQL auth methods

TLS for database connections

Require TLS between openDesk pods and the database so credentials and query results do not cross the cluster network in cleartext. Decide whether the server certificate is verified against an internal CA and whether client certificates are used, and confirm each application's chart supports the SSL mode you pick. Store the CA bundle in a Secret and track its expiry alongside your other certificates. Ask the openDesk team which TLS options are tested for each database version.

Certificate auth docs

Network policy scope

Limit database ingress to the pods of the applications that use it, and to your backup and monitoring agents. Network policies in openDesk cover the pods it deploys, but external databases sit outside the cluster, so you must also restrict the database firewall or pg_hba.conf host entries to the cluster egress addresses. Test that a pod from an unrelated namespace cannot reach port 5432 or 3306.

Keeping secrets out of GitOps

Rendered manifests from Helmfile can contain decoded credentials, so committing them to a GitOps repository exposes every database password to anyone with read access. Keep only secret references in Git, pull values from your secret manager or pre-created Secrets, and review any Argo CD or pipeline output before it is stored. Confirm which rendering step writes to disk in your pipeline and who can read its artifacts.

How openDesk applications reach external databases

The diagram starts with openDesk application pods in the cluster, which read their database credentials from Kubernetes Secrets rather than from values files. Traffic then passes through a network policy to the external PostgreSQL or MariaDB service that the application is configured to use. The backup job and the data stores in scope sit in a separate boundary, so teams can check that every store the application writes to is also covered by a backup. Confirm the network policy allows only the intended pods to reach each database port.

Application pods reach external databases through a network policy, with backups covering the stores in scope.

Backup scope that follows the external databases

Moving openDesk's PostgreSQL and MariaDB databases outside the cluster moves their backups with them, but the database is only part of what openDesk stores. The cards below set the database scope, the recovery method, the data stores that sit outside the database, and the checks that prove a restore works.

Every database and role

Back up every database that openDesk applications use on the external servers, along with the roles that own them and their grants. A backup that covers one database but not the role definitions can restore data that the applications cannot log into. Ask your DBA to list each database name and role from the values you configured, then confirm the backup job picks up all of them, not just the default database. Cluster-wide objects such as roles are captured separately from a single database dump in PostgreSQL, so confirm your tool includes them.

Point-in-time recovery through continuous archiving

Point-in-time recovery lets you restore to a moment just before an error, such as a bad migration or an accidental deletion, instead of the last nightly dump. In PostgreSQL this relies on continuous archiving of write-ahead log files alongside a base backup. Decide the recovery window your organization needs, confirm the archive location is separate from the database host, and check that the archive is retained for at least that window.

Continuous archiving docs

Object storage and caches sit outside the database

Database backups do not contain the files that openDesk applications store in object storage, nor the cached data in Redis or Memcached. Nextcloud and other applications keep file content in buckets, so a database restore alone leaves metadata pointing at missing objects. List every object store and cache from your configuration, assign each an owner and a backup method, and keep the database and bucket snapshots taken close enough in time to be consistent.

Restore testing on a separate environment

A backup that has never been restored is an assumption. Schedule restores into an isolated environment, not the production database, and check that each application starts, logs in and reads its data after the restore. Record how long the restore took, since that figure drives your recovery objectives. Repeat the test after each openDesk upgrade and after each change to database versions or extensions.

Operational runbook for database recovery

Write a runbook that names who decides to restore, the order in which applications come back, how the database is brought to the chosen recovery point, and how the applications are pointed at the restored instance. Include the credentials stored as Kubernetes Secrets that must be recreated or reconciled after a restore. Agree the runbook with the operations team before go-live, and keep it next to the openDesk configuration it depends on.

Backup and restore of every data store

The full backup and restore procedure for every openDesk data store, including the databases, object storage, caches and search indexes, is covered in the openDesk operations and monitoring topic. Use this section to define the database scope and the external stores it depends on, then follow that topic for the step-by-step procedures and the order of restore across all components.

Planning PostgreSQL upgrades and high availability

Plan the PostgreSQL service behind openDesk around two clocks: the support window of each major version and the schedule for minor releases. The supplied PostgreSQL support dates list version 15 as supported until November 11, 2027, version 14 until November 12, 2026, and version 18 as the latest major, first released September 25, 2025. Openness to change matters here because openDesk expects PostgreSQL 15 for production, and openDesk's own release cycle moves on its own schedule. Confirm current support end dates on the PostgreSQL versioning policy page before you commit to a major version, and record the date you will need to move off it.

Minor releases are the routine part. PostgreSQL minor releases do not change the internal storage format, so applying one means replacing the executables and restarting the server, not rewriting data. Major upgrades are different. The supplied PostgreSQL upgrade documentation describes three routes: dump and restore with pg_dumpall, pg_upgrade, or logical replication. Logical replication works across major versions and, according to the same documentation, can bring a major upgrade down to several seconds of downtime. Choose the route with your database team before the upgrade window is set, and test it against a copy of the openDesk databases, because the openDesk release notes may require their own steps when a release changes schema expectations.

For availability, PostgreSQL provides hot standby servers that answer read-only queries, and it supports both synchronous replication, where a commit waits for the standby, and asynchronous replication. Each choice trades write latency against the risk of losing recent transactions after a failure. PostgreSQL does not detect a failed primary or promote a standby by itself, so automatic failover requires an external tool that you select, deploy and test. Ask your database operator which tool and which replication mode they will run, and confirm that the openDesk services reconnect cleanly after a promotion.

Questions teams ask before connecting openDesk to external databases

What does it cost to connect openDesk to external databases?

No price is published for this work, so the cost comes from the written scope and the people who do it. The main cost components are the time to plan each application's database needs, provisioning hosts and roles, changing Helmfile values and Secrets, verifying each application against its database, and extending backups to cover every data store. Some of this is one-time work for the first connection, and some recurs with each monthly minor release, each database minor update and each backup restore test. Effort rises with the number of applications that move off bundled services, the number of database instances, the presence of high availability or replication, and how many environments (dev, test and prod) need the same change. Ask any provider for a quote that lists these items separately and states who runs each one.

How long does a database connection change take to plan and verify?

The duration depends on how many applications change, how ready the database platform already is, and how much verification your change board requires. Planning includes confirming which openDesk applications use PostgreSQL, which use MariaDB and which use Cassandra, because each needs its own host, role and database. Verification covers a clean install or restart against the external service, a check that each application starts and reads and writes data, and a restore test of the backups for those databases. A team that already runs PostgreSQL 15 or MariaDB 10 with tested backups will move faster than one building the database service from scratch. Ask for a timeline with milestones for each environment rather than a single end date, and confirm that the plan is tied to the openDesk release you are deploying.

What must the platform team provide before openDesk can use external databases?

The platform team provides four things: database hosts that meet the versions openDesk expects, a dedicated role and database for each application, Kubernetes Secrets that hold the connection credentials, and a backup scope that covers every database. The versions are confirmed in the openDesk requirements, which list PostgreSQL 15 and MariaDB 10 for production. Each application's connection settings reference a Secret by name and key, so the team must agree on those names with the deployment team before the first install. Backups must include all databases, and the restore procedure must be rehearsed, because a database that is not in the backup scope is lost in a recovery. Confirm the exact keys and the list of databases in the openDesk documentation for your release before you create any role.

Can an in-house platform team connect openDesk to external databases alone?

Yes, a capable in-house team can do this work, provided it has experience with Kubernetes, Helm and Helmfile, and with administering PostgreSQL or MariaDB. The skills that matter most are creating roles with least privilege, handling Secrets without writing them into values files, testing restores, and reading the release notes before each upgrade. The work becomes harder when the team is also responsible for the rest of the production services openDesk expects, such as Redis, object storage, SMTP, ClamAV and TURN, because each adds its own connection and backup scope. A partner can take on the planning, the first connection and the verification as a fixed-scope engagement, leaving your team to own the running system. Decide which parts your team will run after go-live before you choose between doing it alone and buying scope.

How do openDesk upgrades interact with database versions?

Each openDesk release expects a specific range of database versions, so a release can require a database upgrade before or alongside it. PostgreSQL minor releases do not change the storage format, so applying them means replacing the executables and restarting the service. Major upgrades are a separate project that uses a dump and restore, pg_upgrade, or logical replication, and logical replication can keep downtime to several seconds. PostgreSQL 14 is supported until November 12, 2026, and PostgreSQL 15 until November 11, 2027, so check your planned release date against those end-of-support dates. Only the latest openDesk minor version is supported, so your database plan should follow the same cadence as your monthly openDesk upgrades.

Does changing the database connection require a new openDesk release?

Not necessarily. Pointing applications at an external database is a configuration change in your environment values, delivered through your existing Helmfile setup and Secret references, so it can be done on the release you already run. It becomes part of a release when the new openDesk version changes database requirements, adds a migration job or changes the names of the settings or Secrets. Read the release notes for each version you deploy and compare them with your configuration before you apply the upgrade. Keep the database change in its own reviewed change so that a problem can be traced to either the connection or the release. Confirm the exact steps for your version with the openDesk documentation or your provider.

Does an openDesk database connection need a support contract?

The Community Edition is supported only by the community on openCode with no SLA, while the Enterprise Edition includes SLA-backed 2nd and 3rd level support and patches. ZenDiS recommends the Enterprise Edition for production. A database connection change can be done under either edition, but the support you have when a connection fails, or when a patch is needed for a bundled component, depends on the edition and contract you choose. Ask whether your database hosts, backups and application connections fall under the same support boundary, because a gap there can slow an incident. Confirm current support terms directly with ZenDiS or your provider before you commit.

Limits to confirm in your environment

The database integration rests on version support, licensing and operating choices that the public materials do not settle for every release. The cards below list what to confirm with ZenDiS or in your own environment before you commit to a design, and before a quote is written against it.

Exact database versions per release

openDesk expects PostgreSQL 15 and MariaDB 10 for production, but the supported versions can change with each monthly minor release. Confirm the exact database versions each application accepts in the release you plan to install, and record them against your upgrade plan. PostgreSQL 15 is supported to November 11, 2027, so check whether your planned operating window extends past that date. Confirm the version matrix for your target release.

Requirements docs

MariaDB deprecation for specific applications

Some openDesk applications may move away from MariaDB, which changes which database engine each application needs in your estate. Ask ZenDiS which applications, if any, have deprecated MariaDB and what migration path and timeline they document. Existing deployments may need a planned data migration, so the answer affects both the initial build and later upgrades.

Requirements docs

Cassandra requirements

Cassandra is listed among the external services openDesk expects in production, but the database work for it is different from PostgreSQL and MariaDB. Confirm which applications use Cassandra, the supported Cassandra versions, the keyspace and replication settings they expect, and whether the Kubernetes Secret layout is the same as for the relational databases. Plan its backup scope separately, since it does not follow the PostgreSQL procedure.

Requirements docs

PgBouncer use with applications

PgBouncer is a connection pooler that can sit between applications and PostgreSQL, which matters when many openDesk pods open connections at once. Confirm with ZenDiS whether each application supports a pooler in front of its database, which pooling mode is compatible, and whether prepared statements or session settings break behind it. Test this in a non-production environment before you route production traffic through it.

PgBouncer project

TLS support per service

Database connections can be encrypted, but each application decides how it validates the server certificate and whether it accepts a custom CA. Check, for every application, whether TLS to the database is required, which certificate chain it trusts, and where the CA bundle is mounted. Your internal CA trust must reach these clients as well as the ingress, so include the database endpoints in your certificate plan.

Enterprise Edition database integration

Enterprise Edition uses the same open-source core but adds closed-source modules, which may have their own database schemas or connection requirements. Ask ZenDiS whether any Enterprise-only component changes the database integration, the required database versions or the Secret keys. If you plan to move between editions later, confirm whether that move requires database changes.

Enterprise Edition docs

How DeployOpen scopes the database connection work

DeployOpen starts this work with a written, fixed scope agreed before any change is made to your environment. DeployOpen plans and implements openDesk on infrastructure you control, so the scope names the systems where the databases run, the cluster that consumes them and the people who approve each step. The first deliverable is a database inventory: every openDesk application that needs an external store, the engine and version it will use, and the database, schema and role each one gets. Several applications expect PostgreSQL 15 or MariaDB 10 in production, and the inventory is where you confirm which engine each application uses against the current openDesk requirements for your release.

The second deliverable covers the Secrets design. The scope defines how each database credential is created as a Kubernetes Secret, which keys each application reads, who can read those Secrets and how rotation will work without a manual edit to values files. It also records whether your organization wants pre-created Secrets from its own secret manager, which changes who owns the credential lifecycle. The backup scope and its verification follow from the inventory. The written scope lists every data store that holds openDesk state, the backup method and retention you require for each, and a restore test that proves the backups work. Ask DeployOpen to show how the restore test will be recorded as evidence.

Once the fixed scope is delivered, ongoing support can be added as a retainer for upgrades, monitoring and database maintenance across openDesk releases. Confirm with DeployOpen, before signing, which items the retainer covers and which fall under a new engagement. Your own cost components are the cluster and database hosting, your staff time for approvals and the operating model after handover. Ask any quote to itemize the inventory, Secrets design, backup and restore verification, and handover as separate lines so you can see what is one-time and what recurs.

How DeployOpen works on this

DeployOpen plans, implements, hardens, backs up, documents and supports self-hosted open-source platforms inside your own infrastructure, including openDesk on Kubernetes. For database connections, we start from your existing PostgreSQL and MariaDB services, map each openDesk application to its database, and hand over the configuration, secrets and backup scope in writing.

How we scope

  • Written scope lists each openDesk application that connects to an external database and the database engine it uses.
  • We confirm your PostgreSQL and MariaDB versions against the versions openDesk documents before any configuration starts.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing, and ongoing support is available as a retainer.

How we build

  • We configure each application's database connection and create its credentials as Kubernetes Secrets, not values files.
  • We test connectivity, authentication method and TLS settings from inside the cluster before any application data is written.
  • We define the backup and restore scope for every database, including the object storage and cache services that sit alongside it.

How we hand over

  • You receive written documentation of every database connection, secret name, key and the environment it belongs to.
  • The handover covers the backup scope, restore steps and the checks we ran, so your team can repeat them without us.
  • Verification results, open items and the upgrade impact of your chosen database versions are recorded in the handover pack.

How we support

  • Support can cover database connection changes during openDesk monthly and major upgrades, scoped in advance.
  • Retainers can include continuous security testing of the openDesk deployment and its database access paths.
  • Ask any partner to confirm response scope, upgrade responsibilities and who holds database administration access in writing.

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.