Skip to main content

**Configuration Change. ** This feature is available as of version 3.2.

The securecreds module enforces password encryption and implements credential retrieval operations when certain facilities are accessed. If this module is enabled the following facilities make use of it:

  • All datasource modules

  • ecconfigd, repository management

  • eccfg, the user tool for direct interaction with the configuration repository

  • web UI

OpenSSL’s EVP API performs the encryption and decryption using a selectable block cipher and block mode, which will default to AES-256 using cipher-block chaining (CBC). Selectable ciphers are determined by OpenSSL’s available implementations.

This module is used in conjunction with the credmgr tool.

Note

If during installation you choose to enable encrypted passwords the credentials database and key are created at the default location. Root has read/write access to this database and ecuser has read access. This is enforced by having credmgr explicitly set the ownership and permissions appropriately on the credentials files. If you wish to use secure credentials on each node, be sure to enable encryption on each node during installation.

If reversible encryption was not selected during installation, and you later wish to use this module, you must create the secure credentials database and the encryption key using the credmgr tool. You must also create the following entries in the credentials database:

  • credmgr set_cred --hostname=ecconfigd -u ecuser -f ecconfigd -p password

  • credmgr set_cred --hostname=hostname -u ecuser -f pgsql -p password

  • credmgr set_cred --hostname=hostname -u ecuser -f ecdb -p password

  • credmgr set_cred --hostname=localhost -u ecuser -f pgsql -p password

  • credmgr set_cred --hostname=localhost -u ecuser -f ecdb -p password

Configuration

securecreds {
  Credentials = "/opt/msys/etc/credentials.db"
  Key = "/opt/msys/etc/credentials.key"
}
Credentials

This option defines the location of the credentials database. The default value for this option is /opt/msys/etc/credentials.db. This database is created using credmgr. In a cluster configuration this database must be present on each node.

Key

The location of the credentials key file. The default value for this option is /opt/msys/etc/credentials.key. This key is created using credmgr. In a cluster configuration this key must be present on each node.

Warning

We strongly recommend that you not change the default values of these options. If you absolutely must change the location of these files please create symlinks to the default locations. Also note that the credentials database and key are local to each node in a cluster.

Was this page helpful?