Skip to content

Commit fd4d771

Browse files
authored
Merge pull request #4379 from mudit06mah/meUserInfoURL
Templates: Secret: Added meUserInfoURL to secrets
2 parents 418f13b + 8a42327 commit fd4d771

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

charts/headlamp/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ $ helm install my-headlamp headlamp/headlamp \
9090
| config.oidc.secret.name | string | `"oidc"` | Name of the OIDC secret |
9191
| config.oidc.externalSecret.enabled | bool | `false` | Enable using external secret for OIDC |
9292
| config.oidc.externalSecret.name | string | `""` | Name of external OIDC secret |
93-
| config.oidc.meUserInfoURL | string | `""` | URL to fetch additional user info for the /me endpoint. For oauth2proxy /oauth2/userinfo can be used. |
93+
| config.oidc.meUserInfoURL | string | `""` | URL to fetch additional user info for the /me endpoint. Useful for providers like oauth2-proxy. |
9494

9595
There are three ways to configure OIDC:
9696

@@ -102,6 +102,7 @@ config:
102102
clientSecret: "your-client-secret"
103103
issuerURL: "https://your-issuer"
104104
scopes: "openid profile email"
105+
meUserInfoURL: "https://headlamp.example.com/oauth2/userinfo"
105106
```
106107
107108
2. Using automatic secret creation:

charts/headlamp/templates/secret.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,8 @@ data:
3434
{{- with .usePKCE }}
3535
usePKCE: {{ . | toString | b64enc | quote }}
3636
{{- end }}
37+
{{- with .meUserInfoURL }}
38+
meUserInfoURL: {{ . | b64enc | quote }}
39+
{{- end }}
3740
{{- end }}
3841
{{- end }}

charts/headlamp/tests/expected_templates/me-user-info-url.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ metadata:
2020
namespace: default
2121
type: Opaque
2222
data:
23+
meUserInfoURL: "L29hdXRoMi91c2VyaW5mb2N1c3RvbTI="
2324
---
2425
# Source: headlamp/templates/clusterrolebinding.yaml
2526
apiVersion: rbac.authorization.k8s.io/v1

0 commit comments

Comments
 (0)