Integrating CTE with a Couchbase Database
This document describes how to integrate CTE with a Couchbase database.
Test Environment
-
CTE Agent: 7.2.0.128
-
CipherTrust Manager: 2.8.0
-
OS: RHEL/CentOS 8.2
-
Couchbase: 7.1
-
File System: XFS
System Requirement Specifications
-
RAM: 16 GB
-
Storage: 32 GB
-
CPU: 3 GHz
Steps
To integrate CTE with a Couchbase database:
Create a Couchbase Cluster
Create a Couchbase cluster of one or more nodes. You will install Couchbase Server and CTE Agent on these nodes.
Perform the following steps on all the nodes:
-
Log on to the SSH client.
-
Install the Couchbase Server.
Output:
-
Ensure that the
couchbase-server
service is running.Output:
-
Initialize the node.
Output:
After initializing all the nodes to be part of the cluster:
-
Create the cluster on one of the nodes.
Output:
Note
The
ramsize
of the data, index, and other files can be changed according to the system availability. -
Add the remaining nodes to the cluster.
Note
Disable and stop the firewall on all the nodes.
Output:
-
Rebalance all the nodes from any node.
Output:
Note
Couchbase recommends to rebalance the nodes when they are added or removed, and on failover.
-
Ensure that all the nodes are in a healthy state.
Output:
The sample output above shows that all the nodes are healthy
.
Install and Register the CTE Agent
-
Install the CTE Agent on all nodes of the Couchbase cluster.
-
Register the CTE Agent with the CipherTrust Manager.
Refer to CTE - Agent Quick Start Guide for details.
Create the GuardPoints
Perform the following steps on all the cluster nodes.
-
On the CTE client, stop the Couchbase service.
-
On the CipherTrust Manager, create the GuardPoint. While creating the GuardPoint:
-
Enter the Path of the important Couchbase database, for example,
/opt/couchbase/var/lib/couchbase/data/
. -
Select the Policy Type as Standard.
Note
• If the Couchbase buckets are already created, Dataxform needs to be performed.
• You can also create LDT policy. -
Create a User Set with users
root
andcouchbase
, and give them the permission to perform all Actions and Effects.
Refer to Creating GuardPoints for details.
-
-
Ensure that the GuardPoint status is
guarded
on the CTE client.Output:
Create a Bucket and Run N1QL Query
-
Log on to the Couchbase Web Console.
-
Create a new bucket. Refer to the Couchbase documentation for details.
Alternatively, you can use an existing sample bucket.
-
On any CTE client, check for the newly created bucket in the bucket list.
Output:
-
Perform an operation on the bucket by running an N1QL query.
Output: