git.iko.soy/typeable/oauth2-proxy
on master help sign in
Merge pull request #463 from pusher/release-5.1.0
4cdedc8Joel Speed
.travis.yml+1−2
@@ -1,10 +1,9 @@
1language: go
1language: go
2go:
2go:
3− - 1.13.x
4 - 1.14.x
3 - 1.14.x
5install:
4install:
6 # Fetch dependencies
5 # Fetch dependencies
7− - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin v1.23.6
6+ - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin v1.24.0
8 - GO111MODULE=on go mod download
7 - GO111MODULE=on go mod download
9script:
8script:
10 - ./configure && make test
9 - ./configure && make test
CHANGELOG.md+15
@@ -2,10 +2,25 @@
2
2
3## Release Hightlights
3## Release Hightlights
4
4
5+## Important Notes
6+
7+## Breaking Changes
8+
9+## Changes since v5.1.0
10+
11+# v5.1.0
12+
13+## Release Hightlights
14+- Bump to Go 1.14
15+- Reduced number of Google API requests for group validation
16+- Support for Redis Cluster
17+- Support for overriding hosts in hosts file
18+
5## Important Notes
19## Important Notes
6- [#335] The session expiry for the OIDC provider is now taken from the Token Response (expires_in) rather than from the id_token (exp)
20- [#335] The session expiry for the OIDC provider is now taken from the Token Response (expires_in) rather than from the id_token (exp)
7
21
8## Breaking Changes
22## Breaking Changes
23+N/A
9
24
10## Changes since v5.0.0
25## Changes since v5.0.0
11
26
Dockerfile+1−1
@@ -1,7 +1,7 @@
1FROM golang:1.14-buster AS builder
1FROM golang:1.14-buster AS builder
2
2
3# Download tools
3# Download tools
4−RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.23.6
4+RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.24.0
5
5
6# Copy sources
6# Copy sources
7WORKDIR $GOPATH/src/github.com/pusher/oauth2_proxy
7WORKDIR $GOPATH/src/github.com/pusher/oauth2_proxy
Dockerfile.arm64+1−1
@@ -1,7 +1,7 @@
1FROM golang:1.14-buster AS builder
1FROM golang:1.14-buster AS builder
2
2
3# Download tools
3# Download tools
4−RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.23.6
4+RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.24.0
5
5
6# Copy sources
6# Copy sources
7WORKDIR $GOPATH/src/github.com/pusher/oauth2_proxy
7WORKDIR $GOPATH/src/github.com/pusher/oauth2_proxy
Dockerfile.armv6+1−1
@@ -1,7 +1,7 @@
1FROM golang:1.14-buster AS builder
1FROM golang:1.14-buster AS builder
2
2
3# Download tools
3# Download tools
4−RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.23.6
4+RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.24.0
5
5
6# Copy sources
6# Copy sources
7WORKDIR $GOPATH/src/github.com/pusher/oauth2_proxy
7WORKDIR $GOPATH/src/github.com/pusher/oauth2_proxy
configure+4−4
@@ -5,8 +5,8 @@ GREEN='\033[0;32m'
5BLUE='\033[0;34m'
5BLUE='\033[0;34m'
6NC='\033[0m'
6NC='\033[0m'
7
7
8−if [ -z "${BASH_VERSINFO}" ] || [ -z "${BASH_VERSINFO[0]}" ] || [ ${BASH_VERSINFO[0]} -lt 4 ]; then
8+if [ -z "${BASH_VERSINFO}" ] || [ -z "${BASH_VERSINFO[0]}" ] || [ ${BASH_VERSINFO[0]} -lt 4 ]; then
9− echo "This script requires Bash version >= 4"; exit 1;
9+ echo "This script requires Bash version >= 4"; exit 1;
10fi
10fi
11
11
12declare -A tools=()
12declare -A tools=()
@@ -81,7 +81,7 @@ check_for() {
81check_go_version() {
81check_go_version() {
82 echo -n "Checking go version... "
82 echo -n "Checking go version... "
83 GO_VERSION=$(${tools[go]} version | ${tools[awk]} '{where = match($0, /[0-9]\.[0-9]+\.[0-9]*/); if (where != 0) print substr($0, RSTART, RLENGTH)}')
83 GO_VERSION=$(${tools[go]} version | ${tools[awk]} '{where = match($0, /[0-9]\.[0-9]+\.[0-9]*/); if (where != 0) print substr($0, RSTART, RLENGTH)}')
84− vercomp $GO_VERSION 1.12
84+ vercomp $GO_VERSION 1.14
85 case $? in
85 case $? in
86 0) ;&
86 0) ;&
87 1)
87 1)
@@ -91,7 +91,7 @@ check_go_version() {
91 ;;
91 ;;
92 2)
92 2)
93 printf "${RED}"
93 printf "${RED}"
94− echo "$GO_VERSION < 1.12"
94+ echo "$GO_VERSION < 1.14"
95 exit 1
95 exit 1
96 ;;
96 ;;
97 esac
97 esac
dist.sh+3−3
@@ -7,10 +7,10 @@ if [[ -z ${BINARY} ]] || [[ -z ${VERSION} ]]; then
7 exit 1
7 exit 1
8fi
8fi
9
9
10−# Check for Go version 1.13.*
10+# Check for Go version 1.14.*
11GO_VERSION=$(go version | awk '{print $3}')
11GO_VERSION=$(go version | awk '{print $3}')
12−if [[ ! "${GO_VERSION}" =~ ^go1.13.* ]]; then
12+if [[ ! "${GO_VERSION}" =~ ^go1.14.* ]]; then
13− echo "Go version must be >= go1.13"
13+ echo "Go version must be >= go1.14"
14 exit 1
14 exit 1
15fi
15fi
16
16
go.mod+1−1
@@ -1,6 +1,6 @@
1module github.com/pusher/oauth2_proxy
1module github.com/pusher/oauth2_proxy
2
2
3−go 1.13
3+go 1.14
4
4
5require (
5require (
6 github.com/BurntSushi/toml v0.3.1
6 github.com/BurntSushi/toml v0.3.1