consul/acl
Dan Upton e00e3a0bc3
Move ACLResolveResult into acl/resolver package (#13467)
Having this type live in the agent/consul package makes it difficult to
put anything that relies on token resolution (e.g. the new gRPC services)
in separate packages without introducing import cycles.

For example, if package foo imports agent/consul for the ACLResolveResult
type it means that agent/consul cannot import foo to register its service.

We've previously worked around this by wrapping the ACLResolver to
"downgrade" its return type to an acl.Authorizer - aside from the
added complexity, this also loses the resolved identity information.

In the future, we may want to move the whole ACLResolver into the
acl/resolver package. For now, putting the result type there at least,
fixes the immediate import cycle issues.
2022-06-17 10:24:43 +01:00
..
resolver Move ACLResolveResult into acl/resolver package (#13467) 2022-06-17 10:24:43 +01:00
acl.go Rename partition-exports to exported-services 2021-12-03 17:47:31 -07:00
acl_oss.go peering: initial sync (#12842) 2022-04-21 17:34:40 -05:00
acl_test.go ACL pkg updates to support Agentless RPCs 2022-03-24 17:01:06 +05:30
authorizer.go ACL pkg updates to support Agentless RPCs 2022-03-24 17:01:06 +05:30
authorizer_oss.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
authorizer_test.go ACL pkg updates to support Agentless RPCs 2022-03-24 17:01:06 +05:30
chained_authorizer.go ACL pkg updates to support Agentless RPCs 2022-03-24 17:01:06 +05:30
chained_authorizer_test.go ACL pkg updates to support Agentless RPCs 2022-03-24 17:01:06 +05:30
enterprisemeta_oss.go Add SourcePeer fields to relevant Intentions types (#13390) 2022-06-08 13:24:10 -04:00
errors.go Fixups for error messages from ACL Errors (#12620) 2022-03-25 12:34:59 -07:00
errors_oss.go Fixups for error messages from ACL Errors (#12620) 2022-03-25 12:34:59 -07:00
errors_test.go Fixups for error messages from ACL Errors (#12620) 2022-03-25 12:34:59 -07:00
policy.go acl: remove id and revision from Policy constructors 2021-11-05 15:45:08 -04:00
policy_authorizer.go ACL pkg updates to support Agentless RPCs 2022-03-24 17:01:06 +05:30
policy_authorizer_oss.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
policy_authorizer_test.go ACL pkg updates to support Agentless RPCs 2022-03-24 17:01:06 +05:30
policy_merger.go syncing changes back from enterprise (#12701) 2022-04-05 15:46:56 -05:00
policy_merger_oss.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
policy_oss.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
policy_test.go bulk rewrite using this script 2022-01-20 10:46:23 -06:00
static_authorizer.go ACL pkg updates to support Agentless RPCs 2022-03-24 17:01:06 +05:30
static_authorizer_test.go acl: remove t.Parallel 2020-11-17 12:37:02 -05:00
testing.go Fixups for error messages from ACL Errors (#12620) 2022-03-25 12:34:59 -07:00
validation.go acl: gRPC login and logout endpoints (#12935) 2022-05-04 17:38:45 +01:00