How to securely manage credentials in shell scripts?

1 iMario 2 5/26/2025, 7:19:40 PM
I need to improve security over a set of shell scripts which have hardcoded credentials. I’m wondering what is the state of the art on this subject. I’ve read about gpg, hashicorp vault, pass command, but still wonder what you guys are doing.

Comments (2)

iMario · 23h ago
I have a bunch of scripts and a bunch of sysadmins who do not need to know those credentials but should based on their username be able to use the scripts. Those scripts query specific aspects of network infrastructure up to now via ssh.
bonki · 1d ago
What is your use case? Both vault and pass are viable options.