Configurable insecureScheme nginx image
Co-Authored-by: Gert Jan Kamstra <[email protected]> Signed-off-by: Marco Franssen <[email protected]>
This commit is contained in:
co-authored by
Gert Jan Kamstra
parent
1c54ce82bb
commit
4f93ead90a
@@ -62,7 +62,6 @@ Kubernetes: `>=1.19.0-0`
|
|||||||
| oidc.acme.directoryUrl | string | `"https://acme-v02.api.letsencrypt.org/directory"` | |
|
| oidc.acme.directoryUrl | string | `"https://acme-v02.api.letsencrypt.org/directory"` | |
|
||||||
| oidc.acme.emailAddress | string | `"[email protected]"` | |
|
| oidc.acme.emailAddress | string | `"[email protected]"` | |
|
||||||
| oidc.acme.tosAccepted | bool | `false` | |
|
| oidc.acme.tosAccepted | bool | `false` | |
|
||||||
| oidc.allowInsecureScheme | bool | `false` | |
|
|
||||||
| oidc.domains[0] | string | `"localhost"` | |
|
| oidc.domains[0] | string | `"localhost"` | |
|
||||||
| oidc.domains[1] | string | `"spire-oidc.spire"` | |
|
| oidc.domains[1] | string | `"spire-oidc.spire"` | |
|
||||||
| oidc.domains[2] | string | `"spire-oidc.spire.svc.cluster.local"` | |
|
| oidc.domains[2] | string | `"spire-oidc.spire.svc.cluster.local"` | |
|
||||||
@@ -71,6 +70,10 @@ Kubernetes: `>=1.19.0-0`
|
|||||||
| oidc.image.pullPolicy | string | `"IfNotPresent"` | |
|
| oidc.image.pullPolicy | string | `"IfNotPresent"` | |
|
||||||
| oidc.image.repository | string | `"gcr.io/spiffe-io/oidc-discovery-provider"` | |
|
| oidc.image.repository | string | `"gcr.io/spiffe-io/oidc-discovery-provider"` | |
|
||||||
| oidc.image.tag | string | `""` | |
|
| oidc.image.tag | string | `""` | |
|
||||||
|
| oidc.insecureScheme.enabled | bool | `false` | |
|
||||||
|
| oidc.insecureScheme.nginx.pullPolicy | string | `"IfNotPresent"` | |
|
||||||
|
| oidc.insecureScheme.nginx.repository | string | `"nginx"` | |
|
||||||
|
| oidc.insecureScheme.nginx.tag | string | `"alpine"` | |
|
||||||
| oidc.jwtIssuer | string | `"oidc-discovery.example.org"` | |
|
| oidc.jwtIssuer | string | `"oidc-discovery.example.org"` | |
|
||||||
| oidc.logLevel | string | `"INFO"` | |
|
| oidc.logLevel | string | `"INFO"` | |
|
||||||
| oidc.service.annotations | object | `{}` | |
|
| oidc.service.annotations | object | `{}` | |
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ spec:
|
|||||||
args:
|
args:
|
||||||
- -config
|
- -config
|
||||||
- /run/spire/oidc/config/oidc-discovery-provider.conf
|
- /run/spire/oidc/config/oidc-discovery-provider.conf
|
||||||
{{- if not .Values.oidc.allowInsecureScheme }}
|
{{- if not .Values.oidc.insecureScheme.enabled }}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 443
|
- containerPort: 443
|
||||||
name: https
|
name: https
|
||||||
@@ -64,12 +64,12 @@ spec:
|
|||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
{{- if .Values.oidc.allowInsecureScheme }}
|
{{- if .Values.oidc.insecureScheme.enabled }}
|
||||||
- name: nginx
|
- name: nginx
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
image: nginx:latest
|
image: "{{ .Values.oidc.insecureScheme.nginx.repository }}:{{ .Values.oidc.insecureScheme.nginx.tag }}"
|
||||||
imagePullPolicy: {{ .Values.oidc.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.oidc.insecureScheme.nginx.pullPolicy }}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
name: http
|
name: http
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ data:
|
|||||||
{{ else }}
|
{{ else }}
|
||||||
domains = []
|
domains = []
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{- if .Values.oidc.allowInsecureScheme }}
|
{{- if .Values.oidc.insecureScheme.enabled }}
|
||||||
allow_insecure_scheme = {{ .Values.oidc.allowInsecureScheme }}
|
allow_insecure_scheme = {{ .Values.oidc.insecureScheme.enabled }}
|
||||||
listen_socket_path = "/run/spire/oidc-sockets/oidc-server.sock"
|
listen_socket_path = "/run/spire/oidc-sockets/oidc-server.sock"
|
||||||
{{- else }}
|
{{- else }}
|
||||||
acme {
|
acme {
|
||||||
@@ -28,7 +28,7 @@ data:
|
|||||||
socket_path = "/run/spire/agent-sockets/agent.sock"
|
socket_path = "/run/spire/agent-sockets/agent.sock"
|
||||||
trust_domain = "{{ .Values.spire.trustDomain }}"
|
trust_domain = "{{ .Values.spire.trustDomain }}"
|
||||||
}
|
}
|
||||||
{{- if .Values.oidc.allowInsecureScheme }}
|
{{- if .Values.oidc.insecureScheme.enabled }}
|
||||||
default.conf.template: |
|
default.conf.template: |
|
||||||
upstream oidc {
|
upstream oidc {
|
||||||
server unix:/run/spire/oidc-sockets/oidc-server.sock;
|
server unix:/run/spire/oidc-sockets/oidc-server.sock;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
type: {{ .Values.oidc.service.type }}
|
type: {{ .Values.oidc.service.type }}
|
||||||
ports:
|
ports:
|
||||||
{{- if .Values.oidc.allowInsecureScheme }}
|
{{- if .Values.oidc.insecureScheme.enabled }}
|
||||||
- name: http
|
- name: http
|
||||||
port: {{ .Values.oidc.service.port }}
|
port: {{ .Values.oidc.service.port }}
|
||||||
targetPort: http
|
targetPort: http
|
||||||
|
|||||||
@@ -52,7 +52,13 @@ oidc:
|
|||||||
- spire-oidc.spire.svc.cluster.local
|
- spire-oidc.spire.svc.cluster.local
|
||||||
- oidc-discovery.example.org
|
- oidc-discovery.example.org
|
||||||
|
|
||||||
allowInsecureScheme: false
|
insecureScheme:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
nginx:
|
||||||
|
repository: nginx
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
tag: "alpine"
|
||||||
|
|
||||||
acme:
|
acme:
|
||||||
tosAccepted: false
|
tosAccepted: false
|
||||||
|
|||||||
Reference in New Issue
Block a user