Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip TLS verify on file download #192

Merged
merged 1 commit into from
Dec 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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