aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api/auth_credentials.go
diff options
context:
space:
mode:
authorguosj <515878133@qq.com>2022-07-13 17:28:20 +0800
committerguosj <515878133@qq.com>2022-07-13 17:28:20 +0800
commitab1b9697e6c1eabd3f097a6fc28caf40e73ba7ed (patch)
tree70cdc6624ef1a13099f4817d5c7c8ef5673dd0c3 /weed/s3api/auth_credentials.go
parent31f9f528db11a10d72e86e895bbd663397a0b32f (diff)
downloadseaweedfs-ab1b9697e6c1eabd3f097a6fc28caf40e73ba7ed.tar.xz
seaweedfs-ab1b9697e6c1eabd3f097a6fc28caf40e73ba7ed.zip
supplement check duplicate accesskey
Diffstat (limited to 'weed/s3api/auth_credentials.go')
-rw-r--r--weed/s3api/auth_credentials.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/weed/s3api/auth_credentials.go b/weed/s3api/auth_credentials.go
index fb23d9ce9..f9e97ea22 100644
--- a/weed/s3api/auth_credentials.go
+++ b/weed/s3api/auth_credentials.go
@@ -109,6 +109,11 @@ func (iam *IdentityAccessManagement) LoadS3ApiConfigurationFromBytes(content []b
glog.Warningf("unmarshal error: %v", err)
return fmt.Errorf("unmarshal error: %v", err)
}
+
+ if err := filer.CheckDuplicateAccessKey(s3ApiConfiguration); err != nil {
+ return err
+ }
+
if err := iam.loadS3ApiConfiguration(s3ApiConfiguration); err != nil {
return err
}