Cluster-init mandatory argument

I am trying to automate cluster initialisation where I am running cluster-init using automation.

I am facing an issue that cluster-init has a mandatory argument --cluster-password and providing this password in command line is a security vulnerability where the password is visible in process tree and it gets stored in bash history as well.

Is there any other way to provide such arguments?

The couchbase module for org.testcontainers may satisfy your needs. Or the code may show how to programmatically initialize a cluster.

Most of the couchbase operations have a corresponding REST API. Check the REST API documentation for a cluster-init.


1 Like