spire-identity-exchange
by SPIFFE
A Helm chart to install the SPIRE Identity Exchange.
About this chart
spire-identity-exchange
A Helm chart to install the SPIRE Identity Exchange.
Homepage: https://github.com/spiffe/helm-charts-hardened/tree/main/charts/spire-identity-exchange
Maintainers
| Name | Url | |
|---|---|---|
| marcofranssen | [email protected] | https://marcofranssen.nl |
| kfox1111 | [email protected] | |
| faisal-memon | [email protected] |
Source Code
Listeners
Serving is a two-axis matrix: protocol (gRPC or REST) crossed with the source of the certificate the listener presents. All four listeners are independent and can run at once.
| Values block | Serves with | Default port | Default |
|---|---|---|---|
tls.rest | the certificate from tls.externalSecret / tls.certManager | 8444 | off |
tls.grpc | the certificate from tls.externalSecret / tls.certManager | 8443 | off |
spiffe.rest | this deployment's own X509-SVID | 8544 | on |
spiffe.grpc | this deployment's own X509-SVID | 8543 | off |
The spiffe.* listeners need no certificate files: the SVID is fetched from the SPIRE Agent
Workload API and rotated automatically, so a SPIFFE-only install requires neither cert-manager
nor a TLS Secret. A cert source under tls: is required only when tls.rest or tls.grpc is
enabled. Client authentication is identical on all four — callers present a bearer token.
With tls.certManager, the requested certificate's dnsNames are taken from whichever exposures
are enabled — the ingress.host, the gatewayAPI.host, or both — across every enabled tls.*
listener, deduplicated. Each enabled tls.* listener must therefore have an ingress or a gateway
enabled, unless you set tls.certManager.certificate.dnsNames explicitly.
The stack selector
Every exchange addresses a stack: an entry in auth.stacks, or — with
auth.passthroughPlugins (the default) — a single plugin addressed under its own name. It is
the {stack} segment of the REST path (/api/v1/svid/{stack}/x509).
As of app version v0.4.0 the exchange asserts one selector on its own behalf, naming the stack that was addressed:
| Selector type | Value | Example |
|---|---|---|
spire_identity_exchange | stack:name:<stack> | spire_identity_exchange:stack:name:k8s_psat |
Add it to a registration entry to scope that entry to a single stack:
controllerManager:
identities:
clusterStaticEntries:
test:
selectors:
- k8s_psat:namespace:default
- k8s_psat:service_account_name:default
- spire_identity_exchange:stack:name:k8s_psat # only issuable via this stack
Parameters
Chart parameters
| Name | Description | Value |
|---|---|---|
agentSocketName | The name of the spire-agent unix socket | spire-agent.sock |
csiDriverName | The csi driver to use | csi.spiffe.io |
replicaCount | Replica count | 1 |
namespaceOverride | Namespace override | "" |
annotations | Annotations for the deployment | {} |
labels | Labels for the deployment | {} |
image.registry | The OCI registry to pull the image from | ghcr.io |
image.repository | The repository within the registry | spiffe/spire-identity-exchange-server |
image.pullPolicy | The image pull policy | IfNotPresent |
image.tag | Overrides the image tag whose default is the chart appVersion | "" |
spireAgent.resources | Resource requests and limits | {} |
spireAgent.image.registry | The OCI registry to pull the image from | ghcr.io |
spireAgent.image.repository | The repository within the registry | spiffe/spire-agent |
spireAgent.image.pullPolicy | The image pull policy | IfNotPresent |
spireAgent.image.tag | Overrides the image tag whose default is the chart appVersion | 1.16.0 |
extraEnv | Extra environment variables to add to the spire identity exchange | [] |
resources | Resource requests and limits | {} |
configMap.annotations | Annotations to add to the SPIRE Identity Exchange ConfigMap | {} |
podSecurityContext | Pod security context for SPIRE Identity Exchange pods | {} |
securityContext | Security context for SPIRE Identity Exchange deployment | {} |
readinessProbe.initialDelaySeconds | Initial delay seconds for readinessProbe | 5 |
readinessProbe.periodSeconds | Period seconds for readinessProbe | 5 |
livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 5 |
livenessProbe.periodSeconds | Period seconds for livenessProbe | 5 |
podAnnotations | Pod annotations for SPIRE Identity Exchange | {} |
podLabels | Labels to add to pods | {} |
config.logLevel | The log level, valid values are "debug", "info", "warn", and "error" | info |
config.logFormat | The log format, valid values are "text" and "json" |
Deploy spire-identity-exchange with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has spire-identity-exchange on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartspire-identity-exchange is pinned at v0.3.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply