Detail
Detail
Currently, a TopLogic system has a more or less hardcoded initial password. If you take such a system live on the Internet, it is dangerous because a login attempt could take place even before you had a chance to change the password.
Improvement
The environment variable/system property "tl_initial_password" should be used to set the "root" password on first startup. If this variable is not set, a secure password should be diced and written to the application log. From there you can get the credentials in a secure way after the first start of the application.
This procedure corresponds, for example, to the setup of an Oracle database as a Docker container.
Code migration
If a default password is still to be used in development for testing from the development environment, -Dtl_initial_password=<my-dev-password> must be entered as a VM argument in the application's launch config.
Test
Automatic password
- Set up new app.
- Launch app mvn
- Log in with password output to console.
Predefined password
- Set up new app.
- Start app with `mvn -Dtl_initial_password=myFunnyPassword
- Log in with root/myFunnyPassword
Docker
- Launch app as Docker image: {{.
./src/main/docker/createDocker.sh -e tl_initial_password=myDockerPassword }}}
- Logging into the container with root/myDockerPassword.
Cf. https://dev. top-logic.com/tl/content/docs/GetStarted/Preconfigured/StartDocker/ and related doc pages.