mirror of
https://github.com/versity/versitygw.git
synced 2026-07-30 12:02:59 +00:00
fix: Closes #323, fixed s3 proxy single user PutBucketAcl issue
This commit is contained in:
committed by
Ben McClelland
parent
ef5a94420c
commit
056c905a65
+6
-2
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user