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

zalando / skipper / 15734771733
78%

Build:
DEFAULT BRANCH: master
Ran 18 Jun 2025 02:08PM UTC
Jobs 1
Files 280
Run time 2min
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

18 Jun 2025 01:52PM UTC coverage: 77.732% (+0.006%) from 77.726%
15734771733

push

github

web-flow
Added check to handle token parsing with claims without "sub". (#3287)

### Description 
In the oidc_introspection.py `func (filter *oidcIntrospectionFilter)
Request(ctx filters.FilterContext)` function get value form the Claim
map using `sub` key and then casts the value into a string, but this
would panic if no sub key is present. I added a check to ensure we only
cast values if sub key is present.

### Linked Issue 
closes #3216 

### Approach to solution
As describe in the following
[comment](https://github.com/zalando/skipper/issues/3216#issuecomment-2433498646),
I dug a bit deeper and found 2 suitable values to use if subject is not
present in token. One is the Subject value in tokenContainer struct or
UserInfo Struct. I decided to go with the tokenContainer struct. If this
is not correct please do guide me if UserInfo Struct would be better.

---------

Signed-off-by: wassafshahzad <wassafshahzad@gmail.com>

2 of 5 new or added lines in 1 file covered. (40.0%)

23318 of 29998 relevant lines covered (77.73%)

102012.67 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
73.68
-1.51% filters/auth/oidc_introspection.go
Jobs
ID Job ID Ran Files Coverage
1 15734771733.1 18 Jun 2025 02:08PM UTC 280
77.73
GitHub Action Run
Source Files on build 15734771733
  • Tree
  • List 280
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15734771733
  • 509b0163 on github
  • Prev Build on master (#15733076233)
  • Next Build on master (#15819624884)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc