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

events: Add support for multi-namespace subscriptions #22540

Merged
merged 9 commits into from
Aug 25, 2023

Conversation

swenson
Copy link
Contributor

@swenson swenson commented Aug 23, 2023

Events from multiple namespaces can be subscribed to via glob patterns passed to the subscription.

This does not do policy enforcement yet -- that will come in another PR soon.

I tested this manually as well by pulling it into Vault Enterprise so I could create namespaces and check that subscriptions work as expected.

@swenson swenson added this to the 1.15 milestone Aug 23, 2023
@swenson swenson requested review from tomhjp and a team August 23, 2023 22:09
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Aug 23, 2023
@swenson swenson force-pushed the vault-19221/events-namespaces branch from 542bf43 to 3295519 Compare August 23, 2023 22:09
@github-actions
Copy link

Build Results:
All builds succeeded! ✅

@github-actions
Copy link

CI Results:
All Go tests succeeded! ✅

command/events.go Outdated Show resolved Hide resolved
command/events.go Outdated Show resolved Hide resolved
vault/eventbus/bus.go Show resolved Hide resolved
@swenson
Copy link
Contributor Author

swenson commented Aug 24, 2023

I added the logic around validating child namespaces. PTAL.

@swenson swenson force-pushed the vault-19221/events-namespaces branch from b5b6c3f to c573775 Compare August 24, 2023 17:34
http/events.go Outdated Show resolved Hide resolved
@swenson swenson force-pushed the vault-19221/events-namespaces branch from c573775 to 9dfe2c1 Compare August 25, 2023 17:08
Copy link
Contributor

@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.

LGTM! 👍

command/events.go Outdated Show resolved Hide resolved
command/events.go Outdated Show resolved Hide resolved
http/events.go Outdated Show resolved Hide resolved
Christopher Swenson and others added 9 commits August 25, 2023 13:37
Events from multiple namespaces can be subscribed to via
glob patterns passed to the subscription.

This does not do policy enforcement yet -- that will come in PR soon.

I tested this manually as well by pulling it into Vault Enterprise
so I could create namespaces and check that subscriptions work as
expected.
Co-authored-by: Tom Proctor <[email protected]>
Co-authored-by: Tom Proctor <[email protected]>
Co-authored-by: Tom Proctor <[email protected]>
Co-authored-by: Tom Proctor <[email protected]>
@swenson swenson force-pushed the vault-19221/events-namespaces branch from 618a23b to b6f56c5 Compare August 25, 2023 20:37
@swenson
Copy link
Contributor Author

swenson commented Aug 25, 2023

Thanks!

@swenson swenson enabled auto-merge (squash) August 25, 2023 20:38
@swenson swenson merged commit 3e900fd into main Aug 25, 2023
@swenson swenson deleted the vault-19221/events-namespaces branch August 25, 2023 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants