-
Notifications
You must be signed in to change notification settings - Fork 278
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
Apply policy resource restrictions for file extensions #2842
Conversation
portal-ui/src/screens/Console/Buckets/ListBuckets/UploadPermissionUtils.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fad252e
to
06d5a3d
Compare
Thank you @bexsoft 👍 . I have added logs and improved the dnd handling to accept one or more files. |
there's a warning @prakashsvmx |
5f26c9d
to
7207d61
Compare
@dvaldivia thank you, i have updated the type reference. |
673ec05
to
b27e48f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
19cd6b6
to
aff31de
Compare
it is working as expected. test with mc
Fixed
it is working as per master/release. ( in master/release as well it is disabled)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewing
@prakashsvmx I was also expecing a similar thing as @bexsoft. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
So yes I was verifying also with AWS and they do allow to select all types of files but then it would only be failing at server level once it actually tries to upload it. |
Thank you @cesnietor 👍 |
Fixes #2838
Sample policy to test:
( Allow and deny both actions are used)
Policy 1
Policy 2
Testing:
CI=true MINIO_ROOT_USER=minio MINIO_ROOT_PASSWORD=minio123 minio server /tmp/site1{1...4} --address ":22000" --console-address ":9025"
CONSOLE_DEV_MODE=on CONSOLE_MINIO_SERVER=http://localhost:22000 ./console server