open-nomad/nomad/stream
Drew Bailey 9adca240f8
Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447)
* upsertaclpolicies

* delete acl policies msgtype

* upsert acl policies msgtype

* delete acl tokens msgtype

* acl bootstrap msgtype

wip unsubscribe on token delete

test that subscriptions are closed after an ACL token has been deleted

Start writing policyupdated test

* update test to use before/after policy

* add SubscribeWithACLCheck to run acl checks on subscribe

* update rpc endpoint to use broker acl check

* Add and use subscriptions.closeSubscriptionFunc

This fixes the issue of not being able to defer unlocking the mutex on
the event broker in the for loop.

handle acl policy updates

* rpc endpoint test for terminating acl change

* add comments

Co-authored-by: Kris Hicks <khicks@hashicorp.com>
2020-12-01 11:11:34 -05:00
..
event_broker.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
event_broker_test.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
event_buffer.go Event sink manager improvements (#9206) 2020-11-02 09:21:32 -05:00
event_buffer_test.go Event sink manager improvements (#9206) 2020-11-02 09:21:32 -05:00
ndjson.go filter on additional filter keys, remove switch statement duplication 2020-10-14 14:14:33 -04:00
ndjson_test.go filter on additional filter keys, remove switch statement duplication 2020-10-14 14:14:33 -04:00
subscription.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
subscription_test.go Update subscription filter func (#9232) 2020-10-30 10:07:38 -07:00