Hi I have recently started using Hashicorp Vault . I am using a java program (using Java vault driver )to read and write static secret to vault . When I do System.out.println(username) , I get to see my secret in the console. Doesn,t that defeat the purpose of using Vault .
How can I read my secret so that I can use this secret ( like username and password ) or other sensitive information in my code but it doesnt get printed when someone tries to print it .