-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix/373_vouch_in_a_path
- Loading branch information
Showing
26 changed files
with
372 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Publish Docker image to Quay.io using Dockerfile.alpine | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- 'v*' | ||
|
||
|
||
jobs: | ||
publish-to-docker-quayio: | ||
runs-on: ubuntu-latest | ||
env: | ||
DOCKER_REPO: quay.io | ||
|
||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Log in to Docker repository | ||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | ||
with: | ||
registry: ${{ env.DOCKER_REPO }} | ||
username: ${{ secrets.QUAYIO_ROBOT_USERNAME }} | ||
password: ${{ secrets.QUAYIO_ROBOT_PASSWORD }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@a67f45cb0f8e65cf693a0bc5bfa1c5057c623030 | ||
with: | ||
images: quay.io/vouch/vouch-proxy | ||
flavor: | | ||
prefix=alpine-,onlatest=true | ||
tags: | | ||
type=ref,event=branch | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
- name: Build and push Docker image using Dockerfile.alpine | ||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc | ||
with: | ||
file: Dockerfile.alpine | ||
context: . | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Publish Docker image to Quay.io | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- 'v*' | ||
|
||
|
||
jobs: | ||
publish-to-docker-quayio: | ||
runs-on: ubuntu-latest | ||
env: | ||
DOCKER_REPO: quay.io | ||
|
||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Log in to Docker repository | ||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | ||
with: | ||
registry: ${{ env.DOCKER_REPO }} | ||
username: ${{ secrets.QUAYIO_ROBOT_USERNAME }} | ||
password: ${{ secrets.QUAYIO_ROBOT_PASSWORD }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 | ||
with: | ||
images: quay.io/vouch/vouch-proxy | ||
tags: | | ||
type=ref,event=branch | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
- name: Build and push Docker image using Dockerfile | ||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc | ||
with: | ||
context: . | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Changelog for Vouch Proxy | ||
|
||
## Unreleased | ||
|
||
Coming soon! Please document any work in progress here as part of your PR. It will be moved to the next tag when released. | ||
|
||
## v0.32.0 | ||
|
||
- [slack oidc example](https://github.com/vouch/vouch-proxy/blob/master/config/config.yml_example_slack) and [slack app manifest](https://github.com/vouch/vouch-proxy/blob/master/examples/slack/vouch-slack-oidc-app-manifest.yml) | ||
- [CHANGELOG.md](https://github.com/vouch/vouch-proxy/blob/master/CHANGELOG.md) | ||
|
||
## v0.31.0 | ||
|
||
- [use quay.io](https://quay.io/repository/vouch/vouch-proxy?tab=tags) instead of Docker Hub for docker image hosting | ||
- use [httprouter's](https://github.com/julienschmidt/httprouter) more performant mux | ||
|
||
## v0.29.0 | ||
|
||
- embed static assets as templates using [go:embed](https://golang.org/pkg/embed/) | ||
|
||
## v0.28.0 | ||
|
||
- add support for a custom 'relying party identifier' for ADFS | ||
|
||
_the rest is history_ and can be teased out with `git log` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,10 +20,6 @@ RUN ./do.sh install | |
FROM scratch | ||
LABEL maintainer="[email protected]" | ||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||
COPY templates /templates | ||
COPY .defaults.yml /.defaults.yml | ||
# see note for /static in main.go | ||
COPY static /static | ||
COPY --from=builder /go/bin/vouch-proxy /vouch-proxy | ||
EXPOSE 9090 | ||
ENTRYPOINT ["/vouch-proxy"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,10 +17,6 @@ FROM alpine:latest | |
LABEL maintainer="[email protected]" | ||
ENV VOUCH_ROOT=/ | ||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||
COPY templates /templates | ||
COPY .defaults.yml /.defaults.yml | ||
# see note for /static in main.go | ||
COPY static /static | ||
|
||
# do.sh requires bash | ||
RUN apk add --no-cache bash | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
# vouch config | ||
# bare minimum to get vouch running with Slack | ||
|
||
vouch: | ||
domains: | ||
- yourdomain.com | ||
|
||
# set allowAllUsers: true to use Vouch Proxy to just accept anyone who can authenticate at Gitea | ||
# allowAllUsers: true | ||
|
||
# cookie: | ||
# secure: false | ||
# vouch.cookie.domain must be set when enabling allowAllUsers | ||
# domain: yourdomain.com | ||
|
||
|
||
oauth: | ||
# create a new OAuth application at: | ||
# https://api.slack.com/apps | ||
# use the manifest at `examples/slack/vouch-slack-oidc-app-manifest.yml` | ||
# but be sure to match the `callback_url`'s below to the `redirect_urls` in the manifest | ||
# then install the new app to your slack instance | ||
provider: oidc | ||
# careful! the slack client_id must be single quoted so that the yaml parser | ||
# doesn't interpret it as a number (because yaml is actually javascript) | ||
client_id: 'xxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxx' | ||
client_secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
callback_url: https://vouch.yourdomain.com/auth | ||
# from https://slack.com/.well-known/openid-configuration | ||
auth_url: https://slack.com/openid/connect/authorize | ||
token_url: https://slack.com/api/openid.connect.token | ||
user_info_url: https://slack.com/api/openid.connect.userInfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
_metadata: | ||
major_version: 1 | ||
minor_version: 1 | ||
display_information: | ||
name: Vouch Proxy - Login to Slack | ||
description: enforce login to Slack to provide authorized access to your websites | ||
background_color: "#002da8" | ||
oauth_config: | ||
# these need to match the | ||
redirect_urls: | ||
- https://vouch.yourdomain.com/auth | ||
scopes: | ||
user: | ||
- openid | ||
- profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.