Hi everyone,
We have on prem O11 with Oracle database and I would like to update the database users password via configuration tool command line to automate the process. Unfortunately, this is not supported by the configuration tool command line yet and I am trying to find a workaround.
Does anyone has any idea about if there is any workaround for automating this process? For example, can passwords be encrypted and updated directly in server.hsconf and then applied through Configuration Tool, or is there another supported approach?
Thank you in advance!
You can’t fully automate DB password rotation today using only the supported Configuration Tool command‑line, but you can get close with a hybrid approach. A few important points first:
There is no supported way to generate the encrypted passwords for server.hsconf yourself. The encryption format/key is internal to OutSystems, so directly editing/encrypting passwords in server.hsconf isn’t supported and may break the environment.
server.hsconf
The supported procedure still requires Configuration Tool to write the new encrypted values into server.hsconf and to run “Grant Permissions” / “Create Session Database” / “Create/Update Database”. How to change the password of OutSystems database users
Given that, here are the realistic options:
You can automate most steps around Configuration Tool, even if the passwords themselves must be entered via the GUI (or at least once, manually).
High‑level automated flow (per environment):
Rotate DB passwords on Oracle side Use your DB/DevOps tooling to:
Update passwords in Configuration Tool (deployment controller) This step is the blocker for full automation:
You can at least script:
Distribute server.hsconf to front‑ends (fully scriptable) On all front‑ends:
C:\Program Files\OutSystems\Platform Server
Automate the Service Center “Apply Settings” step as much as possible The official recommendation is to:
You can:
This gives you a rotation process where the only non‑automated piece is typing the new password into Config Tool. For many teams, that’s acceptable for a quarterly/annual rotation.
To answer your specific question:
can passwords be encrypted and updated directly in server.hsconf and then applied through Configuration Tool?
Technically, server.hsconf is just XML with encrypted values, but:
So this is not a viable workaround if you want to stay within supported boundaries.
You can build a script / scheduled job that:
Pre‑rotation
DB password change
Manual step
Post‑Config Tool automation
This gets you repeatable automation while still respecting the supported path defined in the documentation. How to change the password of OutSystems database users
Given current O11 capabilities:
If OutSystems ever exposes a supported API/CLI to set DB passwords or generate encrypted values for server.hsconf, that would be the moment to fully automate; until then, any fully automatic approach would be unsupported.