mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-07 20:47:46 +01:00
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:
1 parent
4d04609bb8
commit
3d872a1416
1 file changed
+6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user