open-consul/acl
Matt Keeler baa89c7c65
Intentions ACL enforcement updates (#7028)
* Renamed structs.IntentionWildcard to structs.WildcardSpecifier

* Refactor ACL Config

Get rid of remnants of enterprise only renaming.

Add a WildcardName field for specifying what string should be used to indicate a wildcard.

* Add wildcard support in the ACL package

For read operations they can call anyAllowed to determine if any read access to the given resource would be granted.

For write operations they can call allAllowed to ensure that write access is granted to everything.

* Make v1/agent/connect/authorize namespace aware

* Update intention ACL enforcement

This also changes how intention:read is granted. Before the Intention.List RPC would allow viewing an intention if the token had intention:read on the destination. However Intention.Match allowed viewing if access was allowed for either the source or dest side. Now Intention.List and Intention.Get fall in line with Intention.Matches previous behavior.

Due to this being done a few different places ACL enforcement for a singular intention is now done with the CanRead and CanWrite methods on the intention itself.

* Refactor Intention.Apply to make things easier to follow.
2020-01-13 15:51:40 -05:00
..
acl.go Intentions ACL enforcement updates (#7028) 2020-01-13 15:51:40 -05:00
acl_oss.go Intentions ACL enforcement updates (#7028) 2020-01-13 15:51:40 -05:00
acl_test.go Rename EnterpriseAuthorizerContext -> AuthorizerContext 2019-12-18 13:43:24 -05:00
authorizer.go Intentions ACL enforcement updates (#7028) 2020-01-13 15:51:40 -05:00
authorizer_oss.go Miscellaneous acl package cleanup 2019-12-18 13:44:32 -05:00
authorizer_test.go Rename EnterpriseAuthorizerContext -> AuthorizerContext 2019-12-18 13:43:24 -05:00
chained_authorizer.go Rename EnterpriseAuthorizerContext -> AuthorizerContext 2019-12-18 13:43:24 -05:00
chained_authorizer_test.go Rename EnterpriseAuthorizerContext -> AuthorizerContext 2019-12-18 13:43:24 -05:00
errors.go Miscellaneous acl package cleanup 2019-12-18 13:44:32 -05:00
policy.go Miscellaneous acl package cleanup 2019-12-18 13:44:32 -05:00
policy_authorizer.go Intentions ACL enforcement updates (#7028) 2020-01-13 15:51:40 -05:00
policy_authorizer_oss.go Miscellaneous acl package cleanup 2019-12-18 13:44:32 -05:00
policy_authorizer_test.go Intentions ACL enforcement updates (#7028) 2020-01-13 15:51:40 -05:00
policy_merger.go
policy_merger_oss.go
policy_oss.go Miscellaneous acl package cleanup 2019-12-18 13:44:32 -05:00
policy_test.go Updates to allow for Namespacing ACL resources in Consul Enterp… (#6675) 2019-10-24 14:38:09 -04:00
static_authorizer.go Miscellaneous acl package cleanup 2019-12-18 13:44:32 -05:00
static_authorizer_test.go