Skip to content

No information in error what's wrong #383

@TDS-NO

Description

@TDS-NO

Hi

I am new to Vault and trying to use it.

I have created a simple user in the Vault with /userpass accesss (admin/admin).

I have added a simple secret in the cubbyhole secret engine for this user.

Running the following code:

IAuthMethodInfo authMethod = new UserPassAuthMethodInfo("admin", "admin");

// Initialize settings. You can also set proxies, custom delegates etc. here.
var vaultClientSettings = new VaultClientSettings("http://localhost:8200", authMethod);

IVaultClient vaultClient = new VaultClient(vaultClientSettings);

vaultClient.V1.Auth.PerformImmediateLogin();

// Use client to read a Cubbyhole secret.
var s = await vaultClient.V1.Secrets.Cubbyhole.ReadSecretAsync("TDS");

Error is not very informativ:

VaultSharp.Core.VaultApiException: '{"errors":[]}

What am I missing here ?

Appreciate any help.

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions