Previously backups had worked perfectly fine - I looked at the bucket I’m backing things up to, and there are lots of backups going back to March 31st 2024, however since then I’ve been getting emails about it failing, the error is:
An error occurred (AccessDenied) when calling the ListBuckets operation: Access Denied
Backup failed! See the progress output above for the reason why.
I’ve tested the exact same credentials and bucket access in Cyberduck, CLI, and using a Laravel package and they all work fine - Virtualmin is the only one that’s not working.
Can anyone help me? I’ll provide whatever other info needed (Except for the bucket/credentials obviously)
The policy includes basically every single S3 permission at this point - including ListBucket and listallmybuckets. I’ve just been adding more and more permissions to the policy to try to figure this out and… Still, nothing. Like I said other ways of accessing the bucket work perfectly fine, and Virtualmin’s backup worked perfectly fine until April 1st this year.
After a lot of playing around, I found out that Virtualmin, for whatever reason, now requires “ListAllMyBuckets” on “Resource”: “arn:aws:s3:::*”
So I’m guessing at some point in March or maybe early April, an update was pushed out to require ListAllMyBuckets to even so much as to save a new S3 Account in Virtualmin.
Here’s the relevant policy I ended up using, gonna play around and remove some actions later but it’s working for now and I don’t want to risk breaking it: