How do I enable Kafka authorization?

Purpose

This procedure describes how to enable Kafka authorization rules in an NSP deployment. Kafka authorization is disabled by default.

Steps
 
1 

Open a terminal session.


2 

Log in as the root or NSP admin user on the NSP deployer VM.


3 

Stop the NSP cluster; see How do I stop an NSP cluster?.


4 

Open the following file using a plain-text editor such as vi:

/opt/nsp/NSP-CN-DEP-release-ID/NSP-CN-release-ID/config/nsp-config.yml


5 

Go to the Kafka Configuration section and uncomment the enableAcls parameter line by removing the leading # character.

You must preserve the leading spaces in the line.


6 

Change the parameter value from false to true.


7 

Save and close the nsp-config.yml file.


8 

Enter the following to start the NSP cluster:

Note: If the NSP cluster VMs do not have the required SSH key, you must include the --ask-pass argument in the nspdeployerctl command, as shown in the following example, and are subsequently prompted for the root password of each cluster member:

nspdeployerctl --ask-pass install --config --deploy

# ./nspdeployerctl install --config --deploy ↵

The NSP cluster starts, and the configuration update is put into effect.

End of steps