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

When weed filer started its embedded S3 gateway with -s3 -s3.config, only
the S3 server loaded the s3.json static identities — the filer's own
CredentialManager stayed empty, so the IAM gRPC service backing the admin
UI and weed shell returned only dynamic users. Mirror the wiring weed
server already does and hand the same config path to the filer.
This commit is contained in:
Chris Lu authored and GitHub committed 2026-05-18 13:41:30 -07:00
1 parent 4d04609bb8
commit 3d872a1416
1 file changed
+6
+6
View File
@@ -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