acl: small OSS refactors to help ensure that auth methods with namespace rules work with partitions (#11323)
This commit is contained in:
parent
07425b149c
commit
55dd52cb17
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
acl: **(Enterprise only)** ensure that auth methods with namespace rules work with partitions
|
||||
```
|
|
@ -19,5 +19,5 @@ func computeTargetEnterpriseMeta(
|
|||
method *structs.ACLAuthMethod,
|
||||
verifiedIdentity *authmethod.Identity,
|
||||
) (*structs.EnterpriseMeta, error) {
|
||||
return method.TargetEnterpriseMeta(verifiedIdentity.EnterpriseMeta), nil
|
||||
return &structs.EnterpriseMeta{}, nil
|
||||
}
|
||||
|
|
|
@ -70,10 +70,6 @@ func (p *ACLPolicy) EnterprisePolicyMeta() *acl.EnterprisePolicyMeta {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (m *ACLAuthMethod) TargetEnterpriseMeta(_ *EnterpriseMeta) *EnterpriseMeta {
|
||||
return &m.EnterpriseMeta
|
||||
}
|
||||
|
||||
func (t *ACLToken) NodeIdentityList() []*ACLNodeIdentity {
|
||||
if len(t.NodeIdentities) == 0 {
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue