open-nomad/command/agent
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
..
consul consul/connect: enable setting datacenter in connect upstream 2020-11-30 10:38:30 -06:00
event make auditor interface more explicit 2020-03-23 19:32:58 -04:00
host api: nomad debug new /agent/host (#8325) 2020-07-02 09:51:25 -04:00
monitor unlock before returning, no need for label 2019-11-05 11:44:29 -05:00
pprof Rename profile package to pprof 2020-01-09 15:15:10 -05:00
test-resources chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
testdata remove event durability (#9147) 2020-10-22 12:21:03 -04:00
acl_endpoint.go Self token lookup 2017-10-13 13:12:20 -07:00
acl_endpoint_test.go spelling: bootstrap 2018-03-11 17:43:19 +00:00
agent.go remove event durability (#9147) 2020-10-22 12:21:03 -04:00
agent_endpoint.go nomad debug renamed to nomad operator debug (#8602) 2020-08-11 15:39:44 -04:00
agent_endpoint_test.go tests: deflake some SetServer related tests 2020-04-07 09:27:48 -04:00
agent_oss.go Oss license support for ent builds (#8054) 2020-05-27 13:46:52 -04:00
agent_test.go remove event durability (#9147) 2020-10-22 12:21:03 -04:00
alloc_endpoint.go updated alloc_endpoint to mutate a copy of the returned allocation, instead of the instance in the state store 2020-11-15 17:52:50 +00:00
alloc_endpoint_test.go documenting test for #9367 2020-11-15 17:47:50 +00:00
bindata_assetfs.go update consul-template to v0.25.1 (#8988) 2020-10-01 14:08:49 -04:00
command.go Add EvictCallbackFn to handle removing entries from go-memdb when they 2020-10-14 12:44:42 -04:00
command_test.go Merge pull request #9027 from hashicorp/f-gh-9026 2020-10-06 08:28:18 +02:00
config.go remove event durability (#9147) 2020-10-22 12:21:03 -04:00
config_oss.go removes pro tags (#8014) 2020-05-28 15:40:17 -04:00
config_parse.go multi-interface network support 2020-06-19 09:42:10 -04:00
config_parse_test.go remove event durability (#9147) 2020-10-22 12:21:03 -04:00
config_test.go remove event durability (#9147) 2020-10-22 12:21:03 -04:00
csi_endpoint.go csi/api: populate ReadAllocs/WriteAllocs fields (#9377) 2020-11-25 16:44:06 -05:00
csi_endpoint_test.go csi: plugins track jobs in addition to allocations, and use job information to set expected counts (#8699) 2020-08-27 17:20:00 -04:00
deployment_endpoint.go use constants from http package 2020-06-17 11:04:02 -04:00
deployment_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
eval_endpoint.go
eval_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
event_endpoint.go Remove Managed Sinks from Nomad (#9470) 2020-11-30 14:00:31 -05:00
event_endpoint_test.go Remove Managed Sinks from Nomad (#9470) 2020-11-30 14:00:31 -05:00
fs_endpoint.go fixup! vendor: explicit use of hashicorp/go-msgpack 2020-03-31 09:48:07 -04:00
fs_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
helpers.go client: expose task state to client 2018-10-16 16:56:55 -07:00
helpers_test.go test: fix missing agent shutdowns 2020-02-07 15:50:53 -08:00
http.go Remove Managed Sinks from Nomad (#9470) 2020-11-30 14:00:31 -05:00
http_oss.go added new policy capabilities for recommendations API 2020-10-28 14:32:16 +00:00
http_stdlog.go agent: route http logs through hclog 2020-04-20 10:33:40 -04:00
http_stdlog_test.go agent: route http logs through hclog 2020-04-20 10:33:40 -04:00
http_test.go unify boolean parameter parsing 2020-10-14 12:23:25 -07:00
job_endpoint.go consul/connect: enable setting datacenter in connect upstream 2020-11-30 10:38:30 -06:00
job_endpoint_test.go consul/connect: enable setting datacenter in connect upstream 2020-11-30 10:38:30 -06:00
keyring.go Log AES-128 and AES-192 key sizes during keyring initialization 2020-10-01 11:12:14 -04:00
keyring_test.go Fix other usages of initKeyring func to use logger as third argument 2020-10-01 11:13:06 -04:00
log_file.go logging: Correctly track number of written bytes 2019-10-10 14:02:14 +02:00
log_file_test.go logging: Sort files when pruning old logs 2019-10-10 13:51:16 +02:00
log_levels.go Support for hot reloading log levels 2019-07-24 13:37:08 +02:00
log_levels_test.go More parallel 2017-07-20 09:36:34 -07:00
metrics_endpoint.go agent + consul 2018-09-13 10:43:40 -07:00
metrics_endpoint_test.go removed backwards-compatible/untagged metrics deprecated in 0.7 2020-10-13 20:18:39 +00:00
namespace_endpoint.go core: open source namespaces 2020-10-22 15:26:32 -07:00
namespace_endpoint_test.go core: open source namespaces 2020-10-22 15:26:32 -07:00
node_endpoint.go unify boolean parameter parsing 2020-10-14 12:23:25 -07:00
node_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
operator_endpoint.go basic snapshot restore 2020-06-07 15:46:23 -04:00
operator_endpoint_test.go basic snapshot restore 2020-06-07 15:46:23 -04:00
plugins.go move pluginutils -> helper/pluginutils 2019-01-22 15:50:08 -08:00
region_endpoint.go
region_endpoint_test.go More parallel 2017-07-20 09:36:34 -07:00
retry_join.go agent + consul 2018-09-13 10:43:40 -07:00
retry_join_test.go agent + consul 2018-09-13 10:43:40 -07:00
scaling_endpoint.go added new policy capabilities for recommendations API 2020-10-28 14:32:16 +00:00
scaling_endpoint_test.go added new policy capabilities for recommendations API 2020-10-28 14:32:16 +00:00
search_endpoint.go Sync namespace changes 2017-09-07 17:04:21 -07:00
search_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
stats_endpoint.go Server side impl + touch ups 2018-02-15 13:59:02 -08:00
stats_endpoint_test.go Fix failing test TestClientStatusRequest 2018-05-30 15:11:54 -05:00
status_endpoint.go
status_endpoint_test.go More parallel 2017-07-20 09:36:34 -07:00
stub_asset.go sync 2017-09-19 10:08:23 -05:00
syslog.go goimports 2019-01-22 15:44:31 -08:00
syslog_test.go goimports 2019-01-22 15:44:31 -08:00
system_endpoint.go
system_endpoint_test.go More parallel 2017-07-20 09:36:34 -07:00
testagent.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
testagent_oss.go allow test to check if server is enterprise 2020-04-30 14:46:21 -04:00
testingutils_test.go mock: add default host network 2020-11-23 10:11:00 -06:00