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

umputun / tg-spam / 36033562144
84%

Build:
DEFAULT BRANCH: master
Ran 24 Sep 2026 05:24PM UTC
Jobs 1
Files 44
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 Sep 2026 05:20PM UTC coverage: 84.758% (+0.004%) from 84.754%
36033562144

push

github

web-flow
fix(config): keep CLI-supplied credentials out of dashboard saves (#456)

* fix(config): keep CLI-supplied credentials out of dashboard saves

In --confdb mode applyCLIOverrides lays --telegram.token,
--openai.token, --gemini.token, --jev.token and --server.auth /
--server.auth-hash over the values loaded from the database. Saving
from the settings UI (POST /config, PUT /config?saveToDb=true) then
wrote the whole in-memory settings back, so a credential the operator
only passed through the environment ended up in the config row, in
plaintext unless --confdb-encrypt-key is set, and in the backup the
dashboard offers for download. After that, dropping the flag no longer
removed it, because the database now held it.

applyCLIOverrides records every credential it takes from the command
line in Transient.CredentialsFromCLI. Store.Save writes the value the
database already holds for those fields (or nothing when there is no
row yet), and loadConfigHandler keeps their in-memory values across a
reload, as it already does for an AuthFromCLI hash. save-config clears
the list, since storing command-line values is its purpose. The
auto-generated password from the no-auth fallback is not recorded and
is persisted by a UI save as before.

* docs(config): say rotation needs save-config --confdb, fix reload godoc

Plain save-config builds the whole config from CLI flags and replaces
everything set in the web UI, so the docs now send rotation of a stored
credential to save-config --confdb with the same --db, --instance-id and
--confdb-encrypt-key, and keep plain save-config for seeding a fresh
database. db-conf.md notes that a credential an earlier dashboard save
already wrote stays in the config row and older backups. The
ReloadNormalize godoc no longer says DB rotation wins on reload, and
each auth flag alone now has a case in the CLI override test.

54 of 56 new or added lines in 4 files covered. (96.43%)

6 existing lines in 2 files now uncovered.

9470 of 11173 relevant lines covered (84.76%)

234.85 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
82.93
-0.08% app/config/store.go

Coverage Regressions

Lines Coverage ∆ File
4
82.69
-3.85% lib/tgspam/plugin/watcher.go
2
94.24
-0.21% lib/tgspam/detector.go
Jobs
ID Job ID Ran Files Coverage
1 36033562144.1 24 Sep 2026 05:24PM UTC 44
84.76
GitHub Action Run
Source Files on build 36033562144
  • Tree
  • List 44
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d15029a3 on github
  • Prev Build on master (#36033546857)
  • Next Build on master (#36160447164)
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