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

vaultfs: auth improvements #521

Merged
merged 1 commit into from
Jan 14, 2024
Merged

vaultfs: auth improvements #521

merged 1 commit into from
Jan 14, 2024

Conversation

hairyhenderson
Copy link
Owner

During hairyhenderson/gomplate#1336 I realized that the vaultauth.EnvAuthMethod causes tokens to be revoked, when they shouldn't be, because it wasn't implementing the authLogouter interface.

I've fixed this up, and altered that interface to be able to pass a context (it's only used here, so that's safe).

This also tweaks the error handling when a GET fails and falls back to LIST - if both fail, the first error is returned since that might make a bit more sense.

This also exports vaultauth.CompositeAuthMethod for easier auth method composition.

Signed-off-by: Dave Henderson <[email protected]>
@hairyhenderson hairyhenderson merged commit 012899e into main Jan 14, 2024
7 checks passed
@hairyhenderson hairyhenderson deleted the fix-vaultfs-auth-issues branch January 14, 2024 01:29
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

Successfully merging this pull request may close these issues.

1 participant