SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
fix: support loading static config from IamConfig option for mini mode
Chris Lu451b897d56ee
diff --git a/weed/s3api/auth_credentials.go b/weed/s3api/auth_credentials.goindex 978b6c0e48..e6cd71adf1 100644--- a/weed/s3api/auth_credentials.go+++ b/weed/s3api/auth_credentials.go@@ -164,10 +164,16 @@ func NewIdentityAccessManagementWithStore(option *S3ApiServerOption, explicitStoconfigLoaded := false// First, try to load configurations from file or filer- if option.Config != "" {- glog.V(3).Infof("loading static config file %s", option.Config)- if err := iam.loadS3ApiConfigurationFromFile(option.Config); err != nil {- glog.Fatalf("fail to load config file %s: %v", option.Config, err)+ // First, try to load configurations from file or filer+ startConfigFile := option.Config+ if startConfigFile == "" {+ startConfigFile = option.IamConfig+ }++ if startConfigFile != "" {+ glog.V(3).Infof("loading static config file %s", startConfigFile)+ if err := iam.loadS3ApiConfigurationFromFile(startConfigFile); err != nil {+ glog.Fatalf("fail to load config file %s: %v", startConfigFile, err)}// Track identity names from static config to protect them from dynamic updates