Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: tidb-operator 1.5.x 的Backup CR 该如何配置才能备份到阿里云OSS 呢?

[TiDB Usage Environment] Production Environment / Testing / Poc
[TiDB Version] 7.5.1
[Reproduction Path]
Configure Backup CR like this, POD reports an error: “Used STS type AccessKey ID, but did not include the SecurityToken field in the request to indicate the use of STS authentication method”
backupMode: snapshot
backupType: full
br:
logLevel: debug
cluster: basicai
clusterNamespace: tidb-cluster
resources: {}
s3:
bucket: bas....p
endpoint: https://oss-cn-beijing.aliyuncs.com
prefix: tidb_test/alidev
provider: alibaba
region: oss-cn-beijing
secretName: s3-secret
secret: s3-secret exists, and the ak/sk inside is correct. Using this ak/sk, the BR command can complete the backup manually.
Refer to the BR command (specify ak/sk after the storage parameter value: --storage “s3://ba…p/tidb_test/alidev?access-key=LT…tN&secret-access-key=MD…K”), explicitly add ak/sk after the prefix field value to write the backup file to OSS:
s3:
bucket: ba...p
endpoint: https://oss-cn-beijing.aliyuncs.com
prefix: tidb_test/alidev?access-key=L...N&secret-access-key=M...JK
provider: alibaba
region: oss-cn-beijing
But then another problem arises. At the final stage of the backup, when Backup CR reads the backup metadata from OSS, it reports an error: error: read backup meta from bucket basicai-ops-backup and prefix tidb_test/alidev?access-key=LTA…N&secret-access-key=MD…K: backupmeta not exist.
How should this Backup CR be configured to correctly back up to Alibaba Cloud OSS?