Skip to content

[BUG]backup repo pre-check faild #9505

@StanleyWang-GitHub

Description

@StanleyWang-GitHub
  • Environment:K8S-v1.28.15
  • kubeblock:v1.0.0
  • s3-compatible provider: ceph-rgw

Hi @shanshanying
I found kbcli create backup repo has problem with s3-compatible provider.
have tried following:

#kbcli backuprepo create s3-backuprepo --provider=s3-compatible --access-key-id=xxx --bucket=kubeblocks --endpoint=https://s3.stanley.wang --secret-access-key=xxx --force-path-style=true --insecure-skip-tls-verify=true
and
#kbcli backuprepo create s3-backuprepo --provider=s3-compatible --access-key-id=xxx --bucket=kubeblocks --endpoint=https://s3.stanley.wang --secret-access-key=xxx --force-path-style=true --insecure=true

The pre-check job failed with:

Error: push to "/precheck.txt": RequestError: send request failed
caused by: Put"https://s3.stanley.wang/kubeblocks": tls:failed to verify certificate: x509: certificate signed by unknown authority

BTW the tls certificate is self signed.

I've tried the same storage in http protocol and the pre-check successed.

Image

Therefor I strongly believe that kbcli backuprepo create --insecure and --insecure-skip-tls-verify options didn't take effect at all.

Looking forward to your further reply.

Regards.

Metadata

Metadata

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions