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
s3api: use updateAuthenticationState helper and clarified log message
Chris Ludf3f30874055
diff --git a/weed/s3api/auth_credentials.go b/weed/s3api/auth_credentials.goindex 6ec22ca412..06cd943004 100644--- a/weed/s3api/auth_credentials.go+++ b/weed/s3api/auth_credentials.go@@ -477,11 +477,7 @@ func (iam *IdentityAccessManagement) replaceS3ApiConfiguration(config *iam_pb.S3iam.nameToIdentity = nameToIdentity// Update authentication state based on whether identities exist// Once enabled, keep it enabled (one-way toggle)- authJustEnabled := false- if !iam.isAuthEnabled && len(identities) > 0 {- iam.isAuthEnabled = true- authJustEnabled = true- }+ authJustEnabled := iam.updateAuthenticationState(len(identities))iam.m.Unlock()if authJustEnabled {@@ -701,15 +697,11 @@ func (iam *IdentityAccessManagement) mergeS3ApiConfiguration(config *iam_pb.S3Apiam.nameToIdentity = nameToIdentity// Update authentication state based on whether identities exist// Once enabled, keep it enabled (one-way toggle)- authJustEnabled := false- if !iam.isAuthEnabled && len(identities) > 0 {- iam.isAuthEnabled = true- authJustEnabled = true- }+ authJustEnabled := iam.updateAuthenticationState(len(identities))iam.m.Unlock()if authJustEnabled {- glog.V(0).Infof("S3 authentication enabled - credentials were added dynamically")+ glog.V(0).Infof("S3 authentication enabled because credentials were added dynamically")}// Log configuration summary