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: extract updateAuthenticationState helper method
Chris Lue11c0425f878
diff --git a/weed/s3api/auth_credentials.go b/weed/s3api/auth_credentials.goindex eb73c3262f..6ec22ca412 100644--- a/weed/s3api/auth_credentials.go+++ b/weed/s3api/auth_credentials.go@@ -736,6 +736,14 @@ func (iam *IdentityAccessManagement) isEnabled() bool {return iam.isAuthEnabled}+func (iam *IdentityAccessManagement) updateAuthenticationState(identitiesCount int) bool {+ if !iam.isAuthEnabled && identitiesCount > 0 {+ iam.isAuthEnabled = true+ return true+ }+ return false+}+func (iam *IdentityAccessManagement) IsStaticConfig() bool {iam.m.RLock()defer iam.m.RUnlock()