Add new config.jwtDomain value to oidc-discovery chart (#457)
Signed-off-by: Erik Godding Boye <[email protected]> Co-authored-by: Faisal Memon <[email protected]>
This commit is contained in:
co-authored by
Faisal Memon
parent
ee7aacf61b
commit
b7e9823a65
@@ -74,6 +74,7 @@ A Helm chart to install the SPIFFE OIDC discovery provider.
|
|||||||
| `insecureScheme.nginx.resources` | Resource requests and limits | `{}` |
|
| `insecureScheme.nginx.resources` | Resource requests and limits | `{}` |
|
||||||
| `jwtIssuer` | Path to JWT issuer. Defaults to oidc-discovery.$trustDomain if unset | `""` |
|
| `jwtIssuer` | Path to JWT issuer. Defaults to oidc-discovery.$trustDomain if unset | `""` |
|
||||||
| `config.logLevel` | The log level, valid values are "debug", "info", "warn", and "error" | `info` |
|
| `config.logLevel` | The log level, valid values are "debug", "info", "warn", and "error" | `info` |
|
||||||
|
| `config.jwtDomain` | The JWT domain. Defaults to oidc-discovery.$jwtIssuer URL-parsed host if unset | `""` |
|
||||||
| `config.additionalDomains` | Add additional domains that can be used for oidc discovery | `[]` |
|
| `config.additionalDomains` | Add additional domains that can be used for oidc discovery | `[]` |
|
||||||
| `imagePullSecrets` | Image pull secret names | `[]` |
|
| `imagePullSecrets` | Image pull secret names | `[]` |
|
||||||
| `nameOverride` | Name override | `""` |
|
| `nameOverride` | Name override | `""` |
|
||||||
|
|||||||
@@ -23,9 +23,12 @@ domains:
|
|||||||
- "{{ include "spiffe-oidc-discovery-provider.fullname" . }}"
|
- "{{ include "spiffe-oidc-discovery-provider.fullname" . }}"
|
||||||
- "{{ include "spiffe-oidc-discovery-provider.fullname" . }}.{{ include "spiffe-oidc-discovery-provider.namespace" . }}"
|
- "{{ include "spiffe-oidc-discovery-provider.fullname" . }}.{{ include "spiffe-oidc-discovery-provider.namespace" . }}"
|
||||||
- "{{ include "spiffe-oidc-discovery-provider.fullname" . }}.{{ include "spiffe-oidc-discovery-provider.namespace" . }}.svc.{{ include "spire-lib.cluster-domain" . }}"
|
- "{{ include "spiffe-oidc-discovery-provider.fullname" . }}.{{ include "spiffe-oidc-discovery-provider.namespace" . }}.svc.{{ include "spire-lib.cluster-domain" . }}"
|
||||||
{{- $uri := urlParse (include "spire-lib.jwt-issuer" .) }}
|
{{- $jwtDomain := .Values.config.jwtDomain }}
|
||||||
{{- $jwtIssuer := (default $uri.path $uri.host) }}
|
{{- if not $jwtDomain }}
|
||||||
{{- uniq (concat (list $jwtIssuer) .Values.config.additionalDomains) | toYaml | nindent 2 }}
|
{{- $uri := urlParse (include "spire-lib.jwt-issuer" .) }}
|
||||||
|
{{- $jwtDomain = (default $uri.path $uri.host) }}
|
||||||
|
{{- end }}
|
||||||
|
{{- uniq (concat (list $jwtDomain) .Values.config.additionalDomains) | toYaml | nindent 2 }}
|
||||||
|
|
||||||
{{- if eq (include "spiffe-oidc-discovery-provider.tls-enabled" .) "false" }}
|
{{- if eq (include "spiffe-oidc-discovery-provider.tls-enabled" .) "false" }}
|
||||||
allow_insecure_scheme: true
|
allow_insecure_scheme: true
|
||||||
|
|||||||
@@ -186,6 +186,8 @@ jwtIssuer: ""
|
|||||||
config:
|
config:
|
||||||
## @param config.logLevel The log level, valid values are "debug", "info", "warn", and "error"
|
## @param config.logLevel The log level, valid values are "debug", "info", "warn", and "error"
|
||||||
logLevel: info
|
logLevel: info
|
||||||
|
## @param config.jwtDomain [string] The JWT domain. Defaults to oidc-discovery.$jwtIssuer URL-parsed host if unset
|
||||||
|
jwtDomain: ""
|
||||||
## @param config.additionalDomains [array] Add additional domains that can be used for oidc discovery
|
## @param config.additionalDomains [array] Add additional domains that can be used for oidc discovery
|
||||||
additionalDomains: []
|
additionalDomains: []
|
||||||
# - localhost
|
# - localhost
|
||||||
|
|||||||
Reference in New Issue
Block a user