You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: