Security

Hashicorp Vault Test

Recording a quick test of Vault. hashicorp vault: https://www.vaultproject.io download vault executable and move to /usr/sbin so we have it in the path for this test. should rather be in /usr/local/bin $ vault -autocomplete-install $ exec $SHELL $ vault server -dev ==> Vault server configuration: Api Address: http://127.0.0.1:8200 Cgo: disabled…

Hiding Passwords in Scripts

Sometimes you need to pass a password or even just a string on the command line which you would rather obscure. ¬†For example: serverControl.sh -u admin -p $MYPASS -c shutdown Note anything below is not the ideal way of dealing with passwords you should probably use SSH keys if possible…