-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
S3's check-path
is not specific enough
#30709
Comments
Note: affects all users of |
Reproduce:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": "s3:GetObject",
"Resource": "*"
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": "s3:ListBucket",
"Resource": "*",
"Condition": {
"StringLike": {
"s3:prefix": "subdir/*"
}
}
}
]
} You can refer to this article: https://aws.amazon.com/blogs/security/writing-iam-policies-grant-access-to-user-specific-folders-in-an-amazon-s3-bucket/
|
@glorv Seems this bug had been fixed in pingcap/br#899, can we close this issue? |
closed in favor of pingcap/dumpling#286 and https://github.com/pingcap/ticdc/pull/1890 |
open since master didn't fix it tidb/br/pkg/lightning/lightning.go Line 294 in ac25e9f
Lines 287 to 292 in ac25e9f
|
/assign @glorv |
Please answer these questions before submitting your issue. Thanks!
1. What did you do?
s3://some-bucket/some-prefix/
on AWS S3.s3:ListBucket
ands3:GetObject
permission, conditioned withs3:prefix
=some-prefix/
.2. What did you expect to see?
successfully restored.
3. What did you see instead?
failed due to an unnecessary
HeadBucket
call:4. What version of BR and TiDB/TiKV/PD are you using?
master
The text was updated successfully, but these errors were encountered: