From 1d808a47d13c0eb3f1abbcb2a95f74df213b90b1 Mon Sep 17 00:00:00 2001 From: Tom Elliff Date: Tue, 28 Jan 2020 09:05:04 +0000 Subject: [PATCH 1/2] Disable cgo on release builds Tries to link against libc which isn't present in musl based distributions (such as Alpine Linux). Closes https://github.com/pusher/oauth2_proxy/issues/329 --- dist.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist.sh b/dist.sh index c161ac32..37052125 100755 --- a/dist.sh +++ b/dist.sh @@ -27,10 +27,10 @@ for ARCH in "${ARCHS[@]}"; do # Create architecture specific binaries if [[ ${GO_ARCH} == "armv6" ]]; then - GO111MODULE=on GOOS=${GO_OS} GOARCH=arm GOARM=6 go build -ldflags="-X main.VERSION=${VERSION}" \ + GO111MODULE=on GOOS=${GO_OS} GOARCH=arm GOARM=6 CGO_ENABLED=0 go build -ldflags="-X main.VERSION=${VERSION}" \ -o release/${BINARY}-${VERSION}.${ARCH}.${GO_VERSION}/${BINARY} github.com/pusher/oauth2_proxy else - GO111MODULE=on GOOS=${GO_OS} GOARCH=${GO_ARCH} go build -ldflags="-X main.VERSION=${VERSION}" \ + GO111MODULE=on GOOS=${GO_OS} GOARCH=${GO_ARCH} CGO_ENABLED=0 go build -ldflags="-X main.VERSION=${VERSION}" \ -o release/${BINARY}-${VERSION}.${ARCH}.${GO_VERSION}/${BINARY} github.com/pusher/oauth2_proxy fi From c32a7d8e2c2de4ec779f301f4d32271157043ae3 Mon Sep 17 00:00:00 2001 From: David Stark Date: Wed, 29 Jan 2020 11:52:32 +0000 Subject: [PATCH 2/2] Release v5.0.0 Changelog updated --- CHANGELOG.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bb6384c..767cde7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,16 +1,35 @@ # Vx.x.x (Pre-release) +## Release Hightlights + ## Important Notes ## Breaking Changes +## Changes since v5.0.0 + +# v5.0.0 + +## Release Hightlights +- Disabled CGO (binaries will work regardless og glibc/musl) +- Allow whitelisted redirect ports +- Nextcloud provider support added +- DigitalOcean provider support added + +## Important Notes +N/A + +## Breaking Changes + - [#321](https://github.com/pusher/oauth2_proxy/pull/331) Add reverse proxy boolean flag to control whether headers like `X-Real-Ip` are accepted. This defaults to false. **Usage behind a reverse proxy will require this flag to be set to avoid logging the reverse proxy IP address**. ## Changes since v4.1.0 +- [#331](https://github.com/pusher/oauth2_proxy/pull/331) Add reverse proxy setting (@martin-css) +- [#365](https://github.com/pusher/oauth2_proxy/pull/365) Build with CGO=0 (@tomelliff) - [#339](https://github.com/pusher/oauth2_proxy/pull/339) Add configuration for cookie 'SameSite' value. (@pgroudas) -- [#347](https://github.com/pusher/oauth2_proxy/pull/347) Update keycloak provider configuration documentation +- [#347](https://github.com/pusher/oauth2_proxy/pull/347) Update keycloak provider configuration documentation. (@sushiMix) - [#325](https://github.com/pusher/oauth2_proxy/pull/325) dist.sh: use sha256sum (@syscll) - [#179](https://github.com/pusher/oauth2_proxy/pull/179) Add Nextcloud provider (@Ramblurr) - [#280](https://github.com/pusher/oauth2_proxy/pull/280) whitelisted redirect domains: add support for whitelisting specific ports or allowing wildcard ports (@kamaln7)