acl: remove Server.ResolveTokenIdentityAndDefaultMeta
This method suffered from similar naming to a couple other methods on Server, and had not great re-use (2 callers). By copying a few of the lines into one of the callers we can move the implementation into the second caller. Once moved, we can see that ResolveTokenAndDefaultMeta is identical in both Client and Server, and likely should be further refactored, possibly into ACLResolver. This change is being made to make ACL resolution easier to trace.
Showing
- agent/consul/acl.go 4 additions, 0 deletionsagent/consul/acl.go
- agent/consul/acl_client.go 1 addition, 0 deletionsagent/consul/acl_client.go
- agent/consul/acl_server.go 3 additions, 10 deletionsagent/consul/acl_server.go
- agent/consul/intention_endpoint.go 7 additions, 4 deletionsagent/consul/intention_endpoint.go
Please register or sign in to comment