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

Fix plugin reload when in a namespace #5937

Merged
merged 1 commit into from
Dec 12, 2018
Merged

Conversation

briankassouf
Copy link
Member

Tests are in a PR on enterprise

@jefferai
Copy link
Member

Haven't looked at the test yet but this looks good!

@briankassouf briankassouf merged commit 4511832 into master Dec 12, 2018
@briankassouf briankassouf deleted the fix-ns-plugin-reload branch December 12, 2018 01:21
@@ -2905,6 +2914,9 @@ func (b *SystemBackend) pathInternalUIMountRead(ctx context.Context, req *logica
Data: mountInfo(me),
}
resp.Data["path"] = me.Path
if ns.ID != me.Namespace().ID {
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't MatchingMountEntry always return the mounts for the namespace from the passed in context? In what cases would this check apply?

Copy link
Member Author

Choose a reason for hiding this comment

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

This fixes being able to reach into sub-namespaces and access the mount info. So if you wanted to do:

vault kv put ns/kv/foo bar=baz

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

4 participants