Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I "vault login john" using the vault-plugin-auth-mock example? #438

Open
kwtj43 opened this issue Aug 23, 2023 · 0 comments
Open

Comments

@kwtj43
Copy link

kwtj43 commented Aug 23, 2023

I'm new to vault so sorry if I'm overlooking something obvious to more experienced users.

I'm following the vault-plugin-auth mock example at https://developer.hashicorp.com/vault/tutorials/app-integration/plugin-backends#deploy-a-custom-auth-plugin

I'd expect a two step process...

  1. As root ("vault login root") to create the john user (already in the example)
  2. Later (without root privileges), login as "john" using the credentials returned in the output from the "vault write auth/mock-auth/login ..." command.

I have tried different combinations for the second steps but am getting errors. Examples are...

  • vault login john
  • vault login method=mock-auth john
  • vault login method=vault-plugin-auth-mock john
  • vault login method=vault-plugin-auth-mock <token value from renaming #2 above>
  • vault login method=vault-plugin-auth-mock <token_accessor value from renaming #2 above>

Can the tutorial be updated to include the secondary login step (ex. "vault login method=??? ???")?

@kwtj43 kwtj43 changed the title How do I "vault login john" using the vault-plugin-auth-mock example How do I "vault login john" using the vault-plugin-auth-mock example? Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant