Open source · Apache 2.0 · Spring Boot 4.2 · Java 21

Zero-trust identity for Spring Boot, with zero identity code.

SPIFFE Spring Boot gives every service a cryptographic SPIFFE identity, mutual TLS, automatic certificate rotation and caller authorization. Add one dependency, deploy next to a SPIFFE agent, and you are done.

Works with SPIRE, IDIRA Secure Workload Access, and any SPIFFE Workload API.

the whole integration
<!-- pom.xml -->
<dependency>
  <groupId>org.spiffe-spring-boot</groupId>
  <artifactId>spiffe-spring-boot-starter</artifactId>
</dependency>

# application.yaml
server:
  ssl:
    bundle: spiffe        # mTLS with the workload's SVID
    client-auth: need
spiffe:
  mtls:
    server:
      allowed-ids: spiffe://example.org/ns/shop/*

Secure a service in three steps

  1. 1

    Add the starter

    One Maven or Gradle dependency. No keystores, no secrets, no extra code.

  2. 2

    Point TLS at spiffe

    Set server.ssl.bundle=spiffe, and optionally list the SPIFFE IDs allowed to call you.

  3. 3

    Deploy next to an agent

    The starter finds the SPIRE or SWA agent socket by itself and keeps the identity rotated.

Everything a service needs to prove who it is

Each feature switches on only when you use it, through standard Spring Boot mechanisms.

Automatic mutual TLS

A rotating spiffe SSL bundle for Tomcat, Reactor Netty, RestClient and WebClient.

SSL bundle →

Rotation without restarts

New SVIDs from the agent apply live on servers and clients. Health turns DOWN if rotation ever stalls.

Rotation →

Authorize by SPIFFE ID

An allow-list property, a @SpiffePeer controller argument, or Spring Security rules per endpoint.

Authorization →

JWT-SVIDs both ways

Bearer tokens on outbound calls, validated on inbound ones through Spring Security's resource server.

JWT-SVIDs →

Agent or agentless

SPIRE and IDIRA SWA agents over the Workload API, or IDIRA SWA with no node agent on shared GKE.

Backends →

Observable

A spiffe health indicator and info contributor show the identity, its source and its validity.

Actuator →

How it works

The agent attests your workload and streams its identity. The starter turns it into Spring Boot configuration.

A Spring Boot application gets its SPIFFE identity from a SPIRE or IDIRA SWA agent over the Workload API, or from swa-server in agentless mode, through the starter
Read the full explanation →

Your code stays plain Spring

Who called me?
@GetMapping("/hello")
String hello(@SpiffePeer SpiffeId caller) {
    return "Hello, " + caller;
}
Call a peer over mTLS
RestClient orders = builder
    .baseUrl("https://orders:8443")
    .apply(ssl.fromBundle("spiffe"))
    .build();

Built to be trusted

See the demos and end-to-end results →

Ready to drop the keystores?

Go from plain HTTP to mutual TLS with SPIFFE identities in a few minutes.