Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
domains can not include URIs fixes #424
Browse files Browse the repository at this point in the history
    use a real URI for the production example as a test case for this

Signed-off-by: Drew Wells <dwells@infoblox.com>
  • Loading branch information
drewwells committed Aug 5, 2023
1 parent 1e3039c commit 80549f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
{{- define "spiffe-oidc-discovery-provider.yaml-config" -}}
{{- $oidcSocket := .oidcSocket }}
{{- with .root }}
{{- $uri := urlParse (include "spire-lib.jwt-issuer" .) }}
log_level: {{ .Values.config.logLevel | quote }}

domains:
- "{{ 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" . }}.svc.{{ include "spire-lib.cluster-domain" . }}"
{{- $jwtIssuer := include "spire-lib.jwt-issuer" . }}
{{- uniq (concat (list $jwtIssuer) .Values.config.additionalDomains) | toYaml | nindent 2 }}
- "{{- default $uri.path $uri.host }}"
{{- with .Values.config.additionalDomains }}
{{- toYaml . | nindent 2 }}
{{- end }}

{{- if .Values.insecureScheme.enabled }}
allow_insecure_scheme: {{ .Values.insecureScheme.enabled }}
Expand Down
1 change: 1 addition & 0 deletions examples/production/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ global:
telemetry:
prometheus:
enabled: true
jwtIssuer: https://oidc-discovery.example.org

spire-server:
nodeAttestor:
Expand Down

0 comments on commit 80549f2

Please sign in to comment.