Skip to content

Commit 57fbbbe

Browse files
committed
chore(release): prepare 0.9.0
Signed-off-by: Max Lambrecht <maxlambrecht@gmail.com>
1 parent a10159f commit 57fbbbe

6 files changed

Lines changed: 132 additions & 55 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 40 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,57 @@
11
# Changelog
22

3-
## [Unreleased]
3+
## [0.9.0] - 2026-11-24
4+
5+
### Breaking changes
6+
7+
* **JWT audiences:** Empty expected-audience sets could succeed in 0.8.17. All `JwtSvid.parseAndValidate` and `parseInsecure` overloads now throw `IllegalArgumentException`; supply the audience the application expects (#431).
8+
* **Watch retries:** `CANCELLED`, `UNAUTHENTICATED`, `UNIMPLEMENTED` and `FAILED_PRECONDITION` now terminate watches instead of retrying, stopping automatic reconnection and further rotations. Handle termination and restore the watch after resolving the cause. `INVALID_ARGUMENT` was already terminal; initial `PERMISSION_DENIED` still retries with backoff.
9+
10+
### Upgrade considerations
11+
12+
* **Helper truststores:** Before the first 0.9.0 update, move manually installed certificates that must be retained outside the `<trust-domain>.<ASCII numeric index>` alias pattern. Matching certificates can be deleted even if the Helper did not create them. This risk is separate from stale-authority cleanup (#492).
13+
* **TLS peers:** Previously accepted peer certificates can now fail verification, including with `SpiffeIdVerifier.acceptAny()`. Ensure peers meet the X.509-SVID profile and chain to trusted authorities; custom verifiers now run only after chain validation (#510, #511).
14+
* **Helper failures:** `KeyStoreHelper.run(true)` fails on the first watcher error, including `PERMISSION_DENIED` after startup. The CLI closes its client and exits 1, ending retries; resolve the cause and restart the Helper. Initial `PERMISSION_DENIED` before any update still retries with backoff under the default policy (#488, #491).
15+
* **Native transports:** Upgrade separately pinned `grpc-netty-*` artifacts with core. Custom shaded JARs must preserve `META-INF/services/io.spiffe.workloadapi.internal.GrpcChannelProvider`; supplied platform-specific fat JARs already include it (#108, #523).
16+
* **Recovery:** Direct `WorkloadApiClient.watch*` callers can register a new watch after resolving a terminal failure. Built-in sources log the failure and can keep serving cached material after rotations stop; 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 built-in source caches.
417

518
### Added
619

7-
* Add `X509Bundle.marshal()` and `JwtBundle.marshal()` to serialize bundles as PEM certificates and as a JWKS document, the formats read by `parse`
8-
* Publish a `java-spiffe-bom` Bill of Materials to align the versions of the java-spiffe modules.
9-
* Add `X509Svid.marshalCertificates()` and `X509Svid.marshalPrivateKey()` to serialize an X.509-SVID as PEM certificates and a PEM PKCS#8 private key, the formats read by `parse` and `load`, and `marshalRawCertificates()` and `marshalRawPrivateKey()` for the ASN.1 DER formats read by `parseRaw` (#515)
10-
* Add a `spiffeIdVerifier` option to `SpiffeSslContextFactory.SslContextOptions`, so an `SSLContext` can verify peer SPIFFE IDs with a custom `SpiffeIdVerifier` instead of a fixed set of accepted SPIFFE IDs
11-
* Add `SpiffeIdVerifier.acceptAny()`, `acceptId()`, `acceptOneOf()` and `acceptMemberOf()` factory methods for verifiers that accept any SPIFFE ID, a specific SPIFFE ID, one of a set of SPIFFE IDs, or any SPIFFE ID in a trust domain
20+
* Add PEM/JWKS bundle serialization and PEM/DER X.509-SVID serialization (#515).
21+
* Publish `java-spiffe-bom` to align library and transport versions.
22+
* Add `SslContextOptions.spiffeIdVerifier` and `SpiffeIdVerifier.acceptAny()`, `acceptId()`, `acceptOneOf()` and `acceptMemberOf()` factories.
23+
* Add `ClientOptions.retryExecutorService` and `RetryHandler.tryScheduleRetry(Runnable)`, retaining `void scheduleRetry(Runnable)`. Clients close supplied retry executors (#79).
1224

1325
### Changed
1426

15-
* Retry Workload API `PERMISSION_DENIED` responses with backoff. With the default client and no initialization timeout, `DefaultX509Source.newSource()`, `DefaultJwtSource.newSource()` and `CachedJwtSource.newSource()` now wait indefinitely for an unregistered workload instead of failing immediately. Set a nonzero `initTimeout` or the `spiffe.newX509Source.timeout` / `spiffe.newJwtSource.timeout` system property to bound the wait.
27+
* Report post-update `PERMISSION_DENIED` immediately, suppress repeated withdrawal notifications until recovery, and report terminal failures when retries cannot continue (#491).
28+
* Consistently report `X509BundleException` for X.509 bundle watches and wrap invalid trust-domain keys in watch-specific exceptions with their causes preserved. Adjust handlers relying on earlier exception types (#491).
29+
* `DefaultWorkloadApiClient.newClient`, `DefaultX509Source.newSource`, `DefaultJwtSource.newSource` and `CachedJwtSource.newSource` no longer write automatically created clients, executors or defaults into supplied options. Getters may remain `null`; reusing options creates independent default clients and executors. Explicitly configure and retain resources to inspect or share them. `KeyStoreHelper.create` still fills in `keyStoreType`, `keyAlias` and `workloadApiClient` on its options; reusing those options shares the client, which Helper `close()` shuts down (#497).
1630

1731
### Fixed
1832

19-
* Always report terminal Workload API watch failures after a permission denial, including repeated denials, preserving the exception type and cause.
20-
* Replace the Helper's complete trust bundle set with one TrustStore write per update, remove authorities for absent trust domains, and preserve the live store when preparing a replacement fails. Only certificate aliases of the form `<trust-domain>.<ASCII numeric index>` are Helper-managed (#492)
21-
* Reject X.509-SVID leaf certificates with a root SPIFFE ID path in `X509SvidValidator.verifyChain`, which `SpiffeTrustManager` uses for peer certificates (#510)
22-
* Ignore JWKs with an unsupported key type when parsing a JWT bundle instead of rejecting the whole bundle, per the SPIFFE bundle spec (#512)
23-
* Serialize `java-spiffe-helper` KeyStore and TrustStore files to memory before writing them, so a store or encoding failure no longer leaves an empty or partial file (#490)
24-
* Stage every `java-spiffe-helper` KeyStore and TrustStore update in a copy and adopt it in memory only after the file write succeeds, so a failed private key or authority update is no longer persisted by a later write, and an entry that cannot be serialized no longer makes every later write fail (#490)
25-
* Stop splitting the `io.spiffe.workloadapi.internal` package between `java-spiffe-core` and the `grpc-netty-*` modules, which broke builds on the Java module path. Each `grpc-netty-*` module now registers a channel provider in its own package that core loads with `ServiceLoader`, picking the one for the current OS and architecture (#108). Upgrade `java-spiffe-core` and the `grpc-netty-*` artifact together, since an older `grpc-netty-*` jar still contains the shared package
26-
27-
### Build
28-
29-
* Check core and provider binary compatibility against the latest stable Maven Central release.
30-
* Bump `io.netty:netty-transport-native-kqueue` to 4.2.17.Final to match the Netty version used by gRPC, and fail `check` when the macOS transport modules drift from it.
33+
* Enforce X.509-SVID peer leaf requirements for URI SANs, non-root SPIFFE ID paths, CA flags and key usages. Extract SPIFFE IDs only from URI SANs (#510, #511).
34+
* Validate certificate chains before invoking `SpiffeIdVerifier`; invalid chains no longer reach the callback.
35+
* Validate and normalize trust-domain names using ASCII rules independently of the JVM locale (#496).
36+
* Reject watches on closed clients with `IllegalStateException`.
37+
* Propagate asynchronous source initialization errors; preserve watches after rejected post-initialization updates so later rotations can apply (#486).
38+
* Propagate Helper watch failures through `run`, giving CLI failures exit status 1 (#488).
39+
* Safely publish JWT bundle updates across threads; refresh cached JWT-SVIDs without `iat`, and return `null` from `getIssuedAt()` when absent (#429).
40+
* Preserve sub-second retry delays and report failed retry scheduling.
41+
* Accept bracketed IPv6 Workload API addresses; ignore unsupported JWK types while retaining supported bundle authorities (#512).
42+
* Preserve all current Helper bundle authorities and remove stale indexes and absent trust domains. Prepare replacements in memory and write once per update; serialization failures preserve existing files. In-place I/O failures can still leave partial files, and KeyStore/TrustStore writes remain separate (#490, #492).
43+
* Adopt Helper KeyStore/TrustStore changes in memory only after successful writes, and serialize updates per store. Failed updates no longer leak into later writes or block subsequent updates (#490, #525).
44+
* Remove core/native split packages to support the Java module path (#108, #523).
45+
46+
### Dependencies and build
47+
48+
* Update gRPC 1.80.0 → 1.85.1, Netty 4.2.9.Final → 4.2.17.Final, Nimbus JOSE JWT 10.9 → 10.10 and Commons Lang 3.20.0 → 3.22.0. Use Guava 33.8.0-jre and remove Commons Validator.
49+
* Update Gradle 9.4.1 → 9.9.1, the Protobuf plugin 0.9.6 → 0.10.1 and the Maven publishing plugin 0.35.0 → 0.37.0.
50+
* Add japicmp checks for public/protected core and provider APIs, excluding internal and generated gRPC packages, and verify native Netty version alignment. Java 8 source/target compatibility is unchanged.
3151

3252
### Documentation
3353

34-
* Document `SpiffeProvider.install()` in the provider README, and explain that the JDK loads the providers declared in `java.security` with the system class loader, so a provider packaged inside an application archive, such as a Spring Boot executable jar, must be installed programmatically
35-
* Fix the JWT source examples in the core README, which called methods and classes that don't exist, document how to configure the source initialization timeouts with `initTimeout`, and document `CachedJwtSource` and JWT-SVID validation with `JwtSvid.parseAndValidate`
54+
* Correct source and JWT examples; document initialization timeouts, serialization, verifier configuration and programmatic provider installation.
3655

3756
## [0.8.17] - 2026-04-20
3857

‎README.md‎

Lines changed: 38 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ X.509 and JWT SVIDs and bundles.
2323

2424
**Supports Java 8+**
2525

26+
See the [changelog](CHANGELOG.md) for release notes and upgrade considerations.
27+
2628
Download
2729
--------
2830

29-
The JARs can be downloaded from [Maven Central](https://search.maven.org/search?q=g:io.spiffe%20AND%20v:0.8.17).
31+
The JARs can be downloaded from [Maven Central](https://search.maven.org/search?q=g:io.spiffe%20AND%20v:0.9.0).
3032

3133
The dependencies can be added to `pom.xml`
3234

@@ -35,7 +37,7 @@ To import the `java-spiffe-provider` component:
3537
<dependency>
3638
<groupId>io.spiffe</groupId>
3739
<artifactId>java-spiffe-provider</artifactId>
38-
<version>0.8.17</version>
40+
<version>0.9.0</version>
3941
</dependency>
4042
```
4143
The `java-spiffe-provider` component imports the `java-spiffe-core` component.
@@ -45,28 +47,28 @@ To just import the `java-spiffe-core` component:
4547
<dependency>
4648
<groupId>io.spiffe</groupId>
4749
<artifactId>java-spiffe-core</artifactId>
48-
<version>0.8.17</version>
50+
<version>0.9.0</version>
4951
</dependency>
5052
```
5153

5254
Using Gradle:
5355

5456
Import `java-spiffe-provider`:
5557
```gradle
56-
implementation group: 'io.spiffe', name: 'java-spiffe-provider', version: '0.8.17'
58+
implementation group: 'io.spiffe', name: 'java-spiffe-provider', version: '0.9.0'
5759
```
5860

5961
Import `java-spiffe-core`:
6062
```gradle
61-
implementation group: 'io.spiffe', name: 'java-spiffe-core', version: '0.8.17'
63+
implementation group: 'io.spiffe', name: 'java-spiffe-core', version: '0.9.0'
6264
```
6365

6466
### Bill of Materials (BOM)
6567

6668
The `java-spiffe-bom` artifact manages the versions of all the java-spiffe modules (`java-spiffe-core`,
6769
`java-spiffe-provider`, `java-spiffe-helper`, `grpc-netty-linux`, `grpc-netty-macos` and `grpc-netty-macos-aarch64`),
6870
so they are declared without a version and always stay aligned with each other. This is especially useful for the
69-
platform-specific `grpc-netty-*` runtime modules described in [MacOS Support](#macos-support), whose version must match
71+
platform-specific `grpc-netty-*` runtime modules described in [Native transport modules](#native-transport-modules), whose version must match
7072
the version of `java-spiffe-core`.
7173

7274
Import the BOM in the `dependencyManagement` section of the `pom.xml`:
@@ -76,7 +78,7 @@ Import the BOM in the `dependencyManagement` section of the `pom.xml`:
7678
<dependency>
7779
<groupId>io.spiffe</groupId>
7880
<artifactId>java-spiffe-bom</artifactId>
79-
<version>0.8.17</version>
81+
<version>0.9.0</version>
8082
<type>pom</type>
8183
<scope>import</scope>
8284
</dependency>
@@ -93,10 +95,32 @@ Import the BOM in the `dependencyManagement` section of the `pom.xml`:
9395

9496
Using Gradle:
9597
```gradle
96-
implementation platform('io.spiffe:java-spiffe-bom:0.8.17')
98+
implementation platform('io.spiffe:java-spiffe-bom:0.9.0')
9799
implementation 'io.spiffe:java-spiffe-provider'
98100
```
99101

102+
### Native transport modules
103+
104+
When using the regular JARs, add the transport module for the runtime platform. If its version is pinned separately,
105+
upgrade it with `java-spiffe-core`. The supplied platform-specific fat JARs already include their transport and
106+
service registration. Core discovers the transport through `ServiceLoader`.
107+
108+
| Platform | Runtime artifact |
109+
|---------------|--------------------------------------------|
110+
| Linux | `io.spiffe:grpc-netty-linux:0.9.0` |
111+
| macOS x86_64 | `io.spiffe:grpc-netty-macos:0.9.0` |
112+
| macOS aarch64 | `io.spiffe:grpc-netty-macos-aarch64:0.9.0` |
113+
114+
For example, on Linux with Gradle:
115+
116+
```gradle
117+
runtimeOnly 'io.spiffe:grpc-netty-linux:0.9.0'
118+
```
119+
120+
Applications building their own shaded JAR must preserve and merge
121+
`META-INF/services/io.spiffe.workloadapi.internal.GrpcChannelProvider` registrations. For Gradle Shadow, configure
122+
`mergeServiceFiles()`.
123+
100124
### MacOS Support
101125

102126
#### x86 Architecture
@@ -108,14 +132,14 @@ In case run on a osx-x86 architecture, add to your `pom.xml`:
108132
<dependency>
109133
<groupId>io.spiffe</groupId>
110134
<artifactId>grpc-netty-macos</artifactId>
111-
<version>0.8.17</version>
135+
<version>0.9.0</version>
112136
<scope>runtime</scope>
113137
</dependency>
114138
```
115139

116140
Using Gradle:
117141
```gradle
118-
runtimeOnly group: 'io.spiffe', name: 'grpc-netty-macos', version: '0.8.17'
142+
runtimeOnly group: 'io.spiffe', name: 'grpc-netty-macos', version: '0.9.0'
119143
```
120144

121145
#### Aarch64 (M1) Architecture
@@ -127,15 +151,15 @@ If you are running the aarch64 architecture (M1 CPUs), add to your `pom.xml`:
127151
<dependency>
128152
<groupId>io.spiffe</groupId>
129153
<artifactId>grpc-netty-macos-aarch64</artifactId>
130-
<version>0.8.17</version>
154+
<version>0.9.0</version>
131155
<scope>runtime</scope>
132156
</dependency>
133157
```
134158

135159
Using Gradle:
136160

137161
```gradle
138-
runtimeOnly group: 'io.spiffe', name: 'grpc-netty-macos-aarch64', version: '0.8.17'
162+
runtimeOnly group: 'io.spiffe', name: 'grpc-netty-macos-aarch64', version: '0.9.0'
139163
```
140164

141165
*Caveat: not all OpenJDK distributions are aarch64 native, make sure your JDK is also running
@@ -148,7 +172,7 @@ The `java-spiffe-helper` module manages X.509 SVIDs and Bundles in Java Keystore
148172

149173
### Docker Image
150174

151-
Pull the `java-spiffe-helper` image from `ghcr.io/spiffe/java-spiffe-helper:0.8.17`.
175+
Pull the `java-spiffe-helper` image from `ghcr.io/spiffe/java-spiffe-helper:0.9.0`.
152176

153177
For more details, see [java-spiffe-helper/README.md](java-spiffe-helper/README.md).
154178

@@ -246,4 +270,4 @@ Based on the OS where the build is run, the `[os-classifier]` will be:
246270

247271
* `-linux-x86_64` for Linux
248272
* `-osx-x86_64` for MacOS with x86_64 architecture
249-
* `-osx-aarch64` for MacOS with aarch64 architecture (M1)
273+
* `-osx-aarch_64` for MacOS with aarch64 architecture (M1)

‎gradle.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=0.8.17
1+
version=0.9.0

0 commit comments

Comments
 (0)