Skip to content

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.

fix(filer): load -s3.config static identities into the filer's CredentialManager (#9537)

Chris Lu3d872a14161f
diff --git a/weed/command/filer.go b/weed/command/filer.go
index 877302065c..8412feaf48 100644
--- a/weed/command/filer.go
+++ b/weed/command/filer.go
@@ -236,6 +236,12 @@ func runFiler(cmd *Command, args []string) bool {
filerSftpOptions.resolvePaths()
util.LoadSecurityConfiguration()
+ // Share the S3 static identity config file with the filer regardless of
+ // whether the embedded S3 gateway runs on this node: the IAM gRPC service
+ // the admin UI and weed shell talk to is wired up unconditionally, and it
+ // needs the same identities the S3 server would load from -s3.config.
+ f.s3ConfigFile = filerS3Options.config
+
switch {
case *f.metricsHttpIp != "":
// noting to do, use f.metricsHttpIp