open-consul/agent/agentpb
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.pb.binary.go Generate JSON and Binary Marshalers for Protobuf Types (#6564) 2019-09-30 15:39:20 -04:00
acl.pb.go
acl.proto
common.go Expand the QueryOptions and QueryMeta interfaces (#6545) 2019-09-26 09:55:02 -04:00
common.pb.binary.go Generate JSON and Binary Marshalers for Protobuf Types (#6564) 2019-09-30 15:39:20 -04:00
common.pb.go Generate JSON and Binary Marshalers for Protobuf Types (#6564) 2019-09-30 15:39:20 -04:00
common.proto Expand the QueryOptions and QueryMeta interfaces (#6545) 2019-09-26 09:55:02 -04:00