Revision as of 20:04, December 19, 2016 by KrisMcG (talk | contribs)
Jump to: navigation, search

Cassandra authentication

Web Services supports Cassandra authentication. Authentication validates incoming user connections to the Cassandra database. Implementing Cassandra authentication requires you to do some configuration in Cassandra and in Web Services.

Configure Cassandra authentication

The user login accounts and their passwords required for authentication are managed inside the cassandra.yaml file. Configure Cassandra authentication according to Datastax documentation.

Web Services configuration

To support Cassandra authentication, open the application.yaml file and provide the appropriate credentials. For example:

cassandraCluster:
  thrift_port: 9160
  jmx_port: 7199
  keyspace: sipfs
  ...
  userName: <super user name>
  password: <super user password>
  ...
Important
To save backward compatable behavior when the username or password is not provided, GWS will try to connect to Cassandra in anonymous way.

Password encryption

You can encrypt certain fields in the application.yaml file. To encrypt a field, prefix the value with '"CRYPT:"', for example:

...
  opsUserName: ops
  opsUserPassword: CRYPT:an03xPrxLAu9p==
  ...

In the serverSettings section of the application.yaml file, the following settings can be encrypted:

  • opsUserPassword
  • cmePassword
  • jksPassword
  • webDAVPassword

In the cassandraCluster section of the application.yaml file, the following settings can be encrypted:

  • password

In order to encrypt a password, you will need to run GWS application with an '"--encrypt"' parameter followed by a password you need to encrypt. The server won't actually start, the application will only encrypt the supplied password and then quit. This feature is only supported for JAR (Spring Boot) distributable. For example:

$
java -jar gws.jar --encrypt ops
CRYPT:an03xPrxLAu9p==
$ _


Comments or questions about this documentation? Contact us for support!