open-consul/agent/consul/state
Matt Keeler 1270a93274
Updates to allow for Namespacing ACL resources in Consul Enterp… (#6675)
Main Changes:

• method signature updates everywhere to account for passing around enterprise meta.
• populate the EnterpriseAuthorizerContext for all ACL related authorizations.
• ACL resource listings now operate like the catalog or kv listings in that the returned entries are filtered down to what the token is allowed to see. With Namespaces its no longer all or nothing.
• Modified the acl.Policy parsing to abstract away basic decoding so that enterprise can do it slightly differently. Also updated method signatures so that when parsing a policy it can take extra ent metadata to use during rules validation and policy creation.

Secondary Changes:

• Moved protobuf encoding functions out of the agentpb package to eliminate circular dependencies.
• Added custom JSON unmarshalers for a few ACL resource types (to support snake case and to get rid of mapstructure)
• AuthMethod validator cache is now an interface as these will be cached per-namespace for Consul Enterprise.
• Added checks for policy/role link existence at the RPC API so we don’t push the request through raft to have it fail internally.
• Forward ACL token delete request to the primary datacenter when the secondary DC doesn’t have the token.
• Added a bunch of ACL test helpers for inserting ACL resource test data.
2019-10-24 14:38:09 -04:00
..
acl.go Updates to allow for Namespacing ACL resources in Consul Enterp… (#6675) 2019-10-24 14:38:09 -04:00
acl_oss.go Updates to allow for Namespacing ACL resources in Consul Enterp… (#6675) 2019-10-24 14:38:09 -04:00
acl_test.go Updates to allow for Namespacing ACL resources in Consul Enterp… (#6675) 2019-10-24 14:38:09 -04:00
autopilot.go fix ignored errors in state store internals as reported by errcheck 2019-03-01 14:18:00 -06:00
autopilot_test.go Move autopilot to a standalone package 2017-12-11 16:45:33 -08:00
catalog.go Display IPs of machines when node names conflict to ease troubleshooting 2019-08-28 15:57:05 -04:00
catalog_test.go Fixed typos in comments (#6175) 2019-07-19 07:54:53 -04:00
config_entry.go connect: generate the full SNI names for discovery targets in the compiler rather than in the xds package (#6340) 2019-08-19 13:03:03 -05:00
config_entry_test.go connect: detect and prevent circular discovery chain references (#6246) 2019-08-02 09:18:45 -05:00
connect_ca.go connect: generate the full SNI names for discovery targets in the compiler rather than in the xds package (#6340) 2019-08-19 13:03:03 -05:00
connect_ca_test.go connect: generate the full SNI names for discovery targets in the compiler rather than in the xds package (#6340) 2019-08-19 13:03:03 -05:00
coordinate.go Creates a registration mechanism for schemas. 2017-11-29 18:36:52 -08:00
coordinate_test.go Fill out the tests around coordinate/node functionality 2017-10-31 15:36:44 -07:00
delay.go Spelling (#3958) 2018-03-19 16:56:00 +00:00
delay_test.go pkg refactor 2017-06-10 18:52:45 +02:00
graveyard.go pkg refactor 2017-06-10 18:52:45 +02:00
graveyard_test.go pkg refactor 2017-06-10 18:52:45 +02:00
index_connect.go Add Proxy Upstreams to Service Definition (#4639) 2018-10-10 16:55:34 +01:00
index_connect_test.go Add Proxy Upstreams to Service Definition (#4639) 2018-10-10 16:55:34 +01:00
index_service_kind.go Implement Mesh Gateways 2019-07-01 16:28:30 -04:00
intention.go Fix hot loop in cache for RPC returning zero index. 2018-06-25 12:25:37 -07:00
intention_test.go fix typos reported by golangci-lint:misspell (#5434) 2019-03-06 11:13:28 -06:00
kvs.go kv: do not trigger watches when setting the same value (#5885) 2019-06-18 15:06:29 +02:00
kvs_test.go kv: do not trigger watches when setting the same value (#5885) 2019-06-18 15:06:29 +02:00
prepared_query.go Creates a registration mechanism for schemas. 2017-11-29 18:36:52 -08:00
prepared_query_index.go pkg refactor 2017-06-10 18:52:45 +02:00
prepared_query_index_test.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
prepared_query_test.go agent: fix formatting 2018-11-07 02:16:03 -08:00
schema.go Creates a registration mechanism for schemas. 2017-11-29 18:36:52 -08:00
schema_test.go pkg refactor 2017-06-10 18:52:45 +02:00
session.go Creates a registration mechanism for schemas. 2017-11-29 18:36:52 -08:00
session_test.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
state_store.go Fix Internal.ServiceDump blocking (#6076) 2019-07-04 16:17:49 +01:00
state_store_test.go Updates to allow for Namespacing ACL resources in Consul Enterp… (#6675) 2019-10-24 14:38:09 -04:00
tombstone_gc.go Sheds monotonic time info so tombstone GC bins work properly. 2017-11-29 10:34:24 -08:00
tombstone_gc_test.go Sheds monotonic time info so tombstone GC bins work properly. 2017-11-29 10:34:24 -08:00
txn.go txn: clean up some state store/acl code 2019-01-09 11:59:23 -08:00
txn_test.go api: add support for new txn operations 2018-12-12 10:54:09 -08:00