I am trying to read the root token in a secure way using ReadSecretAsync but without passing the root token in the IAuthMethod.
AuthMethodInfo authMethod = new TokenAuthMethodInfo("123456789");
var vaultClientSettings = new VaultClientSettings("http://127.0.0.1:8200", authMethod);
var vaultClient = new VaultClient(vaultClientSettings);
var secret = await vaultClient.V1.Secrets.KeyValue.V2.ReadSecretAsync("auth/token/root");
var rootToken = secret.Data.Data["token"];
Is there a way to do that programatically and secure?
Hi,
I am trying to read the root token in a secure way using ReadSecretAsync but without passing the root token in the IAuthMethod.
Is there a way to do that programatically and secure?