fix: Closes #323, fixed s3 proxy single user PutBucketAcl issue

This commit is contained in:
jonaustin09
2023-12-11 11:05:08 -08:00
committed by Ben McClelland
parent ef5a94420c
commit 056c905a65
2 changed files with 8 additions and 2 deletions
+6 -2
View File
@@ -88,8 +88,12 @@ func (s *IAMServiceProxy) CreateAccount(account Account) error {
return nil
}
func (IAMServiceProxy) GetUserAccount(access string) (Account, error) {
return Account{}, nil
func (s *IAMServiceProxy) GetUserAccount(access string) (Account, error) {
return Account{
Access: s.access,
Secret: s.secret,
Role: "admin",
}, nil
}
func (s *IAMServiceProxy) DeleteUserAccount(access string) error {
+2
View File
@@ -342,6 +342,8 @@ func runGateway(ctx context.Context, be backend.Backend) error {
var iam auth.IAMService
if s3proxyEndpoint != "" {
rootUserAccess = s3proxyAccess
rootUserSecret = s3proxySecret
iam = auth.NewProxy(s3proxyAccess, s3proxySecret, s3proxyRegion, s3proxyEndpoint)
} else {
var err error