S3 Error executing ListBuckets
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the S3 job from the S3 job tab with the scoped IAM policy shown in the report, then trace the code path that issues the ListBuckets request. Done means backups work for a restricted bucket path without requiring overly broad permissions; the issue names no files or tests to run.
Written by the indexing model from the issue text.
Description
I use BackWPup on a number of sites with their own IAM user with credentials giving access to a particular bucket path. This has worked for a long time, but seems broken in 3.6.10
This is happening on all my sites.
On the S3 job tab I get this error:
Error executing "ListBuckets" on "https://s3.ap-southeast-2.amazonaws.com/"; AWS HTTP error: Client error: 'GET https://s3.ap-southeast-2.amazonaws.com/' resulted in a '403 Forbidden' response: <?xml version="1.0" encoding="UTF-8"?> <Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>ACD02C (truncated...) AccessDenied (client): Access Denied - <?xml version="1.0" encoding="UTF-8"?> <Error><Code>AccessDenied</Code><Message>Access Denied</Message></Error>
The IAM user policy looks like this:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1441240868000",
"Effect": "Allow",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::[MY_BUCKET]",
"arn:aws:s3:::[MY_BUCKET]/my/backup/path*"
]
}
]
}
I don't want to use overly broad permissions.
Thanks
BackWPUp 3.6.10
WordPress 5.2.2
PHP 7.2
- Dominant language
- PHP
- Stars
- 95
- Forks
- 46
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from wp-media/backwpup
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
[HumanSlop] Code Quality Audit: 24574 findings in BackWPup – WordPress Backup & Restore Plugin Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 42/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
All issues in wp-media/backwpup
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getgrav/grav-plugin-api#45 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RSS-Bridge/rss-bridge#5098 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
phingofficial/phing#2025 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
silverstripe/developer-docs#911 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100