Every setting the starter reads, generated from the starter’s own configuration metadata, so this page always matches the code. Your IDE completes all of them in application.yaml and application.properties.

Durations accept Spring Boot’s usual formats, such as 30s, 5m or 1h. Every allowed-ids property accepts an exact ID, a path prefix ending in /*, or a whole trust domain (ID patterns).

Core properties

Property Default Description

spiffe.enabled

true

Master switch for every SPIFFE auto-configuration.

spiffe.health.min-remaining

5m

Report DOWN when the X.509 SVID has less than this left, which means rotation has stalled.

spiffe.jwt.client.audiences.<host>

—

Audience per target host, e.g. orders.internal: spiffe://example.org/orders.

spiffe.jwt.client.auto-apply

false

Add the bearer token to every RestClient, RestTemplate and WebClient built by Spring Boot.

spiffe.jwt.client.default-audience

—

Audience used when neither the request nor the host map names one.

spiffe.jwt.client.refresh-margin

1m

Renew a cached JWT-SVID when it has less than this left.

spiffe.jwt.resource-server.allowed-ids

—

Caller SPIFFE IDs accepted; empty accepts any ID from a trusted bundle.

spiffe.jwt.resource-server.audiences

—

Audiences this application accepts; setting any activates the SPIFFE JwtDecoder.

spiffe.mtls.server.allowed-ids

—

Client SPIFFE IDs allowed to call this application; empty disables enforcement.

spiffe.mtls.server.exclude-paths

/actuator/**, /error

Path patterns that skip enforcement, such as probes served on the main port.

spiffe.ssl.allowed-ids

—

Peer SPIFFE IDs the default bundle’s trust manager accepts; empty accepts any ID from a trusted bundle.

spiffe.ssl.bundle-name

spiffe

Name of the default bundle, as used in server.ssl.bundle or spring.http.clients.ssl.bundle.

spiffe.ssl.bundles.<name>.allowed-ids

—

Extra named bundles with their own peer allow-list, typically one per upstream service.

spiffe.ssl.enabled

true

Register the SPIFFE SSL bundle(s).

spiffe.workload-api.init-timeout

30s

How long startup waits for the first X.509 SVID.

spiffe.workload-api.known-sockets

the SPIRE and SWA paths listed in Getting started

Paths probed, in order, when neither socket nor SPIFFE_ENDPOINT_SOCKET is set.

spiffe.workload-api.max-backoff

30s

Upper bound for the reconnect backoff when the agent goes away.

spiffe.workload-api.socket

—

Socket address (unix:///path or tcp://host:port); defaults to SPIFFE_ENDPOINT_SOCKET, then the first known socket that exists.

spiffe.workload-api.svid-hint

—

Pick the SVID with this hint when the agent issues several.

IDIRA SWA agentless properties

These apply only with the spiffe-spring-boot-swa-agentless module. Setting spiffe.swa.agentless.server-address turns agentless mode on.

Property Default Description

spiffe.swa.agentless.ca-bundle-path

—

Trust-domain CA bundle file, PEM.

spiffe.swa.agentless.ca-bundle-url

—

Trust-domain CA bundle URL (JSON or ?format=pem).

spiffe.swa.agentless.credential-audience

urn:panw:swa

Audience of the platform credential presented to swa-server, as the server group expects.

spiffe.swa.agentless.jwt-bundle-refresh

5m

How often the JWKS is re-read.

spiffe.swa.agentless.jwt-bundle-url

—

Trust-domain JWKS URL, needed only to validate inbound JWT-SVIDs in agentless mode.

spiffe.swa.agentless.metadata-base-url

metadata.google.internal/computeMetadata/v1

GCE/GKE metadata server base URL.

spiffe.swa.agentless.renew-ratio

0.5

Fraction of the X.509 SVID lifetime after which it is re-exchanged.

spiffe.swa.agentless.server-address

—

swa-server IdentityExchange endpoint, host:port.

spiffe.swa.agentless.server-spiffe-id

spiffe://<trust-domain>/server

SPIFFE ID swa-server must present; defaults to spiffe://<trust-domain>/server.

spiffe.swa.agentless.timeout

30s

Per-RPC and HTTP timeout.

spiffe.swa.agentless.tls

true

TLS to swa-server; turn off only for local development.

spiffe.swa.agentless.trust-domain

—

SPIFFE trust domain swa-server issues for, e.g. swa-java.demo.

Spring Boot properties you will use with it

Property Typical value

server.ssl.bundle

spiffe: the server presents the workload’s SVID

server.ssl.client-auth

need (or want when some paths must stay reachable without a certificate)

spring.http.clients.ssl.bundle

spiffe: every Boot-built HTTP client uses mTLS

management.health.spiffe.enabled

false to drop the spiffe health indicator

management.info.spiffe.enabled

false to drop the spiffe info contributor

SPIFFE Spring Boot is an independent open-source project under the Apache License 2.0. It is not affiliated with or endorsed by the SPIFFE project, the CNCF, or Broadcom (Spring). SPIFFE, SPIRE, Spring and Spring Boot are trademarks of their respective owners.

GitHub · Issues · Sample