Skip to content

Commit

Permalink
Merge pull request vmware-tanzu#5526 from qiuming-best/insecurity-ski…
Browse files Browse the repository at this point in the history
…p-fix

fix restic backup failure with self-signed certification backend storage
  • Loading branch information
Lyndon-Li authored Nov 1, 2022
2 parents 502b058 + 52a49d1 commit 76d3321
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelogs/unreleased/5526-qiuming-best
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix restic backup failure with self-signed certification backend storage
4 changes: 3 additions & 1 deletion pkg/uploader/provider/restic.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ func (rp *resticProvider) RunBackup(
snapshotIdCmd := restic.GetSnapshotCommand(rp.repoIdentifier, rp.credentialsFile, tags)
snapshotIdCmd.Env = rp.cmdEnv
snapshotIdCmd.CACertFile = rp.caCertFile

if len(rp.extraFlags) != 0 {
snapshotIdCmd.ExtraFlags = append(snapshotIdCmd.ExtraFlags, rp.extraFlags...)
}
snapshotID, err := restic.GetSnapshotID(snapshotIdCmd)
if err != nil {
return "", false, errors.WithStack(fmt.Errorf("error getting snapshot id with error: %v", err))
Expand Down

0 comments on commit 76d3321

Please sign in to comment.