DVLS 2026.3 Docker image: DATABASE_TYPE=PostgreSQL found in the binary, but not documented - please confirm usage

Resolved

DVLS 2026.3 Docker image: DATABASE_TYPE=PostgreSQL found in the binary, but not documented - please confirm usage

avatar

Hello together,


DVLS 2026.3 added PostgreSQL as a database backend (release notes 2026.3.5.0, and the blog post "Run Devolutions Server on PostgreSQL" of Oct 14, 2026, which also mentions Linux and Docker deployments). The documentation has not been updated for the Docker image yet:


- "Advanced Docker configuration for Devolutions Server" still lists only SQL Server variables (DATABASE_HOST, DATABASE_PORT with default 1433, DATABASE_ENCRYPT, DATABASE_TRUST_SERVER_CERTIFICATE, AZURE_SQL_*) and describes the "SQL Server connection string".

- "Deploy Devolutions Server with Docker" lists an SQL Server instance as the only prerequisite.

- "Install Devolutions Server for Linux" still uses the SQL Server flow.

- "System requirements" only says "PostgreSQL is supported", without supported versions.


I inspected the image devolutions/devolutions-server:release-2026.3 (digest sha256:755c87a8...) without starting it:


- It ships Npgsql.dll and Npgsql.EntityFrameworkCore.PostgreSQL.dll.

- The entrypoint is the DVLS binary itself (--container-entrypoint), so there is no script that shows the variables.

- Devolutions.Server.dll contains a new variable DATABASE_TYPE and the error message "DATABASE_TYPE must be 'SqlServer', 'PostgreSQL', or 'SQLite'". It also contains DATABASE_PATH, DVLS_PG_DUMP_PATH, DVLS_PG_RESTORE_PATH and DVLS_DATABASE_UPGRADE_ON_STARTUP, plus an embedded PostgreSqlBaseline.sql.


My assumption is that the container is configured like this, but I have not confirmed it:


-e DATABASE_TYPE=PostgreSQL

-e DATABASE_HOST=<host> -e DATABASE_PORT=5432

-e DATABASE_NAME=<db> -e DATABASE_USERNAME=<user> -e DATABASE_PASSWORD=<password>


Questions:

1. Is DATABASE_TYPE=PostgreSQL officially supported with the Docker image? What are the exact accepted values (SqlServer / PostgreSQL / SQLite)?

2. How are DATABASE_ENCRYPT and DATABASE_TRUST_SERVER_CERTIFICATE mapped for PostgreSQL (SSL mode)? Are there PostgreSQL-specific variables?

3. Does the database have to exist before DVLS_INIT=true, or is it created automatically like on SQL Server?

4. DVLS_UPDATE_MODE creates a backup: does this need pg_dump / pg_restore (DVLS_PG_DUMP_PATH, DVLS_PG_RESTORE_PATH), and are these tools included in the image or do I have to provide them?

5. Which PostgreSQL versions are supported?

6. Is there an ETA for updating the Docker and Linux documentation?


Environment: Docker (current version) on a Linux x86_64 host, DVLS release-2026.3 (existing SQL Server instance on 2026.3.10.0, PostgreSQL planned only for a new test installation, no migration).


Thanks!

Best regards,

Alex

avatar

Recommended Answer

Hi Alex,


Sorry I didn’t follow up here sooner. The documentation was updated after my first reply, and I should have let you know. Thanks for the detailed test result, they helped a lot. Here are the answers and a few corrections.


1. Role privileges. My earlier answer was wrong, sorry. CREATEDB is not enough, on a fresh database, the schema creation changes PostgreSQL type casts, which requires SUPERUSER. I reproduced it on DVLS 2026.3.11.0 with PostgreSQL 17.11: initialization fails with 42501: permission denied for table pg_cast when the role isn't superuser. What you did is the right workaround:


ALTER ROLE dvls_user SUPERUSER;

-- run the container once with DVLS_INIT=true

ALTER ROLE dvls_user NOSUPERUSER;


DVLS doesn't need superuser at runtime. We've logged this as a bug so that initialization works with a dedicated non-superuser owner role.


2. NOSUPERUSER for future upgrades. Only the initial schema creation needs superuser. The current upgrade steps don't change casts or require superuser, so an instance initialized the way you did should upgrade with a NOSUPERUSER owner, as long as that role owns the DVLS objects (which it does when it ran the initialization). We're fixing the initialization issue and adding a check that runs schema creation and upgrades as a non-superuser role. If a future version ever needs elevated rights for an upgrade, it will be called out in the release notes.


3. SSL mode. I was wrong here too; the documentation is correct. The mapping is:

- DATABASE_ENCRYPT=false → SSL Mode=Disable

- DATABASE_ENCRYPT=true + DATABASE_TRUST_SERVER_CERTIFICATE=true → SSL Mode=Require

- DATABASE_ENCRYPT=true + DATABASE_TRUST_SERVER_CERTIFICATE=false → SSL Mode=VerifyFull


4. Backup. pg_dump and pg_restore are not in the image yet; that's a known issue. The job reporting success and writing a zip without the database dump is a separate problem: it should fail. I am logging that too. Until it's fixed, keep running pg_dump from the PostgreSQL side as you're doing now.


5. DVLS_ENCRYPTION_CONFIG_B64. If App_Data is on a persistent volume, the container works without it: initialization writes encryption.config to App_Data and reuses it on every start. We still recommend setting it, or at least keeping a secure copy of encryption.config outside the volume. That file is the only key to the encrypted data in the database, so if the volume is lost or recreated, the data can't be recovered.


6. Startup warnings behind a proxy. "Failed to determine the https port for redirect" is expected with WEB_SCHEME=http behind a TLS-terminating proxy, and it's harmless.


7. Gateway TLS cipher suites. TLS isn't my area of expertise, so I've asked our Gateway team to confirm the recommended configuration and will update this thread with their answer. From what we've looked at so far: in TLS 1.2, the cipher suite has to match the certificate type, so with an RSA certificate only the ECDHE_RSA_* suites can be used. The five suites you configured don't include any ECDHE_RSA suite, which would explain why RDM on macOS failed over TLS 1.2 while the nine-suite list (which includes the three ECDHE_RSA suites) works. In the meantime, the nine-suite list from the Gateway system requirements page for Devolutions Server is the one to use.


Thanks again for the thorough testing.

Best regards,


Jérémie Perreault

All Comments (7)

avatar

Hi Alex,


Thanks for the detailed report. Your reading of the binary is correct, and the Docker and Linux documentation is behind. Here are the answers:


1. DATABASE_TYPE

Yes, DATABASE_TYPE=PostgreSQL is supported in Docker. Accepted values are SqlServer (default), PostgreSQL and SQLite, case-insensitive. MSSQL and Postgres also work as aliases. Your assumed configuration is right:


-e DATABASE_TYPE=PostgreSQL

-e DATABASE_HOST=pg.example.com

-e DATABASE_PORT=5432 # optional, defaults to 5432 for PostgreSQL

-e DATABASE_NAME=dvls

-e DATABASE_USERNAME=dvls_user

-e DATABASE_PASSWORD='...' # or DATABASE_PASSWORD_FILE


2. SSL

There are no PostgreSQL-specific variables. The existing ones map to the Npgsql SSL Mode:

- DATABASE_ENCRYPT=false (default): no SSL Mode is set, so the Npgsql default Prefer applies.

- DATABASE_ENCRYPT=true and DATABASE_TRUST_SERVER_CERTIFICATE=true: Require (encrypted, certificate not validated).

- DATABASE_ENCRYPT=true and DATABASE_TRUST_SERVER_CERTIFICATE=false: VerifyFull (certificate and host name validated).


3. Database creation

You don't need to create it first. With DVLS_INIT=true, DVLS connects to the postgres maintenance database and creates the target database if it's missing, so the role needs CREATEDB. Otherwise, create the database beforehand with that role as owner. Only a single owner role is supported for now.


4. pg_dump / pg_restore

These tools are not included in the image, so the built-in PostgreSQL database backup won't work out of the box. I've opened an internal ticket to close this gap. Until it's fixed, build a derived image that installs postgresql-client with a major version equal to or newer than your server's. You can also mount the binaries and point DVLS_PG_DUMP_PATH / DVLS_PG_RESTORE_PATH at them.


5. Supported versions

PostgreSQL 14 or later, self-hosted or managed.


6. Documentation

We've reported the gap to the documentation team so the Docker and Linux guides get updated.


Also note that the Linux image applies pending schema upgrades at startup by default (DVLS_DATABASE_UPGRADE_ON_STARTUP=true).


Best regards,

Best regards,


Jérémie Perreault

avatar

Hi,


thank you very much for the quick and detailed reply, and for opening the internal ticket for the pg_dump / pg_restore gap and passing the documentation gap on to the docs team. This answers all my questions.


I will probably test it this Sunday (October 25) on a separate test installation, not on my production instance, and report back here with the results.


Best regards,

Alex

avatar

Hi Jeremie,


as announced, I ran the tests on a separate test installation and rebuilt everything a second time from scratch. Thanks for the answers and for the documentation update, the Docker and PostgreSQL pages now match what I see.


SETUP

- devolutions/devolutions-server:release-2026.3 (the UI shows 2026.3.11.0, sha256:537d0d864ceffab758fba33ad7d79c151075e62607e681a30b0b39b76feb7680)

- postgres:17 (17.11, Debian) and nginx:stable-alpine (1.30.6)

- All three containers share one network namespace (one macvlan IP). nginx terminates TLS (WEB_SCHEME=http, EXTERNAL_WEB_SCHEME=https, EXTERNAL_WEB_PORT=443), DVLS reaches the database on 127.0.0.1, App_Data is a bind mount, DVLS_ENCRYPTION_CONFIG_B64 is not set.

- Roles: pgadmin (bootstrap superuser of the postgres image), dvls_user created WITH LOGIN SUPERUSER, DVLS_INIT=true, then ALTER ROLE dvls_user NOSUPERUSER.


RESULTS

- The init created the database dvls itself, owner dvls_user. Schema: 164 tables, identical in both runs.

- Web login via nginx, forced password change and RDM 2026.3.2.2 (macOS) work.

- Recreate of all containers: all healthy after about 35 s, 164 tables, NOSUPERUSER persists, no new login needed.

- Normal operation after NOSUPERUSER works (start, healthcheck, login, recreate).

- Not tested: a role with CREATEDB only, a schema upgrade without SUPERUSER, a full restore of a dump, the effective SSL mode.


WHERE THE DOCS AND YOUR ANSWER DIFFER

1. Role privileges: your answer says CREATEDB is enough, the updated docs say the account that creates the schema needs SUPERUSER (type casts). Which one is correct?

2. DATABASE_ENCRYPT=false: your answer says no SSL mode is set (Npgsql default Prefer), the docs say SSL Mode=Disable. Which one is correct?


FINDINGS

3. The built-in backup job runs per type. The Database part fails ("Unable to start 'pg_dump'"), the WebSite part succeeds and the request returns HTTP 200, so a 228 MB web files zip is written without a database dump. That zip contains appsettings.json and App_Data/encryption.config. As a workaround I run pg_dump inside the postgres container, the dump validates with pg_restore --list.

4. TLS ciphers: with an RSA certificate, the five-suite list on the DVLS Gateway page leaves only TLS 1.3. RDM 2026.3.2.2 (macOS) uses TLS 1.2 (ECDHE-RSA-AES256-GCM-SHA384) and showed a handshake error when nginx offered only those five suites. The Hub and Cloud pages list nine suites including ECDHE_RSA, and with those it works. Which list applies to DVLS behind a reverse proxy?


OPEN QUESTIONS

5. Can we rely on NOSUPERUSER for future upgrades such as 2027.1, or should the update procedure grant SUPERUSER temporarily if a release changes type casts again?

6. The docs say every runtime start needs DVLS_ENCRYPTION_CONFIG_B64. With a persistent App_Data bind mount, restarts and recreates worked without it. Is that supported?

7. With WEB_SCHEME=http behind a proxy I see the warnings "Failed to determine the https port for redirect" and the DataProtection keys warning. Are both harmless?



Thanks again,

Alex

avatar

Hi Alex,


Sorry I didn’t follow up here sooner. The documentation was updated after my first reply, and I should have let you know. Thanks for the detailed test result, they helped a lot. Here are the answers and a few corrections.


1. Role privileges. My earlier answer was wrong, sorry. CREATEDB is not enough, on a fresh database, the schema creation changes PostgreSQL type casts, which requires SUPERUSER. I reproduced it on DVLS 2026.3.11.0 with PostgreSQL 17.11: initialization fails with 42501: permission denied for table pg_cast when the role isn't superuser. What you did is the right workaround:


ALTER ROLE dvls_user SUPERUSER;

-- run the container once with DVLS_INIT=true

ALTER ROLE dvls_user NOSUPERUSER;


DVLS doesn't need superuser at runtime. We've logged this as a bug so that initialization works with a dedicated non-superuser owner role.


2. NOSUPERUSER for future upgrades. Only the initial schema creation needs superuser. The current upgrade steps don't change casts or require superuser, so an instance initialized the way you did should upgrade with a NOSUPERUSER owner, as long as that role owns the DVLS objects (which it does when it ran the initialization). We're fixing the initialization issue and adding a check that runs schema creation and upgrades as a non-superuser role. If a future version ever needs elevated rights for an upgrade, it will be called out in the release notes.


3. SSL mode. I was wrong here too; the documentation is correct. The mapping is:

- DATABASE_ENCRYPT=false → SSL Mode=Disable

- DATABASE_ENCRYPT=true + DATABASE_TRUST_SERVER_CERTIFICATE=true → SSL Mode=Require

- DATABASE_ENCRYPT=true + DATABASE_TRUST_SERVER_CERTIFICATE=false → SSL Mode=VerifyFull


4. Backup. pg_dump and pg_restore are not in the image yet; that's a known issue. The job reporting success and writing a zip without the database dump is a separate problem: it should fail. I am logging that too. Until it's fixed, keep running pg_dump from the PostgreSQL side as you're doing now.


5. DVLS_ENCRYPTION_CONFIG_B64. If App_Data is on a persistent volume, the container works without it: initialization writes encryption.config to App_Data and reuses it on every start. We still recommend setting it, or at least keeping a secure copy of encryption.config outside the volume. That file is the only key to the encrypted data in the database, so if the volume is lost or recreated, the data can't be recovered.


6. Startup warnings behind a proxy. "Failed to determine the https port for redirect" is expected with WEB_SCHEME=http behind a TLS-terminating proxy, and it's harmless.


7. Gateway TLS cipher suites. TLS isn't my area of expertise, so I've asked our Gateway team to confirm the recommended configuration and will update this thread with their answer. From what we've looked at so far: in TLS 1.2, the cipher suite has to match the certificate type, so with an RSA certificate only the ECDHE_RSA_* suites can be used. The five suites you configured don't include any ECDHE_RSA suite, which would explain why RDM on macOS failed over TLS 1.2 while the nine-suite list (which includes the three ECDHE_RSA suites) works. In the meantime, the nine-suite list from the Gateway system requirements page for Devolutions Server is the one to use.


Thanks again for the thorough testing.

Best regards,


Jérémie Perreault

avatar

Hi Jeremie,


thank you very much for the detailed answers and for reproducing the pg_cast error. I have updated my documentation with your corrections: CREATEDB is not enough for the initial schema creation, the SSL mapping from the docs is correct, upgrades should work with a NOSUPERUSER owner role, and I keep a copy of encryption.config outside the volume.


Two small things: the DataProtection keys warning at startup (keys stored in the container) was not part of your answer, is that harmless as well? And I will keep an eye on the thread for the answer from the Gateway team about the TLS cipher suites. Until then I use the nine-suite list.


Thanks again,

Alex

avatar

Hi Alex,


I’ve got an update on the two remaining points.


The DataProtection warning is harmless too. ASP.NET Core logs it because the container’s DataProtection key ring is stored in a folder that isn’t persisted or encrypted. DVLS doesn’t depend on that key ring: login cookies are encrypted with the key in encryption.config. If the container is recreated and generates new DataProtection keys, users stay logged in and no data is affected.


You don’t need to change anything for this warning. As before, encryption.config is the file to back up and keep safe.


I also checked with our Gateway team about the cipher suites. You can keep the nine-suite list. The important part is that the TLS 1.2 suites match your certificate’s key type:

  • ECDHE_ECDSA_* suites require an ECDSA certificate.

  • With your RSA certificate, the original five-suite list gave nginx no usable TLS 1.2 suite, so TLS 1.2 clients couldn’t connect.

  • TLS 1.3 suites don’t depend on the certificate type, which explains why those clients still worked.

  • RDM on macOS fell back to TLS 1.2 and offered ECDHE-RSA-AES256-GCM-SHA384, which wasn’t in nginx’s allowed list.


For a reverse proxy in front of Gateway, the team recommends TLS 1.2 and 1.3, with ECDHE + AEAD suites that match the proxy’s certificate. Mozilla’s intermediate profile is a good reference, and keeping the full nine-suite list is fine too.


One thing to keep in mind: Gateway’s HTTP listener can sit behind an HTTP reverse proxy, but its TCP listener can’t. nginx can forward raw TCP traffic, though you’ll need to test that in your setup if you plan to use it.

Best regards,


Jérémie Perreault

avatar

Hi Jeremie,


thank you very much for the clear answers on the DataProtection warning and the cipher suites. That answers all my questions. I will keep the nine-suite list and the NOSUPERUSER setup, and I keep a copy of encryption.config outside the volume.


Thanks again,

Alex