-
Notifications
You must be signed in to change notification settings - Fork 5
CH-224: Gatekeeper update #839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -27,6 +27,8 @@ data: | |||||
| forbidden-page: /templates/access-denied.html.tmpl | ||||||
| enable-default-deny: {{ $noWildcards }} | ||||||
| listen: 0.0.0.0:8080 | ||||||
| enable-encrypted-token: false | ||||||
| encryption-key: {{ .app.harness.secrets.gatekeeper | default (randAlphaNum 20) | quote }} | ||||||
|
||||||
| encryption-key: {{ .app.harness.secrets.gatekeeper | default (randAlphaNum 20) | quote }} | |
| encryption-key: {{ required "app.harness.secrets.gatekeeper (encryption-key) must be set" .app.harness.secrets.gatekeeper | quote }} |
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -55,7 +55,8 @@ harness: | |||||||
| # -- Service port. | ||||||||
| port: 80 | ||||||||
| # -- Auto generated secrets key-value pairs. If no value is provided, a random hash is generated | ||||||||
| secrets: {} | ||||||||
| secrets: | ||||||||
| gatekeeper: | ||||||||
|
Comment on lines
+58
to
+59
|
||||||||
| secrets: | |
| gatekeeper: | |
| secrets: {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
encryption-keyis rendered into a ConfigMap (proxy.yml), which means the key is stored in plaintext and readable to anyone with ConfigMap access. If this key is meant to be secret (as implied by “encryption key”), it should come from a Kubernetes Secret (e.g., via env varsecretKeyRefor mounting a Secret file) rather than being embedded in a ConfigMap.