Enabling Security Mode
This page describes how a system administrator can configure a SciDB cluster for secure operation.  After security mode is enabled, users must take additional steps to authenticate themselves. See Using iquery in Security Mode.
Supported Security Modes
SciDB supports three security modes:
trust mode means that security features are disabled. This is the default mode.
password mode enables security features, including user accounts. User account and password information is stored in the SciDB-internal metadata catalogue.
pam mode enables security features, including user accounts. SciDB accesses user account and password information via the pluggable authentication modules (PAM) client library.
SEO: namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces
Collectively, password and pam modes are sometimes referred to as namespaces mode, because the namespace protection domains can only be used in these modes.
SEO: namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespaces namespacesÂ
Configuring SciDB as a PAM Client covers additional configuration steps for using SciDB with external authentication services. These steps are only needed if you select pam mode.
Â
In release 19 and earlier, password mode stores unsalted password hashes. This issue will be addressed in a future release. If this is a problem see Configuring SciDB as a PAM Client.
Â
This assumes you have scidb running as a service. See Running SciDB.
Entering password Or pam Mode
To enable namespaces mode, do the following:
Load the namespaces library.
$ iquery -aq "load_library('namespaces')"
Â
Stop the SciDB cluster.
$ scidbctl.py --config <config.ini> stop-server <cluster_name>
Â
Edit the cluster configuration file and set the security parameter to either password or pam. See Configuring SciDB.
Unregister the cluster by running:
$ scidbctl.py --config <config.ini> unregister-service <cluster_name>
Â
Reregister the cluster by running:
Â
Set up the initial authentication credentials. (This step should only be needed if
$HOME/.config/scidb/iquery.auth
does not yet exist. See Using iquery in Security Mode.)Â
Restart SciDB by running:
Â
This process enables the chosen security mode on all servers in the cluster. You can now create and manage user accounts in the SciDB cluster.
If you set security=pam in the config.ini file, read Configuring SciDB as a PAM Client.
Reverting To trust Mode
In rare circumstances you may wish to revert a SciDB cluster back to trust mode from one of the namespace modes.
If you want to switch back to trust mode, do the following:
Unload the namespaces library by running:
Â
Stop the SciDB cluster by running:
Â
Edit the cluster configuration file and set the parameter security=trust. See Configuring SciDB.
Unregister the cluster by running:
Reregister the cluster by running:
.Restart SciDB by running:
SciDB is now back in trust mode.
Â