-
Notifications
You must be signed in to change notification settings - Fork 495
Closed
Labels
Description
Users with permission s3:* on a bucket (granted for the resources bucket and bucket/*) cannot create new paths inside the folders of this bucket.
Expected Behavior
Minio console should allow users to create new paths since they have sufficient permissions.
Current Behavior
Create new path button is disabled inside folders, saying You require additional permissions in order to create a new path. Please ask your MinIO administrator to grant you s3:PutObject, s3:Put* permissions in order to create a new path.
Possible Solution
It looks like the BrowserBreadcrumbs component is passing paths without bucket names (e.g., /test/ rather than bucket/test/) to the hasPermission func, which compares the paths with bucket/* and fails.
Steps to Reproduce (for bugs)
- Create a bucket named
bucketwith a folder namedtestinside. - Create a user with the following policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": [
"arn:aws:s3:::bucket",
"arn:aws:s3:::bucket/*"
]
}
]
}- Login as this user and navigate inside the
testfolder. - The
Create new pathbutton becomes gray.
Context
N/A
Regression
No
Your Environment
- MinIO version used (
minio --version):minio version RELEASE.2023-06-19T19-52-50Z (commit-id=f9b8d1c6999e65ab31899cbbe0314f5a4e5257c3) - Server setup and configuration: Installed by Helm, SNSD
- Operating System and version (
uname -a):Linux minio-data-cdf5477dd-dp4d7 5.15.0-76-generic #83-Ubuntu SMP Thu Jun 15 19:16:32 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Timost