Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
932 commits
Select commit Hold shift + click to select a range
7b1882a
Merge branch 'master' into pr/yannh/331
bnfinet Jan 27, 2021
d0d49be
Merge branch 'master' into pr/simongottschlag/320
bnfinet Jan 27, 2021
6418e52
no change needed
bnfinet Jan 27, 2021
53ed07a
#331 add env vars
bnfinet Jan 27, 2021
d4264fe
#331 use .defaults.yml to set HS256
bnfinet Jan 27, 2021
906a690
add Alibaba/Aliyun provider support
Gourds Jan 28, 2021
10f1000
#354 500 error for token creation fail
bnfinet Jan 31, 2021
f926918
#354 clarify audience (aud) check
bnfinet Jan 31, 2021
c26c662
Merge branch 'master' into pr/Gourds/356
bnfinet Feb 2, 2021
d0338ca
Merge branch 'master' into pr/yannh/331
bnfinet Feb 2, 2021
1b0e2af
Merge branch 'master' into pr/simongottschlag/320
bnfinet Feb 2, 2021
33530cd
replace latency min --> mean
bnfinet Feb 18, 2021
2f97af4
golang 1.15 builder image
bnfinet Feb 18, 2021
d4c5a4a
fix #361 build errors by using go modules system
bnfinet Feb 18, 2021
416cfb6
fix #361 with go modules, upgrade Docker to go 1.15
bnfinet Feb 18, 2021
ffd4824
Merge branch 'fix/361_build'
bnfinet Feb 18, 2021
e1ab85e
Merge branch 'master' into pr/simongottschlag/320
bnfinet Feb 18, 2021
8a0053d
Merge branch 'master' into pr/yannh/331
bnfinet Feb 18, 2021
f353ab6
Merge branch 'master' into pr/Gourds/356
bnfinet Feb 18, 2021
7461d4b
replace version badge with shields.io tag badge
bnfinet Feb 19, 2021
f11168f
replace version badge with shields.io tag badge
bnfinet Feb 19, 2021
3a8e365
go report card items (spelling, gofmt)
bnfinet Feb 19, 2021
09a5fcb
Merge branch 'master' into pr/Gourds/356
bnfinet Feb 19, 2021
4e10aee
#344 formatting, add README entry
bnfinet Feb 19, 2021
6e33d2a
do.sh: Changes the shebang to: /usr/bin/env bash since in FreeBSD bas…
Feb 21, 2021
09a72ca
fix #368 build on FreeBSD and Linux
bnfinet Feb 21, 2021
b928419
spelling error transposition
bnfinet Mar 3, 2021
6d8b79a
#320 un-rm configureOAuthClient() HT @iamareuben
bnfinet Mar 10, 2021
71b8541
use the error template for Error 401
punkle Mar 12, 2021
e63464c
Merge branch 'master' of github.com:vouch/vouch-proxy into rsa-signin…
yannh Mar 27, 2021
092413b
Generate RSA keys during testing, move key parsing to cfg.go
yannh Mar 27, 2021
1b8584d
Remove gitguardian cfg file
yannh Mar 27, 2021
431c374
Install openssl dep in Travis
yannh Mar 27, 2021
5c616c8
Install openssl dep in Travis
yannh Mar 27, 2021
9742d28
Update go to 1.16 to fix go get failure
yannh Mar 27, 2021
f450143
Update go to 1.16 to fix go get failure
yannh Mar 27, 2021
18b5440
errConfigIsBad improvement and TODO
bnfinet Apr 7, 2021
b9007f0
don't log the oauth client creds, even in debug
bnfinet May 18, 2021
61b6d62
bump to go version 1.15
bnfinet May 18, 2021
6577317
bump to go version 1.16
bnfinet May 18, 2021
6970b92
bump to go version 1.16
bnfinet May 18, 2021
a0d33f0
Merge branch 'master' into pr/simongottschlag/320
bnfinet May 19, 2021
27a3286
Merge branch 'pr/simongottschlag/320'
bnfinet May 19, 2021
cc8a885
Merge branch 'master' into pr/yannh/331
bnfinet May 19, 2021
19aaed1
ignore rsa keys created for testing
bnfinet May 19, 2021
9b6ba4f
Merge branch 'master' into pr/punkle/375
bnfinet May 20, 2021
dd116e4
#375 use correct error codes, general cleanup
bnfinet May 20, 2021
db40d4f
make sure JWT expires from cache by jwt.expiration
bnfinet May 20, 2021
1a3c67a
move the #vouch irc channel to libera.chat
bnfinet Jun 1, 2021
f78e125
Added support for a custom 'relying party identifier' in a ADFS confi…
Herbrant Jun 7, 2021
cf960f9
Updated adfs examples
Herbrant Jun 25, 2021
9830da1
Added relying_party_id env in tests for env vars
Herbrant Jun 25, 2021
06331fb
embed the static files into the vouch binary
gdamjan Jul 6, 2021
a4d64cc
embed the template files into the vouch binary
gdamjan Jul 6, 2021
930fb8e
#189 adfs relying_party_id minor adjustments
bnfinet Jul 30, 2021
2eca9f1
#406 migrate Docker builds to quay.io
bnfinet Jul 31, 2021
dc6261c
use github.com/golang-jwt/jwt
bnfinet Jul 31, 2021
8ca24f1
introduce responses.LoadTemplates, responses.Configure() is back
gdamjan Jul 31, 2021
ad7d1e6
fix responses.Configure() test too
gdamjan Jul 31, 2021
8ba0c55
#398 hold embeded templates in cfg.Templates
bnfinet Aug 2, 2021
33847ed
#398 embed .defaults.yml
bnfinet Aug 2, 2021
9d66192
Merge branch 'master' into pr/gdamjan/398
bnfinet Aug 2, 2021
4d39cb1
adjust testing environment for go:embed
bnfinet Aug 3, 2021
c5a0944
Merge branch 'master' into fix/jwtcache_jwtexpiration
bnfinet Aug 3, 2021
20cb366
set cache expiration to jwt expiration
bnfinet Aug 3, 2021
a7b7a07
systemd example, claims cookie language
bnfinet Aug 3, 2021
d5c4065
use log.Warn for common "token not found" error
bnfinet Aug 4, 2021
7dd36bf
use httprouter's more performant mux
bnfinet Aug 4, 2021
f0ac39a
#406 gh action docker build and push to quay.io
bnfinet Aug 4, 2021
dc80681
#406 gh action docker build and push to quay.io
bnfinet Aug 4, 2021
64b6903
#406 gh action docker alpine build push to quay.io
bnfinet Aug 4, 2021
8288b58
#406 drop onlatest, name as alpine
bnfinet Aug 4, 2021
ace28e8
Merge branch 'fix/docker_build_push_quay.io'
bnfinet Aug 4, 2021
e81acda
#406 fix naming of alpine images, update README
bnfinet Aug 4, 2021
62eb090
#406 use travis instead of quay.io badge
bnfinet Aug 4, 2021
c98de26
copy the struct, not the address
bnfinet Aug 5, 2021
8efcbd2
Revert "copy the struct, not the address"
bnfinet Aug 5, 2021
8567f12
slack oidc example and app manifest
bnfinet Aug 5, 2021
252d46b
fix #304 add CHANGELOG.md
bnfinet Aug 5, 2021
51c78b3
add note regarding redirect_urls
bnfinet Aug 5, 2021
438705e
add `-version` flag
bnfinet Aug 6, 2021
e553b21
fix #408 add semicolons to auth_request_set
bnfinet Aug 7, 2021
dd9c0e1
Update README.md
cpatel-secureauth Aug 18, 2021
63c05d5
Update README.md
cpatel-secureauth Aug 18, 2021
634f89f
#359 link to node.js example from the README
bnfinet Aug 18, 2021
63f36bc
X-Vouch-IdP-Claims minor typo
bnfinet Aug 18, 2021
446b18d
Discord example from @eltariel
bnfinet Aug 19, 2021
8ce0c49
Adding config example for SecureAuth
cpatel-secureauth Aug 20, 2021
56418db
Update README.md
cpatel-secureauth Aug 20, 2021
bbc10b7
adjust SecureAuth entry for brevity and clarity
bnfinet Aug 21, 2021
aabb7ca
Merge branch 'pr/cpatel-secureauth/411'
bnfinet Aug 21, 2021
4901f6c
include CHANGELOG in "Contributing"
bnfinet Aug 21, 2021
428cda6
#373 set `vouch.document_root` for "vouch in a path"
bnfinet Aug 28, 2021
45614c3
Add OAuth ClaimsParameter support
vallahaye Aug 28, 2021
33d32dc
Add OAuth ClaimsParameter test, update configs and CHANGELOG
vallahaye Aug 28, 2021
5e819a0
#373 VP "in a path"
bnfinet Aug 30, 2021
6794366
Merge branch 'master' into pr/vallahaye/415
bnfinet Aug 30, 2021
442b5a5
#414 support Twitch as OIDC IdP
bnfinet Aug 30, 2021
589462b
vouch --> Vouch Proxy
bnfinet Aug 30, 2021
6ca347b
fix Table of Contents links
bnfinet Aug 30, 2021
10ed96b
No longer require UserInfoURL to be set for Azure (#417)
Sep 7, 2021
0c1ff37
#417 azure shouldn't require `oauth.user_info_url`
bnfinet Sep 9, 2021
2163a84
link to local dev SPA example
bnfinet Sep 9, 2021
78349de
link to `satisfy any;` example
bnfinet Sep 10, 2021
f829aa7
Add proxy_ssl verify statements to the k8s-ingress example, to avoid …
mig5 Sep 23, 2021
3c2031f
docs: sample vouch-proxy 'in a path' typos
jboutsicaris Sep 26, 2021
a912d00
Make session maxage configurable
mzjp2 Oct 4, 2021
db0c85c
Fix placement of test
mzjp2 Oct 4, 2021
ba733b7
#433 add warning about required scopes
bnfinet Oct 7, 2021
894baad
Add missing `Set` and `tableHasKey` functions
Oct 8, 2021
50a3036
Set logging level private token to debug
lispyclouds Oct 8, 2021
46fc9fa
move sameSite config to cookie.Configure()
bnfinet Oct 8, 2021
17cf3f6
#428 move and edit for clarity
bnfinet Oct 8, 2021
30308c1
Merge branch 'master' into pr/jboutsicaris/429
bnfinet Oct 8, 2021
c34d496
Merge branch 'master' into pr/felixgeyer/435
bnfinet Oct 8, 2021
31511d1
Merge branch 'master' into pr/lispyclouds/436
bnfinet Oct 8, 2021
7f8d0eb
v0.34.2
bnfinet Oct 8, 2021
c5b2639
Merge branch 'master' into pr/mzjp2/431
bnfinet Oct 8, 2021
4c364dd
#318 configure as minutes
bnfinet Oct 8, 2021
f8410f4
Specify default is 5
mzjp2 Oct 8, 2021
8e4683b
fix: make renderError() regard DocumentRoot config var
rene-s Oct 14, 2021
da481b8
fix #441 https callback_urls
bnfinet Oct 16, 2021
0eaaeae
#421 link to issue from README
bnfinet Oct 16, 2021
2eafe3d
Merge branch 'master' into pr/mig5/428
bnfinet Oct 16, 2021
9f80f1e
Merge branch 'master' into pr/rene-s/439
bnfinet Oct 16, 2021
b266705
#439 honor DocumentRoot for error pages
bnfinet Oct 16, 2021
6a498ab
run as non-root
Nov 3, 2021
59c7433
do.sh
Nov 3, 2021
51b5bfe
successful build
Nov 3, 2021
f1f221f
PR Feedback
Nov 3, 2021
6a9fbd8
Add to dockerfile too!
Nov 4, 2021
094d4bf
#288 Ory Hydra support
bnfinet Dec 6, 2021
72fcdad
use 'quay.io/vouch/vouch-proxy' image names
bnfinet Dec 6, 2021
07d1482
#442 in Docker containers run as user
bnfinet Dec 7, 2021
a901c3f
Merge branch 'pr/apanzerj/444'
bnfinet Dec 7, 2021
2eee0d5
Adding the example for a Gitlab CE configuration example
ctrix Jan 3, 2022
3527b3d
Remove contributing details into a file..
punkle Feb 25, 2022
6c3da04
#463 adjust TOC target link
bnfinet Feb 25, 2022
4bc042c
#457 adjust README links and attributions for helm-charts
bnfinet Feb 25, 2022
b5ac0a5
Merge branch 'master' into pr/ctrix/450
bnfinet Feb 25, 2022
e656d4e
adjust links to README
bnfinet Mar 8, 2022
530f700
Fix nginx syntax highlight in README
silverwind Mar 22, 2022
c0aab85
Merge branch 'pr/silverwind/466'
bnfinet Mar 22, 2022
044ac2a
Make WriteTimeout, ReadTimeout and IdleTimeout configurable (defaults…
mig5 Mar 30, 2022
3ed1de3
Fix comments in Google example config
Samyak2 Apr 7, 2022
a403478
ignore git github and whitesource
bnfinet Apr 8, 2022
061d3e3
Merge branch 'master' into pr/Samyak2/469
bnfinet Apr 8, 2022
37ac8ab
Merge branch 'master' into pr/mig5/468
bnfinet Apr 8, 2022
2d3ea12
v0.37.0
bnfinet Apr 8, 2022
f091f9b
Mention github callback_url should be set to /auth
jrib Jun 9, 2022
877ee11
Mention vp_in_a_path for github callback_url
jrib Jun 10, 2022
2a551a7
vouch-proxy#477 Build-time hostname detection fails on platforms othe…
bahamat Jun 14, 2022
09c7fb0
golang1.18 - fix parsing of invalid query strings in normalizeLoginUR…
flexponsive Jul 1, 2022
0ea205b
restore go.mod and go.sum files
flexponsive Aug 9, 2022
c3dd87c
improve config error check for private key
bnfinet Aug 12, 2022
aac995e
add log message "This is free software with ABSOLUTELY NO WARRANTY."
bnfinet Aug 12, 2022
8eae4e5
fix #492 build under go 1.16 by forcing use of go.uber.org/atomic@v1.9.0
bnfinet Aug 12, 2022
6f0c8d8
Merge branch 'pr/flexponsive/481'
bnfinet Aug 12, 2022
a7461a8
fix #493 by upgrading golang.org/x/net
bnfinet Aug 12, 2022
ca1e300
Add support for listening on unix domain sockets
squalus Aug 13, 2022
a047ce6
move copyright and no warranty warning up
bnfinet Aug 19, 2022
e8e2126
update links to config example in README
pgier Aug 25, 2022
278de3a
Merge pull request #478 from jrib/gitub-callback-url-note
bnfinet Jan 20, 2023
3abddb4
Merge pull request #479 from bahamat/issue_477
bnfinet Jan 20, 2023
c85ed06
Merge pull request #497 from pgier/fix-readme-link
bnfinet Jan 20, 2023
c85fac1
docs: add instructions for running tests (on terminal / in vscode) to…
flexponsive Nov 26, 2022
94533dd
Merge branch 'master' of github.com:vouch/vouch-proxy
bnfinet Jan 20, 2023
e5b8ae1
go modules update and tidy
bnfinet Jan 20, 2023
2c6a966
go 1.18
bnfinet Jan 21, 2023
9b8713c
remove IRC channel mention
bnfinet Jan 21, 2023
fdaa429
Merge branch 'master' into pr/squalus/488
bnfinet Jan 21, 2023
c1925e2
#488 set socket perm 0660 in .defaults.yml
bnfinet Jan 21, 2023
a676feb
general note about defaults
bnfinet Jan 21, 2023
ee84379
Fix same-page link
GraemeMeyerGT Jul 19, 2023
3a18fa2
fix same-page link
GraemeMeyerGT Jul 19, 2023
f836091
fix same-page link
GraemeMeyerGT Jul 19, 2023
874b373
copyright year++
bnfinet Aug 17, 2023
0516bcf
Added sample config file for keycloak
shkpk Feb 5, 2024
f825b4d
reverting .gitignore
shkpk Feb 5, 2024
bbeb9a5
Updated README.md for keycloak sample config
shkpk Feb 5, 2024
b639ae8
README.md file update for keycloak sample config
shkpk Feb 5, 2024
6669758
Fixed README.md file for keycloak sample config
shkpk Feb 5, 2024
520e8f9
switch config.yml_example_gitea to oidc provider
krumelmonster Feb 14, 2024
ad2e9ac
upgrade golang to v1.22
bnfinet Mar 23, 2024
0b2fdb6
Implemented Discord provider
loganintech Apr 5, 2023
89a7df3
Discord should also ask for the email by default
loganintech Apr 5, 2023
a1eecf6
Use global name if discriminator has been cleared
loganintech Jun 27, 2023
a27c1d7
Use the username instead of global name for ident
loganintech Jun 27, 2023
c9d5b76
Added changelog
loganintech Apr 5, 2023
89c0df9
Add Discord provider config example
loganintech Apr 5, 2023
4bef475
Discord changed their minds on unique usernames, so let's change our …
loganintech May 3, 2023
c2506bd
Updates with some messaging on new vs old username formats
loganintech Dec 24, 2023
648c98e
Rebased
loganintech Mar 24, 2024
4539c49
Updated discord provider to optionally match user IDs instead of user…
loganintech Mar 24, 2024
6bacd9e
Remove unused provider prop
loganintech Mar 24, 2024
d30df4f
Use example discord user ID instead of my actual user ID
loganintech Mar 24, 2024
2e8f4cf
Comments
loganintech Mar 24, 2024
dd1d72c
Correct handling typo
mcmarkj Aug 9, 2024
802d968
feat: upgrade go version from 1.21 to 1.23 to solve the gorilla/sessi…
aladeeb Aug 30, 2024
8a3ee3f
add the change to the changelog unreleased section
aladeeb Aug 30, 2024
2270a1e
add the new version in the ci yml files
aladeeb Aug 30, 2024
012b2fd
upgrade golang to v1.23
bnfinet Oct 1, 2024
d152926
add alpine builds of vouch-proxy images
punkle Apr 9, 2025
3179aeb
docs: add pocket-id config example
paulgreg Apr 9, 2025
1b805b6
refactor: clean gitignore rules
paulgreg Apr 10, 2025
c885c1a
597: Update mapstructure dependency to match viper.
UberPinguin May 14, 2025
93dc5d0
Fix typo
lptr Jun 18, 2025
599adc7
Merge pull request #598 from UberPinguin/fix-mapstructure-dependency
aaronpk Jul 16, 2025
66ba3ef
Merge pull request #599 from lptr/patch-1
aaronpk Jul 16, 2025
6cf86ad
Fix Github authentication
mig5 Jul 22, 2025
b1e6a81
skip performance tests by default
bnfinet Jul 23, 2025
d9fae8e
cleanup warnings, mostly from gostaticcheck
bnfinet Jul 23, 2025
c9753b4
v0.42.0 changelog entry
bnfinet Jul 23, 2025
398eaa1
typo on PR link 600 -> 601
bnfinet Jul 23, 2025
bf4db8c
Merge pull request #571 from mcmarkj/patch-1
bnfinet Jul 23, 2025
3f38690
add links to Pocket ID
bnfinet Jul 23, 2025
38d2ded
ignore config/config.yml_
bnfinet Jul 23, 2025
f1f32a3
Merge branch 'pr/paulgreg/595'
bnfinet Jul 23, 2025
ee2eca1
Merge branch 'master' of github.com:vouch/vouch-proxy
bnfinet Jul 23, 2025
aa0a89d
Merge branch 'pr/shkpk/551'
bnfinet Jul 23, 2025
ab46530
Merge branch 'pr/GraemeMeyerGT/537'
bnfinet Jul 23, 2025
3e1b76f
add docker multi-platform / multi-arch info
bnfinet Jul 23, 2025
174ada0
Merge branch 'pr/punkle/593'
bnfinet Jul 23, 2025
9197e44
#528 simplify user data cleanup
bnfinet Jul 23, 2025
9c73ef9
Merge branch 'master' into pr/loganintech/528
bnfinet Jul 23, 2025
e0fabbf
upgrade jwt package to v5
bnfinet Jul 23, 2025
d90bcf1
if discord_use_ids is set make sure discord is the provider
bnfinet Jul 23, 2025
62f9677
add URL to OAuth2 docs on discord
bnfinet Jul 23, 2025
4f0668d
Merge branch 'master' into pr/loganintech/528
bnfinet Jul 23, 2025
94122a1
upgrade jwt package to v5
bnfinet Jul 23, 2025
d091dc8
Revert "upgrade jwt package to v5"
bnfinet Jul 24, 2025
1de0c88
Revert "upgrade jwt package to v5"
bnfinet Jul 24, 2025
13d6a79
use golang-jwt/jwt/v4
bnfinet Jul 24, 2025
1a7458e
Merge branch 'master' into pr/loganintech/528
bnfinet Jul 24, 2025
e6494d9
#528 support for Discord OAuth2
bnfinet Jul 24, 2025
c220a5e
Merge branch 'master' into pr/krumelmonster/552
bnfinet Jul 25, 2025
eac3c88
upgrade to golang 1.26
bnfinet May 7, 2026
627598a
upgrade to golang 1.26
bnfinet May 7, 2026
3c3bfc8
upgrade to golang 1.26
bnfinet May 7, 2026
8884803
fix host check against jwtaudience claim
bnfinet May 8, 2026
ad0b75c
v0.47.0
bnfinet May 8, 2026
60e29be
set Expires element for proper cookie deletion
bnfinet May 8, 2026
d46c6e0
fix SiteInAudience for legacy comma-separated audience claims
macourteau May 12, 2026
622ddec
minor logging improvements
bnfinet May 13, 2026
839845f
Merge branch 'master' into pr/macourteau/609
bnfinet May 13, 2026
b683f60
- fix [#608](https://github.com/vouch/vouch-proxy/issues/608) accomod…
bnfinet May 13, 2026
fa18ce3
multi part cookie check improvements
bnfinet Jun 4, 2026
5a4ec4a
remove redundant test
bnfinet Jun 4, 2026
62eadec
v0.48.0 - multipart cookie numparts check
bnfinet Jun 4, 2026
2f720ec
add Security Advisory context to v0.48.0
bnfinet Jun 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions .defaults.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# default values for Vouch Proxy
# this is related to Env Vars
# https://github.com/vouch/vouch-proxy/issues/132
# https://github.com/vouch/vouch-proxy/pull/134

# you don't want to mess with these
vouch:
logLevel: info
testing: false
listen: 0.0.0.0
port: 9090
socket_mode: 0660
# document_root:
# domains:
allowAllUsers: false
publicAccess: false
# whiteList:
# teamWhitelist:
writeTimeout: 15
readTimeout: 15
idleTimeout: 15
tls:
# cert:
# key:
profile: intermediate

jwt:
# secret:
issuer: Vouch
maxAge: 240
compress: true
signing_method: HS256

cookie:
name: VouchCookie
# domain:
secure: true
httpOnly: true
maxAge: 240
# sameSite:

session:
name: VouchSession
maxAge: 5
# key:

headers:
jwt: X-Vouch-Token
user: X-Vouch-User
success: X-Vouch-Success
error: X-Vouch-Error
querystring: access_token
redirect: X-Vouch-Requested-URI
# claims:
claimheader: X-Vouch-IdP-Claims-
# https://github.com/vouch/vouch-proxy/issues/287
# accesstoken: X-Vouch-IdP-AccessToken
# idtoken: X-Vouch-IdP-IdToken
# test_url:
# post_logout_redirect_uris:
# oauth:
# provider:
# client_id:
# client_secret:
# callback_url:
# callback_urls:
# preferredDomain:
# auth_url:
# token_url:
# user_info_url:
# end_session_endpoint:
# scopes:
17 changes: 17 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
config/config.yml
pkg/model/storage-test.db
main
config/google_config.json
.vscode/*
lasso
config/config.yml_google
config/config.yml_github
config/secret
config/config.yml_orig
.dockerignore
Dockerfile
handlers/rice-box.go
certs
.cover/*
.github
.whitesource
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/open-a-github-issue-to-receive-support.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: open a GitHub Issue to receive support
about: Create a report to receive support with your config and to help us improve
title: ''
labels: ''
assignees: ''

---

**First read the README**
Specifically ***[Troubleshooting, Support and Feature Requests](https://github.com/vouch/vouch-proxy#troubleshooting-support-and-feature-requests-read-this-before-submitting-an-issue-at-github)***.

And please turn on `vouch.testing` before you ask for support.



** Please DO NOT post config and logs to this issue, use a Gist**
We prefer a [gist](https://gist.github.com/) but any reasonable paste service is fine.

**Describe the problem**
A clear and concise description of the behavior you are observing.
Please include which OAuth provider you are using.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
50 changes: 50 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: coverage

on:
workflow_dispatch:
push:
pull_request:

jobs:
coverage:
env:
GOPATH: ${{ github.workspace }}
VOUCH_ROOT: ${{ github.workspace }}/src/github.com/${{ github.repository }}
defaults:
run:
working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# go: ['1.14', '1.15']
go: ['1.26']

steps:
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: checkout
uses: actions/checkout@v2
with:
path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
- name: goget
run: ./do.sh goget
- name: coverage test
run: ./do.sh coverage

- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}/.cover/cover.out
flag-name: Go-${{ matrix.go }}
parallel: true

# notifies that all test jobs are finished.
finish:
needs: coverage
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true
43 changes: 43 additions & 0 deletions .github/workflows/docker-release-arm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Docker build and push voucher/vouch-proxy:latest-arm

on:
push:
branches:
- master

jobs:
publish-to-docker-arm:
runs-on: ubuntu-latest
env:
DOCKER_TAG: latest-arm
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Docker Buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1
with:
version: latest
- name: List available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Docker login (set DOCKER_USERNAME and DOCKER_PASSWORD in secrets)
if: ${{ success() && startsWith(github.repository, 'vouch/')}} # Remove this line, if you want everybody to publish to docker hub
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- name: Publish to docker as voucher/vouch-proxy
if: ${{ success() && startsWith(github.repository, 'vouch/')}}
run: |
docker buildx build \
--platform linux/arm/v7,linux/arm64 \
--push \
-t voucher/vouch-proxy:$DOCKER_TAG \
.
# Uncomment below to have github build to docker for every user. Watch out for indentation
# -
# name: Publish to docker as github_user/github_repo
# if: ${{ success() && !startsWith(github.repository, 'vouch/')}}
# run: |
# docker buildx build \
# --platform linux/amd64,linux/arm/v7,linux/arm64 \
# --push \
# -t $GITHUB_REPOSITORY:latest \
# .
56 changes: 56 additions & 0 deletions .github/workflows/docker-release-quayio-alpine.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
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: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- 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 }}
platforms: |
linux/amd64
linux/arm64
53 changes: 53 additions & 0 deletions .github/workflows/docker-release-quayio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
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: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- 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 }}
platforms: |
linux/amd64
linux/arm64
35 changes: 35 additions & 0 deletions .github/workflows/notify-irc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Push Notification"
on: [push, pull_request, create]

jobs:
notify-irc:
runs-on: ubuntu-latest
steps:
- name: irc push
uses: rectalogic/notify-irc@v1
if: github.event_name == 'push'
with:
channel: "#vouch"
server: irc.libera.chat
nickname: from-github
message: |
${{ github.actor }} pushed ${{ github.event.ref }} ${{ github.event.compare }}
${{ join(github.event.commits.*.message) }}
- name: irc pull request
uses: rectalogic/notify-irc@v1
if: github.event_name == 'pull_request'
with:
channel: "#vouch"
server: irc.libera.chat
nickname: from-github
message: |
${{ github.actor }} opened PR ${{ github.event.html_url }}
- name: irc tag created
uses: rectalogic/notify-irc@v1
if: github.event_name == 'create' && github.event.ref_type == 'tag'
with:
channel: "#vouch"
server: irc.libera.chat
nickname: from-github
message: |
${{ github.actor }} tagged ${{ github.repository }} ${{ github.event.ref }}
21 changes: 17 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
config/config.yml
data/lasso_bolt.db
pkg/model/storage-test.db
vouch
vouch-proxy
main
config/config.yml
config/*config.yml
config/config.yml_*
!config/config.yml_example_pocket-id
config/google_config.json
.vscode/*
config/secret
!config/testing/*
pkg/model/storage-test.db
.vscode/*
certs/*
coverage.out
coverage.html.env_google
.env*
.cover
config/testing/rsa.key
config/testing/rsa.pub
Loading