close

Filter

loading table of contents...

Operations Basics / Version 2512.1

Table Of Contents

4.8.3 Passwords

Change all standard passwords of built-in users immediately after installation. Use good passwords.

When providing a password to command line tools in automated procedures, prefer the environment variable REPOSITORY_PASSWORD to the -p command line argument. If possible, retrieve the password immediately before calling the command line tool from a secure password vault. Make sure that the environment variable does not remain set for too long.

The users' passwords are stored by the Content Servers as salted hashes. The hash algorithm can be configured using the server property cap.server.login.passwordHashAlgorithm, which should be set to bcrypt:N where N is the load factory of the bcrypt password hashing algorithm. Higher values of N slow down the hashing performance and improve security. Set N to at least 10 and choose higher values if the CPU performance allows it.

Alternatively, the property can be set to argon2id, or argon2id:iterations:memory:parallelism, to use the Argon2id password hashing algorithm instead. Here, iterations (1 to 100, default 2) and parallelism (1 to 16, default 1) should be adapted to the available CPU resources, and memory (the memory cost in KB, 1024 to 2097152, default 16384) to the available memory resources.

Migrating the password hash algorithm.  Changing cap.server.login.passwordHashAlgorithm only affects passwords hashed from that point on, i.e. passwords of newly created users and passwords changed afterwards. It does not retroactively rehash the passwords of existing users: each user's password hash records the algorithm it was computed with, so existing hashes keep working for login regardless of the currently configured property value, and the server transparently continues to verify them with their original algorithm.

Consequently, there is no separate migration procedure to run. To migrate a populated system to a new algorithm (for example from md5 to bcrypt, or from bcrypt to argon2id), set the property to the desired algorithm and then update the passwords of all built-in users, for example with the changepassword command line tool (see Section 3.13.2.2, “Changepassword” in Content Server Manual) or by letting users change their own passwords, e.g. in Studio. Until a user's password has been changed this way, it keeps using its previous hash algorithm.

Existing hashes only keep working on Content Servers that support their algorithm. Before setting the property to argon2id, upgrade all Content Servers that authenticate the affected users to a release that supports Argon2id; older releases reject such hashes, so these users cannot log in there. For the same reason, changing the property back to bcrypt does not convert existing Argon2id hashes. Before downgrading to a release without Argon2id support, set the property to a supported algorithm and update the passwords of all users whose passwords were hashed with Argon2id, as described above.

The passwords can be encrypted additionally by using the tool cm encryptpasswords as described in Section 3.13.2.7, “Encryptpasswords” in Content Server Manual.

Some passwords stored in configuration files can be encrypted using the tool encryptpasswordproperty as described in Section 3.13.1, “Information” in Content Server Manual. This applies to:

  • database passwords used by Content Server, Workflow Server and Studio Server

  • passwords for connecting to Content Server and Workflow Server,

  • passphrases for the CORBA-over-SSL keystore.

Passwords for connecting to an LDAP server, to a MongoDB or to a Solr cannot be protected in the same manner.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.