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

plugins: Filter builtins by RunningVersion #17816

Merged
merged 5 commits into from Nov 11, 2022
Merged

Conversation

mpalmi
Copy link
Contributor

@mpalmi mpalmi commented Nov 3, 2022

Only update the status on mount and secrets/auth enable. This should resolve VAULT-9019.

@mpalmi mpalmi requested review from a team November 3, 2022 23:19
Copy link
Collaborator

@tomhjp tomhjp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a reasonable approach, but also relatively major surgery for a minor bug. Is it definitely worth the risk of backporting it? I'm not against it, just raising the question of risk and reward.

vault/mount.go Outdated Show resolved Hide resolved
vault/mount.go Outdated Show resolved Hide resolved
vault/logical_system.go Outdated Show resolved Hide resolved
vault/logical_system.go Outdated Show resolved Hide resolved
vault/logical_system.go Outdated Show resolved Hide resolved
@tomhjp
Copy link
Collaborator

tomhjp commented Nov 4, 2022

Is there a test we could write to validate the old behaviour is fixed in a proportionate amount of effort?

@mpalmi
Copy link
Contributor Author

mpalmi commented Nov 4, 2022

Is there a test we could write to validate the old behaviour is fixed in a proportionate amount of effort?

Absolutely will want to add some go tests to this. Thanks for the reminder!

This commit adds some logic to handle the case where a mount entry has a
non-builtin RunningVersion. This ensures that we only report deprecation
status for builtins.

This resolves VAULT-9019.
@mpalmi mpalmi force-pushed the set-deprecation-status-on-mount branch from 364fdb0 to 266d883 Compare November 9, 2022 15:10
@mpalmi mpalmi changed the title Add DeprecationStatus to MountEntry plugins: Filter builtins by RunningVersion Nov 9, 2022
vault/mount.go Outdated Show resolved Hide resolved
@mpalmi mpalmi merged commit 1ea6865 into main Nov 11, 2022
@mpalmi mpalmi deleted the set-deprecation-status-on-mount branch November 11, 2022 19:51
jayant07-yb pushed a commit to jayant07-yb/hashicorp-vault-integrations that referenced this pull request Mar 15, 2023
This commit adds some logic to handle the case where a mount entry has a
non-builtin RunningVersion. This ensures that we only report deprecation
status for builtins.
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.

None yet

3 participants