Always use the identity name (not the alias) for enforcing the policies
This commit is contained in:
parent
16bd434f78
commit
643dd8386c
@ -112,6 +112,9 @@ func (i *iam) Enforce(name, domain, rtype, resource, action string) bool {
|
||||
if identity.IsSuperuser() {
|
||||
superuser = true
|
||||
}
|
||||
|
||||
// Use the name (not the alias) from now on. policies are only associated with the name.
|
||||
name = identity.Name()
|
||||
}
|
||||
|
||||
l := i.logger.Debug().WithFields(log.Fields{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user