2019-10-15 20:58:50 +00:00
|
|
|
// +build !consulent
|
|
|
|
|
|
|
|
package consul
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/hashicorp/consul/acl"
|
2019-10-25 15:06:16 +00:00
|
|
|
"github.com/hashicorp/consul/agent/structs"
|
2020-01-28 23:50:41 +00:00
|
|
|
"github.com/hashicorp/go-hclog"
|
2019-10-15 20:58:50 +00:00
|
|
|
)
|
|
|
|
|
2019-10-25 15:06:16 +00:00
|
|
|
// EnterpriseACLResolverDelegate stub
|
|
|
|
type EnterpriseACLResolverDelegate interface{}
|
|
|
|
|
2019-12-10 02:26:41 +00:00
|
|
|
func (s *Server) replicationEnterpriseMeta() *structs.EnterpriseMeta {
|
|
|
|
return structs.ReplicationEnterpriseMeta()
|
|
|
|
}
|
2019-10-28 17:49:57 +00:00
|
|
|
|
2020-01-28 23:50:41 +00:00
|
|
|
func newACLConfig(hclog.Logger) *acl.Config {
|
2020-01-13 20:51:40 +00:00
|
|
|
return &acl.Config{
|
|
|
|
WildcardName: structs.WildcardSpecifier,
|
|
|
|
}
|
2019-10-15 20:58:50 +00:00
|
|
|
}
|
2019-10-25 15:06:16 +00:00
|
|
|
|
|
|
|
func (r *ACLResolver) resolveEnterpriseDefaultsForIdentity(identity structs.ACLIdentity) (acl.Authorizer, error) {
|
|
|
|
return nil, nil
|
|
|
|
}
|
2020-02-13 19:55:27 +00:00
|
|
|
|
|
|
|
// resolveEnterpriseIdentityAndRoles will resolve an enterprise identity to an additional set of roles
|
|
|
|
func (_ *ACLResolver) resolveEnterpriseIdentityAndRoles(_ structs.ACLIdentity) (structs.ACLIdentity, structs.ACLRoles, error) {
|
|
|
|
// this function does nothing in OSS
|
|
|
|
return nil, nil, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// resolveEnterpriseIdentityAndPolicies will resolve an enterprise identity to an additional set of policies
|
|
|
|
func (_ *ACLResolver) resolveEnterpriseIdentityAndPolicies(_ structs.ACLIdentity) (structs.ACLIdentity, structs.ACLPolicies, error) {
|
|
|
|
// this function does nothing in OSS
|
|
|
|
return nil, nil, nil
|
|
|
|
}
|