Password management in community edition


We are using Couchbase community edition 6.5.1 and have a script that manages start/stop/configuring cluster/buckets. This creates a security concern as we are storing db user password in our script. Is there a better way of password management that could help us with the issue?

Thank you,