mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-08-24 07:49:15 +08:00
log unknown access key
This commit is contained in:
parent
c4e22b5a9a
commit
55973e8572
@ -146,11 +146,13 @@ func (iam *IdentityAccessManagement) lookupByAccessKey(accessKey string) (identi
|
|||||||
|
|
||||||
for _, ident := range iam.identities {
|
for _, ident := range iam.identities {
|
||||||
for _, cred := range ident.Credentials {
|
for _, cred := range ident.Credentials {
|
||||||
|
println("checking", ident.Name, cred.AccessKey)
|
||||||
if cred.AccessKey == accessKey {
|
if cred.AccessKey == accessKey {
|
||||||
return ident, cred, true
|
return ident, cred, true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
glog.V(1).Infof("could not find accessKey %s", accessKey)
|
||||||
return nil, nil, false
|
return nil, nil, false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user