connectorPassword

connectorPassword

This setting was added in Profound.js version 7.0.0.

Description

This setting is used along with connectorUser to specify IBM i credentials for remote IBM i connections. Together they are an alternative to connectorCredentials, and allow the credentials to be loaded from sources other than the local file system.

connectorPassword and connectorUser must be specified together. Specifying one without the other, or combining either with connectorCredentials, causes a configuration error at startup.

Example 1: Specify Directly in config.js

"connectorPassword": "my_password"

Example 2: Load From the Environment

Because config.js is ordinary JavaScript, the value can be loaded from another source with custom coding. Reading it from an environment variable keeps the password out of the configuration file, which is useful in containers where the variable is supplied by a Secret:

"connectorPassword": process.env.CONNECTOR_PASSWORD

For information on how to modify this setting, see Configuration File.