My FNZ Studio Version

System Configuration

Latest Update: 16.11.2023 |
Documentation
2022.2
2022.1
11
10
9
8

1 Introduction

In Appway, you can set a master password to encrypt all other passwords and increase the security of your platform. This article explains how to manage the master password and describes its impact on the Appway startup procedure.

2 Master Password and Startup

The Appway startup procedure consists of two phases. The execution of these phases depends on whether you have configured Appway to use a master password.

If a master password is not configured
Both phases are executed sequentially until the system starts up completely.

If a master password is configured
The system requires the master password after phase one completes.

The master password can be provided in the following ways:

  • As a context attribute: nm.master.password
  • As a context init parameter:nm.master.password
  • As a system property: nm.master.password
  • As an environment variable: NM_MASTER_PASSWORD
  • By setting nm.master.password in the default.properties file

The system uses the first master password it finds.

If the master password is provided in one of the above ways described above and is correct, Appway starts without any interruption.

3 Setting the Master Password

The administrator can set the master password when Appway is running by running the following code in the Interactive Script editor:

ChangeMasterPassword('oldPassword', 'newPassword') 

The function ChangeMasterPassword replaces the old master password with a new one. The first parameter states the current master password (if you are setting the master password for the first time, enter an empty string), the second parameter defines the new password.

Starting from Appway 11.1, the ChangeMasterPassword function is only available by installing the ChangeMasterPassword Extension.

4 Master Password in the Cluster

If you are running in a cluster scenario with multiple nodes, only one node can handle the master password form — the one which first acquires the init latch. All other nodes wait for the release of the init latch. The nodes cannot serve HTTP requests, so the administrator needs to connect to the appropriate node to insert the master password.

© 2026 Appway AG. All Rights Reserved