mirror of
https://github.com/status-im/consul.git
synced 2025-02-02 17:03:31 +00:00
80db61193c
These changes are necessary to ensure advertisement happens correctly even when datacenters are connected via network areas in Consul enterprise. This also changes how we check if ACLs can be upgraded within the local datacenter. Previously we would iterate through all LAN members. Now we just use the ServerLookup type to iterate through all known servers in the DC.
19 lines
405 B
Go
19 lines
405 B
Go
// +build !consulent
|
|
|
|
package consul
|
|
|
|
import (
|
|
"github.com/hashicorp/consul/acl"
|
|
"github.com/hashicorp/consul/agent/structs"
|
|
)
|
|
|
|
// Consul-enterprise only
|
|
func (s *Server) ResolveEntTokenToIdentityAndAuthorizer(token string) (structs.ACLIdentity, acl.Authorizer) {
|
|
return nil, nil
|
|
}
|
|
|
|
// Consul-enterprise only
|
|
func (s *Server) validateEnterpriseToken(identity structs.ACLIdentity) error {
|
|
return nil
|
|
}
|