git.iko.soy/typeable/oauth2-proxy
on master help sign in
Update go version to 1.16

This includes a fix for our samesite cookie parsing. The behaviour changed in 1.16 so that the default value now leaves it empty, so it's equivalent to not setting it (as per spec)

commit5fe947eb07018471fd8d14ebdf162637490cf64d authorJoel Speed <joel.speed@hotmail.co.uk> dateWed 17 Feb 2021, 20:59 (6 years ago) parent322308a
7 files changed+8−7
.github/workflows/ci.yaml+2−2 CHANGELOG.md+1 Dockerfile+1−1 Dockerfile.arm64+1−1 Dockerfile.armv6+1−1 go.mod+1−1 pkg/cookies/cookies.go+1−1
.github/workflows/ci.yaml+2−2
@@ -20,10 +20,10 @@ jobs:
2020 - name: Check out code
2121 uses: actions/checkout@v2
2222
23− - name: Set up Go 1.15
23+ - name: Set up Go 1.16
2424 uses: actions/setup-go@v2
2525 with:
26− go-version: 1.15.x
26+ go-version: 1.16.x
2727 id: go
2828
2929 - name: Get dependencies
CHANGELOG.md+1
@@ -8,6 +8,7 @@
88
99## Changes since v7.0.1
1010
11+- [#1054](https://github.com/oauth2-proxy/oauth2-proxy/pull/1054) Update to Go 1.16 (@JoelSpeed)
1112- [#1052](https://github.com/oauth2-proxy/oauth2-proxy/pull/1052) Update golangci-lint to latest version (v1.36.0) (@JoelSpeed)
1213- [#1043](https://github.com/oauth2-proxy/oauth2-proxy/pull/1043) Refactor Sign In Page rendering and capture all page rendering code in pagewriter package (@JoelSpeed)
1314- [#1029](https://github.com/oauth2-proxy/oauth2-proxy/pull/1029) Refactor error page rendering and allow debug messages on error (@JoelSpeed)
Dockerfile+1−1
@@ -1,4 +1,4 @@
1−FROM golang:1.15-buster AS builder
1+FROM golang:1.16-buster AS builder
22ARG VERSION
33
44# Copy sources
Dockerfile.arm64+1−1
@@ -1,4 +1,4 @@
1−FROM golang:1.15-buster AS builder
1+FROM golang:1.16-buster AS builder
22ARG VERSION
33
44# Copy sources
Dockerfile.armv6+1−1
@@ -1,4 +1,4 @@
1−FROM golang:1.15-buster AS builder
1+FROM golang:1.16-buster AS builder
22ARG VERSION
33
44# Copy sources
go.mod+1−1
@@ -1,6 +1,6 @@
11module github.com/oauth2-proxy/oauth2-proxy/v7
22
3−go 1.15
3+go 1.16
44
55require (
66 github.com/Bose/minisentinel v0.0.0-20200130220412-917c5a9223bb
pkg/cookies/cookies.go+1−1
@@ -76,7 +76,7 @@ func ParseSameSite(v string) http.SameSite {
7676 case "none":
7777 return http.SameSiteNoneMode
7878 case "":
79− return http.SameSiteDefaultMode
79+ return 0
8080 default:
8181 panic(fmt.Sprintf("Invalid value for SameSite: %s", v))
8282 }