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

kubeflow / trainer / 30577236610
69%

Build:
DEFAULT BRANCH: master
Ran 30 Jul 2026 08:04PM UTC
Jobs 1
Files 42
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

30 Jul 2026 07:59PM UTC coverage: 68.522% (+0.3%) from 68.256%
30577236610

push

github

web-flow
fix(operator): improve status server bearer token parsing and add helper tests (#3782)

* fix(operator): improve status server bearer token parsing and add helper tests

The status server rejected Authorization headers that RFC 7235 considers
valid: the auth-scheme is case-insensitive, and clients may separate the
scheme from the credentials with more than a single space. Splitting on a
literal " " meant `bearer <token>` or `Bearer  <token>` silently produced
an empty token and a 403, which is hard to diagnose from the client side.

Parse the header with strings.Fields and compare the scheme with
strings.EqualFold, so leading, trailing and repeated whitespace are
tolerated while headers that carry anything other than exactly one bearer
credential are still rejected.

Add unit tests for extractRawToken, TokenAudience and StatusUrl, which had
no direct coverage. Test cases are defined as maps keyed by the case name,
per the Go testing conventions in CONTRIBUTING.md.

Fixes #3404

Signed-off-by: Udit Jain <uditjainstjis@gmail.com>

* review: drop empty namespace/name test cases

Per review, empty namespace/name isn't part of the contract these
helpers need to assert.

Signed-off-by: Udit Jain <uditjainstjis@gmail.com>

---------

Signed-off-by: Udit Jain <uditjainstjis@gmail.com>

2573 of 3755 relevant lines covered (68.52%)

0.8 hits per line

Coverage Regressions

Lines Coverage ∆ File
7
9.09
9.09% pkg/statusserver/auth.go
Jobs
ID Job ID Ran Files Coverage
1 30577236610.1 30 Jul 2026 08:04PM UTC 42
68.52
GitHub Action Run
Source Files on build 30577236610
  • Tree
  • List 42
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 7c08264b on github
  • Prev Build on master (#30492999644)
  • Delete
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