Test access style for S3 compatible backupstore
Case 1: Using Alibaba Cloud OSS bucket as backupstore
- Create an OSS bucket within Region China in Alibaba Cloud(Aliyun).
- Create a secret without
VIRTUAL_HOSTED_STYLE
for the OSS bucket.
- Set backup target and the secret in Longhorn UI.
- Try to list backup. Then the error
error: AWS Error: SecondLevelDomainForbidden Please use virtual hosted style to access.
is triggered.
- Add
VIRTUAL_HOSTED_STYLE: dHJ1ZQ== # true
to the secret.
- Backup list/create/delete/restore work fine after the configuration.
Case 2: Using AWS S3 bucket as backupstore
- Create a secret without
VIRTUAL_HOSTED_STYLE
for the S3 bucket.
- Set backup target and the secret in Longhorn UI.
- Verify backup list/create/delete/restore work fine without the configuration.
- Add
VIRTUAL_HOSTED_STYLE: dHJ1ZQ== # true
to the secret.
- Verify backup list/create/delete/restore still work fine after the configuration.
[Edit]