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

go-pkgz / auth / 32644231611
87%
master: 86%

Build:
Build:
LAST BUILD BRANCH: feat/partitioned-cookies
DEFAULT BRANCH: master
Ran 23 Aug 2026 02:04PM UTC
Jobs 1
Files 25
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

23 Aug 2026 02:02PM UTC coverage: 86.52% (+0.5%) from 86.05%
32644231611

Pull #316

github

paskal
Refuse redirects on requests that carry the bot token

Go copies the previous URL into Referer on every redirect hop except
https-to-http, and both Telegram URL forms carry the token in the path, so a
redirect hands the destination host the bot token, normally into its access
log. Verified against net/http rather than inferred: a probe with two TLS test
servers shows the target receiving
Referer: https://host/bot1234567:SECRET-TOK/getMe.

The public API does not redirect, so nothing legitimate is lost by refusing,
and a caller-supplied base is exactly where an unexpected redirect could come
from. noRedirect takes a shallow copy of the client so the caller's own is left
alone and its Transport, and with it any custom CA, client certificate or proxy
setting, is still used. Applied to the bot-method path and to the avatar
download, which carries the token in its URL too.

Worth an explicit decision on your side: this makes a proxy that answers with a
redirect stop working, where before it worked and leaked. Refusing is the safer
default, and it is a one-line change to make it configurable if you would
rather it were.
Pull Request #316: Allow pointing the Telegram provider at another API base URL

95 of 106 new or added lines in 1 file covered. (89.62%)

3312 of 3828 relevant lines covered (86.52%)

9.78 hits per line

Uncovered Changes

Lines Coverage ∆ File
11
87.23
v2/provider/telegram.go
Jobs
ID Job ID Ran Files Coverage
1 32644231611.1 23 Aug 2026 02:04PM UTC 25
86.52
GitHub Action Run
Source Files on build 32644231611
  • Tree
  • List 25
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #316
  • PR Base - master (#32226875382)
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