Skip to content

Conversation

@dvaldivia
Copy link
Collaborator

@dvaldivia dvaldivia commented Feb 16, 2022

Fixes the Create Bucket and Browse not being enabled for policies that include wildcard in the bucket names like

{
    "Version": "2012-10-17",
    "Statement": [{
            "Effect": "Allow",
            "Action": ["s3:*"],
            "Resource": ["arn:aws:s3:::testbucket-*"]
    }]
}

It's expected now to get an error from the server when attempting to create an invalid bucket name under this policy

Screen Shot 2022-02-16 at 1 48 18 PM

Fixes https://github.com/minio/console/issues/1315

Signed-off-by: Daniel Valdivia [email protected]

Copy link
Collaborator

@cniackz cniackz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dvaldivia dvaldivia merged commit 8d7cddc into minio:master Feb 16, 2022
@dvaldivia dvaldivia deleted the fix-wildcard-policy-create-bucket branch February 16, 2022 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some policies works with the REST API but doesn't work with the Console

3 participants