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.
Perhaps, I should clarify, I am writing a bash script for the automation. So, to access REST API, I would have to use curl which requires the data mentioned above in the command line itself.
But you don’t have to pass curl’s data on the command line. See the curl manual pages - notably the use of -d @/path/to/file for passing data. (Ref: https://curl.se/docs/manpage.html)
Hi, thankyou so much for the quick response. This turns out to be helpful.
But, I just want to confirm one quick thing, I could not find any clusterInit api for couchbase 6.6.