What are others using to store these types of secrets?
I’m moving to Bitwarden and although it may support secure notes I’d be interested to hear what others are doing.
MYSECRET=$(pass somesecret | sed -n 3p) somescript
And then the script uses the secret from that specific line to do whatever it needs to do.
For work purposes most of our stuff is cloud based so if a secret is needed by scripts then it goes in a cloud-based secrets manager (for us it’s aws secrets manager or the secure parameter store thing depending) and if it’s for humans then we use one of a couple of methods of sharing securely in teams.