open-consul/acl
Matt Keeler f9a43a1e2d
ACL Authorizer overhaul (#6620)
* ACL Authorizer overhaul

To account for upcoming features every Authorization function can now take an extra *acl.EnterpriseAuthorizerContext. These are unused in OSS and will always be nil.

Additionally the acl package has received some thorough refactoring to enable all of the extra Consul Enterprise specific authorizations including moving sentinel enforcement into the stubbed structs. The Authorizer funcs now return an acl.EnforcementDecision instead of a boolean. This improves the overall interface as it makes multiple Authorizers easily chainable as they now indicate whether they had an authoritative decision or should use some other defaults. A ChainedAuthorizer was added to handle this Authorizer enforcement chain and will never itself return a non-authoritative decision.

* Include stub for extra enterprise rules in the global management policy

* Allow for an upgrade of the global-management policy
2019-10-15 16:58:50 -04:00
..
acl.go ACL Authorizer overhaul (#6620) 2019-10-15 16:58:50 -04:00
acl_oss.go ACL Authorizer overhaul (#6620) 2019-10-15 16:58:50 -04:00
acl_test.go ACL Authorizer overhaul (#6620) 2019-10-15 16:58:50 -04:00
authorizer.go ACL Authorizer overhaul (#6620) 2019-10-15 16:58:50 -04:00
authorizer_oss.go ACL Authorizer overhaul (#6620) 2019-10-15 16:58:50 -04:00
chained_authorizer.go ACL Authorizer overhaul (#6620) 2019-10-15 16:58:50 -04:00
chained_authorizer_oss.go ACL Authorizer overhaul (#6620) 2019-10-15 16:58:50 -04:00
chained_authorizer_test.go ACL Authorizer overhaul (#6620) 2019-10-15 16:58:50 -04:00
policy.go ACL Authorizer overhaul (#6620) 2019-10-15 16:58:50 -04:00
policy_authorizer.go ACL Authorizer overhaul (#6620) 2019-10-15 16:58:50 -04:00
policy_authorizer_oss.go ACL Authorizer overhaul (#6620) 2019-10-15 16:58:50 -04:00
policy_authorizer_test.go ACL Authorizer overhaul (#6620) 2019-10-15 16:58:50 -04:00
policy_merger.go ACL Authorizer overhaul (#6620) 2019-10-15 16:58:50 -04:00
policy_merger_oss.go ACL Authorizer overhaul (#6620) 2019-10-15 16:58:50 -04:00
policy_oss.go ACL Authorizer overhaul (#6620) 2019-10-15 16:58:50 -04:00
policy_test.go ACL Authorizer overhaul (#6620) 2019-10-15 16:58:50 -04:00
static_authorizer.go ACL Authorizer overhaul (#6620) 2019-10-15 16:58:50 -04:00
static_authorizer_test.go ACL Authorizer overhaul (#6620) 2019-10-15 16:58:50 -04:00