Allow trust bundle url to be set along with format (#256)
This patch enables the spire-agent to retrieve the trust bundle via url. fixes: https://github.com/spiffe/helm-charts/issues/254 --------- Signed-off-by: Kevin Fox <[email protected]> Co-authored-by: Faisal Memon <[email protected]>
This commit is contained in:
@@ -48,6 +48,8 @@ A Helm chart to install the SPIRE agent.
|
|||||||
| telemetry.prometheus.podMonitor.labels | object | `{}` | |
|
| telemetry.prometheus.podMonitor.labels | object | `{}` | |
|
||||||
| telemetry.prometheus.podMonitor.namespace | string | `""` | Override where to install the podMonitor, if not set will use the same namespace as the spire-agent |
|
| telemetry.prometheus.podMonitor.namespace | string | `""` | Override where to install the podMonitor, if not set will use the same namespace as the spire-agent |
|
||||||
| telemetry.prometheus.port | int | `9988` | |
|
| telemetry.prometheus.port | int | `9988` | |
|
||||||
|
| trustBundleFormat | string | `"pem"` | If using trustBundleURL, what format is the url. Choices are "pem" and "spiffe" |
|
||||||
|
| trustBundleURL | string | `""` | If set, obtain trust bundle from url instead of Kubernetes ConfigMap |
|
||||||
| trustDomain | string | `"example.org"` | |
|
| trustDomain | string | `"example.org"` | |
|
||||||
| waitForIt.image.pullPolicy | string | `"IfNotPresent"` | |
|
| waitForIt.image.pullPolicy | string | `"IfNotPresent"` | |
|
||||||
| waitForIt.image.registry | string | `"cgr.dev"` | |
|
| waitForIt.image.registry | string | `"cgr.dev"` | |
|
||||||
|
|||||||
@@ -5,7 +5,12 @@ agent:
|
|||||||
server_address: {{ include "spire-agent.server-address" . | trim | quote }}
|
server_address: {{ include "spire-agent.server-address" . | trim | quote }}
|
||||||
server_port: {{ .Values.server.port | quote }}
|
server_port: {{ .Values.server.port | quote }}
|
||||||
socket_path: {{ include "spire-agent.socket-path" . | quote }}
|
socket_path: {{ include "spire-agent.socket-path" . | quote }}
|
||||||
|
{{- if ne (len .Values.trustBundleURL) 0 }}
|
||||||
|
trust_bundle_url: {{ .Values.trustBundleURL | quote }}
|
||||||
|
trust_bundle_format: {{ .Values.trustBundleFormat | quote }}
|
||||||
|
{{- else }}
|
||||||
trust_bundle_path: "/run/spire/bundle/bundle.crt"
|
trust_bundle_path: "/run/spire/bundle/bundle.crt"
|
||||||
|
{{- end }}
|
||||||
trust_domain: {{ include "spire-lib.trust-domain" . | quote }}
|
trust_domain: {{ include "spire-lib.trust-domain" . | quote }}
|
||||||
|
|
||||||
plugins:
|
plugins:
|
||||||
|
|||||||
@@ -62,9 +62,11 @@ spec:
|
|||||||
- name: spire-config
|
- name: spire-config
|
||||||
mountPath: /run/spire/config
|
mountPath: /run/spire/config
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{{- if eq (len .Values.trustBundleURL) 0 }}
|
||||||
- name: spire-bundle
|
- name: spire-bundle
|
||||||
mountPath: /run/spire/bundle
|
mountPath: /run/spire/bundle
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{{- end }}
|
||||||
- name: spire-agent-socket-dir
|
- name: spire-agent-socket-dir
|
||||||
mountPath: {{ include "spire-agent.socket-path" . | dir }}
|
mountPath: {{ include "spire-agent.socket-path" . | dir }}
|
||||||
readOnly: false
|
readOnly: false
|
||||||
@@ -98,9 +100,11 @@ spec:
|
|||||||
- name: spire-config
|
- name: spire-config
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ include "spire-agent.fullname" . }}
|
name: {{ include "spire-agent.fullname" . }}
|
||||||
|
{{- if eq (len .Values.trustBundleURL) 0 }}
|
||||||
- name: spire-bundle
|
- name: spire-bundle
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ include "spire-lib.bundle-configmap" . }}
|
name: {{ include "spire-lib.bundle-configmap" . }}
|
||||||
|
{{- end }}
|
||||||
- name: spire-token
|
- name: spire-token
|
||||||
projected:
|
projected:
|
||||||
sources:
|
sources:
|
||||||
|
|||||||
@@ -55,7 +55,10 @@ nodeSelector: {}
|
|||||||
logLevel: info
|
logLevel: info
|
||||||
clusterName: example-cluster
|
clusterName: example-cluster
|
||||||
trustDomain: example.org
|
trustDomain: example.org
|
||||||
|
# -- If set, obtain trust bundle from url instead of Kubernetes ConfigMap
|
||||||
|
trustBundleURL: ""
|
||||||
|
# -- If using trustBundleURL, what format is the url. Choices are "pem" and "spiffe"
|
||||||
|
trustBundleFormat: pem
|
||||||
bundleConfigMap: spire-bundle
|
bundleConfigMap: spire-bundle
|
||||||
|
|
||||||
server:
|
server:
|
||||||
|
|||||||
Reference in New Issue
Block a user