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

spiffe / java-spiffe / 42108396093
89%
master: 98%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 05 Nov 2026 09:00PM 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 Nov 2026 08:59PM UTC coverage: 88.346% (+0.06%) from 88.291%
42108396093

push

github

maxlambrecht
fix(spiffeid): normalize trust domain case with ASCII-only lowercasing

SpiffeId.parse and TrustDomain.parse lowercased the trust domain with
String.toLowerCase() and Character.toLowerCase(char).

String.toLowerCase() uses the JVM default locale. In a Turkish or
Azerbaijani locale 'I' becomes the dotless 'ı' (U+0131), so
TrustDomain.parse("EXAMPLE.IO") threw InvalidSpiffeIdException and
SpiffeId.parse("spiffe://INFO.ORG/service") produced the trust domain
"ınfo.org". That ID did not equal spiffe://info.org/service, matched no
bundle, and its toString() was not a valid SPIFFE ID.

Both methods also map some non-ASCII characters to ASCII letters, e.g.
the Kelvin sign U+212A to 'k' and U+0130 to 'i'. Those characters passed
the trust domain check, so "Kexample.org" was accepted as
"kexample.org", although the SPIFFE ID spec only allows ASCII letters,
digits, '.', '-' and '_' in a trust domain.

Add TrustDomain.toLowerAscii, which only maps 'A'-'Z' to 'a'-'z' and
leaves every other character unchanged, and use it in both parsers.
Mixed-case ASCII trust domains are still normalized as before. Any other
character now fails with the existing "Trust domain characters are
limited to ..." error.

Fixes #496

Signed-off-by: NopeCharon <115794254+NopeCharon@users.noreply.github.com>

522 of 667 branches covered (78.26%)

Branch coverage included in aggregate %.

1919 of 2096 relevant lines covered (91.56%)

3.63 hits per line

Jobs
ID Job ID Ran Files Coverage
1 42108396093.1 05 Nov 2026 09:00PM UTC 51
88.35
GitHub Action Run
Source Files on build 42108396093
  • Tree
  • List 51
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #42108396093
  • d3d91c5a on github
  • Prev Build on main (#42107955719)
  • Next Build on main (#42108689911)
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