Using CTE with Apache Kafka
This document describes how to integrate CTE with Apache Kafka.
Test Environment
-
CTE Agent: 7.5.0 and 7.6.0
-
CipherTrust Manager: 2.15 & 2.16
-
OS: Ubuntu 22.04.02 and RHEL 9.3
-
Kafka version: Kafka 2.13-3.7.0
-
Java version: openjdk-11-jdk
-
File System: XFS and EXT4
To integrate CTE with a Kafka, install configure Kafka, install and register the CTE Agent, configure the Settings.
Install and Register CTE Agent
Install Kafka
Download and extract the Kafka binaries into dedicated folders in your Kafka user’s home directory from one of the following URLs:
-
Download the Kafka binaries into dedicated folders in your Kafka user’s home directory, type:
-
Unzip the file, type:
-
Rename the file, type:
Creating systemd unit files to start the Kafka server
-
Display the contents of the
zookeeper.service
file:Response
-
Display the contents of the
kafka.service
file:Response
-
Enable Zookeeper, type:
-
Check the status of Zookeeper, type:
-
Enable Kafka, type:
-
Start Kafka, type:
-
Add the
kafka.service
andzookeeper.service
to the following file:/lib/systemd/system/secfs-fs-barrier.service
Using Kafka with CTE
-
Make sure that the Kafka service is not running, type:
-
Create a wide Open LDT policy.
Security Rule
Order Action Effect Browsing 1 key_op permit,applykey No 2 all_ops permit,audit,applykey Yes 3 all_ops permit,audit Yes Key Rule
Order Current Key Name Transformation Key Name Exclusion Rule 1 clear_key ldt-kafka-key No -
Guard the
/kafka-logs/
custom directory.GuardPoint Policy Type ConfigState Status /kafka-logs
LDT-Kafka-Policy local guarded guarded -
Start the Kafka service, type:
Verifying Data Encryption
-
Verify that LDT encrypted the Kafka logs, type:
Response
-
Unguard the Kafka Logs Directory.