Skip to content

Commit

Permalink
Skip TLS verify on file download (#192)
Browse files Browse the repository at this point in the history
To avoid the issue of "certificate signed by unknown authority"
  • Loading branch information
hxietkg committed Dec 1, 2021
1 parent 0a0004a commit b9d96fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion burrito/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BUILDER_IMAGE=golang:1.16-alpine
ARG BUILDER_IMAGE=golang:1.16
ARG RUN_IMAGE=ubuntu:latest

FROM ${BUILDER_IMAGE} as builder
Expand Down
2 changes: 2 additions & 0 deletions burrito/cmd/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package cmd

import (
"crypto/sha256"
"crypto/tls"
"fmt"
"io"
"log"
Expand All @@ -41,6 +42,7 @@ var buildCmd = &cobra.Command{
Read the specified config file and download the resources into the files
sub directory.`,
Run: func(cmd *cobra.Command, args []string) {
http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
for _, c := range mc.Components {
path, err := os.Getwd()
if err != nil {
Expand Down

0 comments on commit b9d96fc

Please sign in to comment.