Skip to content

Commit

Permalink
chore: disable cert validation on bootstrap (test)
Browse files Browse the repository at this point in the history
  • Loading branch information
freitzzz committed Dec 7, 2024
1 parent 5e443df commit 4214ca3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/bootstrap/helper.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package bootstrap

import (
"crypto/tls"
"encoding/json"
"fmt"
"io"
Expand All @@ -12,7 +13,12 @@ import (
func download(url string) []byte {
println("> GET %s", url)

resp := must(http.Get(url))
tr := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}
client := &http.Client{Transport: tr}

resp := must(client.Get(url))
if sc := resp.StatusCode; sc != 200 {
panic(fmt.Sprintf("sc: %d", resp.StatusCode))
}
Expand Down

0 comments on commit 4214ca3

Please sign in to comment.