Open FrozenSoda opened 7 months ago
It seems that this issue only appears when using uppercase letters in the bucket name. AWS does not allow this, but some other S3-compatible providers such as Backblaze B2 does.
Perhaps the AWS SDK does not find the bucket as the name is converted to lowercase when looking for it, after which AMP wrongly tries to create it.
To prevent this issue, maybe AMP should validate the bucket name and ensure it is lowercase only. I don't know if breaking other naming rules causes issues: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html
Bug Report
System Information
Operating System
Ubuntu Server 22.04.4
AMP Version
2.5 - 20240322.1 (Mainline)
I confirm:
Symptoms
What are you trying to do?
Upload a backup to an S3 bucket that was not created by AMP.
What are you expecting to happen?
That the backup is successfully uploaded, provided that AMP is supplied a key with the proper permissions to that bucket.
What is actually happening?
A notification appears with a progress bar stating "Uploading Backup to S3", then disappears after a few seconds. When looking at the AMP instance log, you can find:
If the S3 key supplied to AMP permits full access to all buckets, including the ability to create new buckets, you instead get the errors:
As a consequence, you must let AMP create the bucket for you, which requires AMP to use an application key with access to all buckets in your account, which is bad from a security standpoint if the AMP instance were to get compromised.
Reproduction