Repository navigation
This release adds serialization APIs, SPIFFE ID verifier factories, and a BOM for dependency alignment. It also improves Workload API error handling, TLS peer validation, and Helper truststore updates.
Review the breaking changes and upgrade considerations before upgrading from 0.8.17. Java 8 source and target compatibility is unchanged.
Breaking changes
- JWT audiences: Passing an empty expected-audience set to any
JwtSvid.parseAndValidateorparseInsecureoverload could succeed in 0.8.17. It now throwsIllegalArgumentException. Supply the audience your application expects. - Watch retries:
CANCELLED,UNAUTHENTICATED,UNIMPLEMENTED, andFAILED_PRECONDITIONnow terminate watches instead of retrying. Automatic reconnection and further rotations stop until the watch is restored.INVALID_ARGUMENTwas already terminal; initialPERMISSION_DENIEDstill retries with backoff.
Upgrade considerations
- Helper truststores — act before the first update: Move manually installed certificates you need to retain to aliases outside the
<trust-domain>.<ASCII numeric index>pattern. Matching entries can be deleted even if the Helper did not create them. This risk is separate from the fix that removes stale Helper-managed authorities. - TLS peers: Previously accepted certificates can now fail verification, including with
SpiffeIdVerifier.acceptAny(). Ensure peers satisfy the X.509-SVID profile and chain to trusted authorities. Custom verifiers now run only after chain validation. - Watch recovery: Direct
WorkloadApiClient.watch*callers can register a new watch after resolving a terminal failure. Built-in sources can continue serving cached material while rotations have stopped; recreate the source and switch its consumers to resume rotations. Closing the old source closes its client, so use a fresh client for the replacement. Permission denial does not automatically invalidate source caches. - Helper failures:
KeyStoreHelper.run(true)fails on the first watcher error, including a permission withdrawal after startup. The CLI closes its client and exits with status 1; resolve the cause and restart the Helper. InitialPERMISSION_DENIEDstill retries under the default policy. - Native transports: Upgrade separately pinned
grpc-netty-*artifacts together withjava-spiffe-core. Custom shaded JARs must preserveMETA-INF/services/io.spiffe.workloadapi.internal.GrpcChannelProvider; supplied platform-specific fat JARs already include it.
New features
- PEM/JWKS bundle serialization and PEM/DER X.509-SVID serialization.
java-spiffe-bomto align library and transport versions.SslContextOptions.spiffeIdVerifierand theSpiffeIdVerifier.acceptAny(),acceptId(),acceptOneOf(), andacceptMemberOf()factories.- Configurable retry executors through
ClientOptions.retryExecutorService. Client shutdown also shuts down supplied retry executors.
Behavior changes
- Watches report the first post-update
PERMISSION_DENIEDimmediately, suppress repeated withdrawal notifications until recovery, and report terminal failures when retries cannot continue. - X.509 bundle watches consistently report
X509BundleException. DefaultWorkloadApiClient.newClientand thenewSourcefactories onDefaultX509Source,DefaultJwtSource, andCachedJwtSourceno longer write generated resources or defaults into caller-supplied options. Getters may remainnull; explicitly retain resources you need to inspect or share.KeyStoreHelper.createstill fills defaults into its options, and reusing those options shares the client.
Notable fixes
- Enforce X.509-SVID peer profiles, validate chains before authorization callbacks, and apply ASCII trust-domain validation.
- Reject watches on closed clients and propagate asynchronous initialization failures.
- Keep watches alive after rejected updates so later rotations can apply.
- Correct Helper authority replacement and stale-authority cleanup; serialize updates per store and adopt changes in memory only after successful writes.
- Support cached JWT-SVID refresh without
iatand bracketed IPv6 Workload API addresses. - Remove core/native split packages for Java module-path support.
- Update dependencies, including gRPC 1.85.1, Netty 4.2.17.Final, Nimbus JOSE JWT 10.10, and Commons Lang 3.22.0.
Contributors
Thank you to @NopeCharon, @cvas22, @bcleenders, @jainruchir, and @krzysztof-tobola for contributing to this release.