From 9fcdf88ef2006cbf4e7641aff01123521a6f02cd Mon Sep 17 00:00:00 2001 From: "roger.welin" Date: Wed, 10 Apr 2024 09:19:19 +0200 Subject: [PATCH 1/3] bump go to 1.22 --- .github/workflows/pullrequest.yaml | 2 +- go.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pullrequest.yaml b/.github/workflows/pullrequest.yaml index a3b7982..894fd06 100644 --- a/.github/workflows/pullrequest.yaml +++ b/.github/workflows/pullrequest.yaml @@ -5,7 +5,7 @@ jobs: test: strategy: matrix: - go-version: [1.18.x] + go-version: [1.22.x] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} diff --git a/go.mod b/go.mod index 7512fe8..3eeef02 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/rogerwelin/cassowary -go 1.19 +go 1.122 require ( github.com/aws/aws-sdk-go v1.44.51 From cbb9d6ad8bb8ee7d359946ed365405501181b1e7 Mon Sep 17 00:00:00 2001 From: "roger.welin" Date: Wed, 10 Apr 2024 09:21:31 +0200 Subject: [PATCH 2/3] bump go to 1.22 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 3eeef02..3ee1454 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/rogerwelin/cassowary -go 1.122 +go 1.22 require ( github.com/aws/aws-sdk-go v1.44.51 diff --git a/go.sum b/go.sum index ca249ef..e2d9daa 100644 --- a/go.sum +++ b/go.sum @@ -459,6 +459,7 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gonum.org/v1/gonum v0.11.0 h1:f1IJhK4Km5tBJmaiJXtk/PkL4cdVX6J+tGiM187uT5E= +gonum.org/v1/gonum v0.11.0/go.mod h1:fSG4YDCxxUZQJ7rKsQrj0gMOg00Il0Z96/qMA4bVQhA= gonum.org/v1/plot v0.11.0 h1:z2ZkgNqW34d0oYUzd80RRlc0L9kWtenqK4kflZG1lGc= gonum.org/v1/plot v0.11.0/go.mod h1:fH9YnKnDKax0u5EzHVXvhN5HJwtMFWIOLNuhgUahbCQ= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= @@ -560,5 +561,6 @@ honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9 honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/pdf v0.1.1 h1:k1MczvYDUvJBe93bYd7wrZLLUEcLZAuF824/I4e5Xr4= +rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= From 5c2cae5fcb14ff3649f7ab447558a1d955c028ab Mon Sep 17 00:00:00 2001 From: "roger.welin" Date: Wed, 10 Apr 2024 13:36:12 +0200 Subject: [PATCH 3/3] add insecure flag for skipping tls certificate check --- cmd/cassowary/cli.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/cassowary/cli.go b/cmd/cassowary/cli.go index a6c3f43..9bf1b44 100644 --- a/cmd/cassowary/cli.go +++ b/cmd/cassowary/cli.go @@ -175,6 +175,10 @@ func validateCLI(c *cli.Context) error { } tlsConfig := new(tls.Config) + if c.Bool("insecure") { + tlsConfig.InsecureSkipVerify = true + } + if c.String("ca") != "" { pemCerts, err := ioutil.ReadFile(c.String("ca")) if err != nil { @@ -329,6 +333,10 @@ func runCLI(args []string) { Name: "disable-keep-alive", Usage: "use this flag to disable http keep-alive", }, + &cli.BoolFlag{ + Name: "insecure", + Usage: "use this flag to skip ssl verification", + }, &cli.StringFlag{ Name: "ca", Usage: "ca certificate to verify peer against",