1
0
Fork 0

Update SECURITY.md

master
Philip O'Toole 9 years ago
parent dce5e33016
commit 258241f992

@ -51,14 +51,14 @@ This configuration file sets authentication for two usernames, _bob_ and _mary_,
This configuration also sets permissions for both users. _bob_ has permission to perform all operations, and _mary_ can only query the cluster. This configuration also sets permissions for both users. _bob_ has permission to perform all operations, and _mary_ can only query the cluster.
## Secure cluster example ## Secure cluster example
Starting a node with HTTPS enabled and with the above configuration file. Starting a node with HTTPS enabled and with the above configuration file. It is assumed the X.509 certificate and key are at the paths `server.crt` and `key.pem` respectively.
```bash ```bash
rqlited -auth config.json -x509cert server.crt -x509key key.pem ~/node.1 rqlited -auth config.json -x509cert server.crt -x509key key.pem ~/node.1
``` ```
Bringing up a second node, joining it to the first node. Bringing up a second node, joining it to the first node.
```bash ```bash
rqlited -auth config.json -http localhost:4003 -x509cert server.crt \ rqlited -auth config.json -http localhost:4003 -x509cert server.crt \
-x509key key.pem -raft :4004 -join http://bob:secret1@localhost:4001 \ -x509key key.pem -raft :4004 -join https://bob:secret1@localhost:4001 \
~/node.2 ~/node.2
``` ```
Querying the node, as user _mary_. Querying the node, as user _mary_.

Loading…
Cancel
Save