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

paskal / tg-spam / 24914110479
83%
master: 79%

Build:
Build:
LAST BUILD BRANCH: fix/confdb-reload-and-merge-artefacts
DEFAULT BRANCH: master
Ran 24 Apr 2026 10:14PM UTC
Jobs 1
Files 38
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

24 Apr 2026 10:09PM UTC coverage: 83.122%. First build
24914110479

push

github

paskal
restore configurable basic-auth user

The previous review-fix squash hardcoded the basic auth username to
"tg-spam" inside checkBasicAuth and dropped both `s.AuthUser` on
webapi.Server and `AuthUser` on ServerSettings. That breaks downstream
deployments (e.g. tg-spam-manager) that proxy the bot UI with
per-instance credentials and rely on a configurable username; their
existing bots store `auth_user` in the per-bot settings DB and the
sudden hardcode forces a manual migration.

This restores the field on both the runtime Config and the persisted
ServerSettings, threads it through main.go, and updates checkBasicAuth
to look up the active user with the same precedence as the hash:
AppSettings.Server.AuthUser → startup AuthUser → "tg-spam" default.
The default preserves the post-squash behaviour for any deployment
that doesn't set AuthUser, so this is fully backwards compatible.

Tests cover the three precedence cases plus the existing rejection
path.

16 of 16 new or added lines in 2 files covered. (100.0%)

7860 of 9456 relevant lines covered (83.12%)

231.87 hits per line

Jobs
ID Job ID Ran Files Coverage
1 24914110479.1 24 Apr 2026 10:14PM UTC 38
83.12
GitHub Action Run
Source Files on build 24914110479
  • Tree
  • List 38
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 2594bd2a on github
  • Delete
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