spire-identity-exchange

by SPIFFE

Helm chartv0.3.0App v0.6.0Verified publisher

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

NameEmailUrl
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 blockServes withDefault portDefault
tls.restthe certificate from tls.externalSecret / tls.certManager8444off
tls.grpcthe certificate from tls.externalSecret / tls.certManager8443off
spiffe.restthis deployment's own X509-SVID8544on
spiffe.grpcthis deployment's own X509-SVID8543off

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 typeValueExample
spire_identity_exchangestack: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

NameDescriptionValue
agentSocketNameThe name of the spire-agent unix socketspire-agent.sock
csiDriverNameThe csi driver to usecsi.spiffe.io
replicaCountReplica count1
namespaceOverrideNamespace override""
annotationsAnnotations for the deployment{}
labelsLabels for the deployment{}
image.registryThe OCI registry to pull the image fromghcr.io
image.repositoryThe repository within the registryspiffe/spire-identity-exchange-server
image.pullPolicyThe image pull policyIfNotPresent
image.tagOverrides the image tag whose default is the chart appVersion""
spireAgent.resourcesResource requests and limits{}
spireAgent.image.registryThe OCI registry to pull the image fromghcr.io
spireAgent.image.repositoryThe repository within the registryspiffe/spire-agent
spireAgent.image.pullPolicyThe image pull policyIfNotPresent
spireAgent.image.tagOverrides the image tag whose default is the chart appVersion1.16.0
extraEnvExtra environment variables to add to the spire identity exchange[]
resourcesResource requests and limits{}
configMap.annotationsAnnotations to add to the SPIRE Identity Exchange ConfigMap{}
podSecurityContextPod security context for SPIRE Identity Exchange pods{}
securityContextSecurity context for SPIRE Identity Exchange deployment{}
readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe5
readinessProbe.periodSecondsPeriod seconds for readinessProbe5
livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe5
livenessProbe.periodSecondsPeriod seconds for livenessProbe5
podAnnotationsPod annotations for SPIRE Identity Exchange{}
podLabelsLabels to add to pods{}
config.logLevelThe log level, valid values are "debug", "info", "warn", and "error"info
config.logFormatThe 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartspire-identity-exchange is pinned at v0.3.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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