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.

@hairyhenderson hairyhenderson self-assigned this Jan 14, 2024
@hairyhenderson hairyhenderson enabled auto-merge (squash) January 14, 2024 01:16
@hairyhenderson hairyhenderson force-pushed the fix-vaultfs-auth-issues branch from 00d67d9 to 77cae83 Compare January 14, 2024 01:21
Signed-off-by: Dave Henderson <[email protected]>
@hairyhenderson hairyhenderson force-pushed the fix-vaultfs-auth-issues branch from 77cae83 to 386e783 Compare January 14, 2024 01:23
@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