Define default policies to mimic current behaviour

This commit is contained in:
Ingo Oppermann
2023-02-10 15:14:30 +01:00
parent 312f65d110
commit eac49ad11a
13 changed files with 259 additions and 540 deletions

View File

@@ -213,8 +213,15 @@ func NewServer(config Config) (Server, error) {
s.logger = log.New("")
}
mounts := []string{}
for _, fs := range s.filesystems {
mounts = append(mounts, fs.FS.Mountpoint)
}
s.middleware.iam = mwiam.NewWithConfig(mwiam.Config{
IAM: config.IAM,
Mounts: mounts,
Logger: s.logger.WithComponent("IAM"),
})