Allow to use spire-server as an upstream authority (#304)
Co-authored-by: Marco Franssen <[email protected]>
This commit is contained in:
co-authored by
Marco Franssen
parent
0ba03880a1
commit
88efc77bee
@@ -390,6 +390,9 @@ Kubernetes: `>=1.21.0-0`
|
|||||||
| spire-server.upstreamAuthority.disk.secret.create | bool | `true` | If disabled requires you to create a secret with the given keys (certificate, key and optional bundle) yourself. |
|
| spire-server.upstreamAuthority.disk.secret.create | bool | `true` | If disabled requires you to create a secret with the given keys (certificate, key and optional bundle) yourself. |
|
||||||
| spire-server.upstreamAuthority.disk.secret.data | object | `{"bundle":"","certificate":"","key":""}` | If secret creation is enabled, will create a secret with following certificate info |
|
| spire-server.upstreamAuthority.disk.secret.data | object | `{"bundle":"","certificate":"","key":""}` | If secret creation is enabled, will create a secret with following certificate info |
|
||||||
| spire-server.upstreamAuthority.disk.secret.name | string | `"spiffe-upstream-ca"` | If secret creation is disabled, the secret with this name will be used. |
|
| spire-server.upstreamAuthority.disk.secret.name | string | `"spiffe-upstream-ca"` | If secret creation is disabled, the secret with this name will be used. |
|
||||||
|
| spire-server.upstreamAuthority.spire.enabled | bool | `false` | |
|
||||||
|
| spire-server.upstreamAuthority.spire.server.address | string | `""` | |
|
||||||
|
| spire-server.upstreamAuthority.spire.server.port | int | `8081` | |
|
||||||
| tornjak-frontend.affinity | object | `{}` | |
|
| tornjak-frontend.affinity | object | `{}` | |
|
||||||
| tornjak-frontend.apiServerURL | string | `"http://localhost:10000/"` | URL of the Tornjak APIs (backend) Since Tornjak Frontend runs in the browser, this URL must be accessible from the machine running a browser. |
|
| tornjak-frontend.apiServerURL | string | `"http://localhost:10000/"` | URL of the Tornjak APIs (backend) Since Tornjak Frontend runs in the browser, this URL must be accessible from the machine running a browser. |
|
||||||
| tornjak-frontend.fullnameOverride | string | `""` | |
|
| tornjak-frontend.fullnameOverride | string | `""` | |
|
||||||
|
|||||||
@@ -144,5 +144,8 @@ A Helm chart to install the SPIRE server.
|
|||||||
| upstreamAuthority.disk.secret.create | bool | `true` | If disabled requires you to create a secret with the given keys (certificate, key and optional bundle) yourself. |
|
| upstreamAuthority.disk.secret.create | bool | `true` | If disabled requires you to create a secret with the given keys (certificate, key and optional bundle) yourself. |
|
||||||
| upstreamAuthority.disk.secret.data | object | `{"bundle":"","certificate":"","key":""}` | If secret creation is enabled, will create a secret with following certificate info |
|
| upstreamAuthority.disk.secret.data | object | `{"bundle":"","certificate":"","key":""}` | If secret creation is enabled, will create a secret with following certificate info |
|
||||||
| upstreamAuthority.disk.secret.name | string | `"spiffe-upstream-ca"` | If secret creation is disabled, the secret with this name will be used. |
|
| upstreamAuthority.disk.secret.name | string | `"spiffe-upstream-ca"` | If secret creation is disabled, the secret with this name will be used. |
|
||||||
|
| upstreamAuthority.spire.enabled | bool | `false` | |
|
||||||
|
| upstreamAuthority.spire.server.address | string | `""` | |
|
||||||
|
| upstreamAuthority.spire.server.port | int | `8081` | |
|
||||||
|
|
||||||
----------------------------------------------
|
----------------------------------------------
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{{- define "spire-server.yaml-config" -}}
|
{{- define "spire-server.yaml-config" -}}
|
||||||
|
{{- $upstreamAuthorityUsed := 0 }}
|
||||||
{{- $root := . }}
|
{{- $root := . }}
|
||||||
server:
|
server:
|
||||||
bind_address: "0.0.0.0"
|
bind_address: "0.0.0.0"
|
||||||
@@ -59,6 +60,7 @@ plugins:
|
|||||||
|
|
||||||
{{- with .Values.upstreamAuthority.disk }}
|
{{- with .Values.upstreamAuthority.disk }}
|
||||||
{{- if eq (.enabled | toString) "true" }}
|
{{- if eq (.enabled | toString) "true" }}
|
||||||
|
{{- $upstreamAuthorityUsed = add1 $upstreamAuthorityUsed }}
|
||||||
UpstreamAuthority:
|
UpstreamAuthority:
|
||||||
- disk:
|
- disk:
|
||||||
plugin_data:
|
plugin_data:
|
||||||
@@ -72,6 +74,7 @@ plugins:
|
|||||||
|
|
||||||
{{- with .Values.upstreamAuthority.certManager }}
|
{{- with .Values.upstreamAuthority.certManager }}
|
||||||
{{- if eq (.enabled | toString) "true" }}
|
{{- if eq (.enabled | toString) "true" }}
|
||||||
|
{{- $upstreamAuthorityUsed = add1 $upstreamAuthorityUsed }}
|
||||||
UpstreamAuthority:
|
UpstreamAuthority:
|
||||||
- cert-manager:
|
- cert-manager:
|
||||||
plugin_data:
|
plugin_data:
|
||||||
@@ -85,6 +88,21 @@ plugins:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{- with .Values.upstreamAuthority.spire }}
|
||||||
|
{{- if eq (.enabled | toString) "true" }}
|
||||||
|
{{- $upstreamAuthorityUsed = add1 $upstreamAuthorityUsed }}
|
||||||
|
UpstreamAuthority:
|
||||||
|
- spire:
|
||||||
|
plugin_data:
|
||||||
|
server_address: {{ .server.address | quote }}
|
||||||
|
server_port: {{ .server.port }}
|
||||||
|
workload_api_socket: "/run/spire/upstream_agent/spire-agent.sock"
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if gt $upstreamAuthorityUsed 1 }}
|
||||||
|
{{- fail "You can only enable a single Upstream Authority." }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
health_checks:
|
health_checks:
|
||||||
listener_enabled: true
|
listener_enabled: true
|
||||||
bind_address: "0.0.0.0"
|
bind_address: "0.0.0.0"
|
||||||
|
|||||||
@@ -175,6 +175,11 @@ upstreamAuthority:
|
|||||||
# -- Specify to use a namespace other then the one the chart is installed into
|
# -- Specify to use a namespace other then the one the chart is installed into
|
||||||
namespace: ""
|
namespace: ""
|
||||||
kube_config_file: ""
|
kube_config_file: ""
|
||||||
|
spire:
|
||||||
|
enabled: false
|
||||||
|
server:
|
||||||
|
address: ""
|
||||||
|
port: 8081
|
||||||
|
|
||||||
notifier:
|
notifier:
|
||||||
k8sbundle:
|
k8sbundle:
|
||||||
|
|||||||
Reference in New Issue
Block a user