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: allow environment variable fallback when filer config is empty
Chris Lu48ded6b965a5
diff --git a/weed/s3api/auth_credentials.go b/weed/s3api/auth_credentials.goindex 662f7e10b6..978b6c0e48 100644--- a/weed/s3api/auth_credentials.go+++ b/weed/s3api/auth_credentials.go@@ -184,12 +184,12 @@ func NewIdentityAccessManagementWithStore(option *S3ApiServerOption, explicitStoglog.V(3).Infof("no static config file specified... loading config from credential manager")if err := iam.loadS3ApiConfigurationFromFiler(option); err != nil {glog.Warningf("fail to load config: %v", err)- } else {- // Check if any identities were actually loaded from filer- iam.m.RLock()- configLoaded = len(iam.identities) > 0- iam.m.RUnlock()}+ // Only consider config loaded if we actually have identities+ // Don't block environment variable fallback just because filer call succeeded+ iam.m.RLock()+ configLoaded = len(iam.identities) > 0+ iam.m.RUnlock()}// Only use environment variables as fallback if no configuration was loaded