Browse Source

log unknown access key

pull/2427/head
Chris Lu 3 years ago
parent
commit
55973e8572
  1. 2
      weed/s3api/auth_credentials.go

2
weed/s3api/auth_credentials.go

@ -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…
Cancel
Save