diff --git a/charts/spire/charts/spire-agent/README.md b/charts/spire/charts/spire-agent/README.md index a6f00eb..9f339bc 100644 --- a/charts/spire/charts/spire-agent/README.md +++ b/charts/spire/charts/spire-agent/README.md @@ -79,6 +79,11 @@ A Helm chart to install the SPIRE agent. | `workloadAttestors.unix.enabled` | Enables the Unix workload attestor | `false` | | `workloadAttestors.k8s.skipKubeletVerification` | If true, kubelet certificate verification is skipped | `true` | | `workloadAttestors.k8s.disableContainerSelectors` | Set to true if using holdApplicationUntilProxyStarts in Istio | `false` | +| `sds.enabled` | Enables Envoy SDS configuration | `false` | +| `sds.defaultSvidName` | The TLS Certificate resource name to use for the default X509-SVID with Envoy SDS | `default` | +| `sds.defaultBundleName` | The Validation Context resource name to use for the default X.509 bundle with Envoy SDS | `ROOTCA` | +| `sds.defaultAllBundlesName` | The Validation Context resource name to use for all bundles (including federated) with Envoy SDS | `ALL` | +| `sds.disableSpiffeCertValidation` | Disable Envoy SDS custom validation | `false` | | `telemetry.prometheus.enabled` | Flag to enable prometheus monitoring | `false` | | `telemetry.prometheus.port` | Port for prometheus metrics | `9988` | | `telemetry.prometheus.podMonitor.enabled` | Enable podMonitor for prometheus | `false` | diff --git a/charts/spire/charts/spire-agent/templates/configmap.yaml b/charts/spire/charts/spire-agent/templates/configmap.yaml index 9adfcc7..b1662e4 100644 --- a/charts/spire/charts/spire-agent/templates/configmap.yaml +++ b/charts/spire/charts/spire-agent/templates/configmap.yaml @@ -12,6 +12,13 @@ agent: trust_bundle_path: "/run/spire/bundle/bundle.crt" {{- end }} trust_domain: {{ include "spire-lib.trust-domain" . | quote }} + {{- if .Values.sds.enabled }} + sds: + default_svid_name: {{ .Values.sds.defaultSvidName | quote }} + default_bundle_name: {{ .Values.sds.defaultBundleName | quote }} + default_all_bundles_name: {{ .Values.sds.defaultAllBundlesName | quote }} + disable_spiffe_cert_validation: {{ .Values.sds.disableSpiffeCertValidation }} + {{- end }} plugins: NodeAttestor: diff --git a/charts/spire/charts/spire-agent/values.yaml b/charts/spire/charts/spire-agent/values.yaml index f44ec46..631ff30 100644 --- a/charts/spire/charts/spire-agent/values.yaml +++ b/charts/spire/charts/spire-agent/values.yaml @@ -170,6 +170,18 @@ workloadAttestors: ## @param workloadAttestors.k8s.disableContainerSelectors Set to true if using holdApplicationUntilProxyStarts in Istio disableContainerSelectors: false +sds: + ## @param sds.enabled Enables Envoy SDS configuration + enabled: false + ## @param sds.defaultSvidName The TLS Certificate resource name to use for the default X509-SVID with Envoy SDS + defaultSvidName: "default" + ## @param sds.defaultBundleName The Validation Context resource name to use for the default X.509 bundle with Envoy SDS + defaultBundleName: "ROOTCA" + ## @param sds.defaultAllBundlesName The Validation Context resource name to use for all bundles (including federated) with Envoy SDS + defaultAllBundlesName: "ALL" + ## @param sds.disableSpiffeCertValidation Disable Envoy SDS custom validation + disableSpiffeCertValidation: false + telemetry: prometheus: ## @param telemetry.prometheus.enabled Flag to enable prometheus monitoring