• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

spiffe / java-spiffe / 31023546327
87%
master: 98%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 05 Aug 2026 04:06PM UTC
Jobs 1
Files 51
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Aug 2026 04:05PM UTC coverage: 87.453%. Remained the same
31023546327

push

github

maxlambrecht
fix(provider): validate peer chain before invoking SpiffeIdVerifier

`SpiffeTrustManager` invoked the `SpiffeIdVerifier` before any
cryptographic validation.
The callback received an unvalidated, attacker-supplied chain despite the verifier's [API spec calling it `verifiedChain`](https://github.com/spiffe/java-spiffe/blob/55200fc8e/java-spiffe-provider/src/main/java/io/spiffe/provider/SpiffeIdVerifier.java#L13).

Validate the chain against the trust bundle first and only then invoke the verifier.

This matches go-spiffe, where [the `Authorizer` only receives chains returned by `x509svid.ParseAndVerify`](https://github.com/spiffe/go-spiffe/blob/v2.8.1/spiffetls/tlsconfig/config.go#L193-L201) (`ParseAndVerify` first checks the certificates, afterwards `Authorizer` checks if the SPIFFE ID is authorized).

Observable change: for a chain that is both untrusted and carries an unacceptable SPIFFE ID, the reported error is now the chain validation failure, rather than the verifier error.

There is a small conflict on imports with https://github.com/spiffe/java-spiffe/pull/433 , so if you poke me after that one is merged, I'm happy to rebase.

Signed-off-by: bcleenders <bcleenders@spotify.com>

485 of 635 branches covered (76.38%)

Branch coverage included in aggregate %.

1864 of 2051 relevant lines covered (90.88%)

3.59 hits per line

Jobs
ID Job ID Ran Files Coverage
1 31023546327.1 05 Aug 2026 04:06PM UTC 51
87.45
GitHub Action Run
Source Files on build 31023546327
  • Tree
  • List 51
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #31023546327
  • ea4b8a0c on github
  • Prev Build on main (#30472005384)
  • Next Build on main (#31028906280)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc