Skip to content
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

feat: add proxyVarsFromSecret value #196

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
a78c177
feat: add proxyVarsFromSecret value
aslafy-z Apr 9, 2024
73adb59
Merge branch 'main' into feat/proxyVarsFromSecret
pierluigilenoci May 1, 2024
274f6a4
Merge branch 'main' into feat/proxyVarsFromSecret
pierluigilenoci May 7, 2024
6257a7b
Merge branch 'main' into feat/proxyVarsFromSecret
pierluigilenoci May 30, 2024
494e9f3
Merge branch 'main' into feat/proxyVarsFromSecret
pierluigilenoci May 31, 2024
ab95c60
Merge branch 'main' into feat/proxyVarsFromSecret
pierluigilenoci May 31, 2024
4e392b5
Merge branch 'main' into feat/proxyVarsFromSecret
aslafy-z Jul 8, 2024
641385c
Merge branch 'main' into feat/proxyVarsFromSecret
pierluigilenoci Aug 23, 2024
3d5df19
Merge branch 'main' into feat/proxyVarsFromSecret
pierluigilenoci Aug 28, 2024
3b1b191
Merge branch 'main' into feat/proxyVarsFromSecret
pierluigilenoci Dec 23, 2024
7e17875
Merge branch 'main' into feat/proxyVarsFromSecret
pierluigilenoci Dec 30, 2024
be4ce12
Merge branch 'main' into feat/proxyVarsFromSecret
pierluigilenoci Jan 8, 2025
5d2ffbe
Update Chart.yaml
pierluigilenoci Jan 8, 2025
bdface2
Merge branch 'main' into feat/proxyVarsFromSecret
pierluigilenoci Jan 8, 2025
c078e90
Merge branch 'main' into feat/proxyVarsFromSecret
pierluigilenoci Feb 6, 2025
c3bffe0
Merge branch 'main' into feat/proxyVarsFromSecret
pierluigilenoci Feb 7, 2025
12e5cc8
Update helm/oauth2-proxy/Chart.yaml
pierluigilenoci Feb 10, 2025
2cd07c9
Merge branch 'main' into feat/proxyVarsFromSecret
pierluigilenoci Feb 10, 2025
e2ae4b8
rename proxyVarsFromSecret to envFromExistingSecret
tuunit Feb 10, 2025
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
8 changes: 4 additions & 4 deletions helm/oauth2-proxy/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: oauth2-proxy
version: 7.10.4
version: 7.10.5
apiVersion: v2
appVersion: 7.8.1
home: https://oauth2-proxy.github.io/oauth2-proxy/
Expand Down Expand Up @@ -31,8 +31,8 @@ maintainers:
kubeVersion: ">=1.16.0-0"
annotations:
artifacthub.io/changes: |
- kind: fixed
description: automatically concatenate connectionUrls with comma
- kind: added
description: Add proxyVarsFromSecret value
links:
- name: Github PR
url: https://github.com/oauth2-proxy/manifests/pull/268
url: https://github.com/oauth2-proxy/manifests/pull/196
5 changes: 5 additions & 0 deletions helm/oauth2-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ spec:
lifecycle:
{{ toYaml .Values.lifecycle | indent 10 }}
{{- end }}
{{- with .Values.proxyVarsFromSecret }}
envFrom:
- secretRef:
name: {{ . }}
{{- end }}
env:
{{- if .Values.proxyVarsAsSecrets }}
Copy link
Member

@tuunit tuunit Feb 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

proxyVarsAsSecrets and proxyVarsFromSecret should be mutually exclusive. Therefore I would like to see this check extended so that proxyVarsAsSecrets aren't rendered when proxyVarsFromSecret is set

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR was given to us as a "gift"; if we want to bring it in, we must introduce the changes we want. 🤷🏻‍♂️

- name: OAUTH2_PROXY_CLIENT_ID
Expand Down
3 changes: 3 additions & 0 deletions helm/oauth2-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ nodeSelector: {}
# Whether to use secrets instead of environment values for setting up OAUTH2_PROXY variables
proxyVarsAsSecrets: true

# Import all environment variables from an existing secret. Not compatible with 'proxyVarsAsSecrets'.
# proxyVarsFromSecret: my-secret-name

# Configure Kubernetes liveness and readiness probes.
# Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/
# Disable both when deploying with Istio 1.0 mTLS. https://istio.io/help/faq/security/#k8s-health-checks
Expand Down
Loading