-
Notifications
You must be signed in to change notification settings - Fork 2k
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/acl events #9595
Events/acl events #9595
Conversation
2c34da4
to
3a4804a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Left one recommendation for making the API more fool Tim-proof, but not a blocker.
Looks like you've got some failing tests to clean up though?
a51f552
to
99a196f
Compare
test that values are omitted test event creation test acl events payloads are pointers fix failing tests, do all security steps inside constructor
c86081a
to
be313da
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
setupfn func(t *testing.T, fsm *nomadFSM) | ||
raftReq func(t *testing.T) []byte | ||
reqTopic structs.Topic | ||
eventfn func(t *testing.T, e []structs.Event) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really like how this test got structured with these testing funcs as test cases. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I think this one is right in the sweet spot for it being legible. table tests with huge tables and small test case runs can get hard to read 🤷♂️
* fix acl event creation * allow way to access secretID without exposing it to stream test that values are omitted test event creation test acl events payloads are pointers fix failing tests, do all security steps inside constructor * increase time * ignore empty tokens * uncomment line * changelog
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
This PR updates the transaction type for acl token and policy upsert requests to include the message type, which includes it in the event stream.
An unexported
secretID
value is added to ACLTokenEvent so that the event broker can access the secretID value when evaluating if a subscription should be closed or not, while ensuring that the secretID value is not included in the event stream output when marshaled.