Skip to content

Commit

Permalink
Merge pull request #8 from punkle/master
Browse files Browse the repository at this point in the history
it is safer if the jwt.secret is not set by default
  • Loading branch information
halkeye authored Mar 13, 2021
2 parents 10ee1e6 + 294f99d commit e51fc8c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v1
appVersion: "0.17.3"
description: An SSO and OAuth login solution for nginx using the auth_request module
name: vouch
version: 1.0.0
version: 1.1.0
icon: https://avatars0.githubusercontent.com/u/45102943?s=200&v=4
sources:
- https://github.com/vouch/vouch-proxy/
Expand Down
3 changes: 3 additions & 0 deletions templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{{- if not .Values.existingSecretName }}
{{- if (lt (len .Values.config.vouch.jwt.secret) 1) }}
{{ fail "`config.vouch.jwt.secret` is not set and we are no longer providing a weak default" }}
{{- end }}
apiVersion: v1
kind: Secret
metadata:
Expand Down
2 changes: 1 addition & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ config:
allowAllUsers: false
whiteList: []
jwt:
secret: super-secret-stuff
secret: ''
testing: false

oauth:
Expand Down

0 comments on commit e51fc8c

Please sign in to comment.