Skip to content

Fix create bucket and list bucket for wildcard statements in policies #1589

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 16, 2022

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 #1315

Signed-off-by: Daniel Valdivia 18384552+dvaldivia@users.noreply.github.com

Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
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