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

umputun / weblist / 35489394070
85%

Build:
DEFAULT BRANCH: master
Ran 20 Sep 2026 04:34AM UTC
Jobs 1
Files 9
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

20 Sep 2026 04:32AM UTC coverage: 84.541% (+0.3%) from 84.23%
35489394070

push

github

web-flow
add --auth.public-read for public browsing with authenticated uploads (#60)

* feat(auth): add --auth.public-read for public browsing with authenticated uploads

`--auth` protects everything today, so a public download site can either have no uploads or open ones. The new flag drops the auth middleware from the read group and leaves `POST /upload` behind it. With `--auth` set and the flag absent, browsing and downloads still require a login exactly as before. It refuses to start without `--auth`, since there would be no password to require and uploads would take anonymous writes.

upload controls are keyed on whether the request could actually upload, not on `--upload.enabled` alone: uploads are open when no password is set, so gating them on authentication would break anonymous-upload setups. The header gains a Login link, unnecessary before because an authenticated server never showed a page to an anonymous visitor. `checkBasicAuth` splits out of `tryBasicAuth` so the render path can validate credentials without issuing a cookie, otherwise a Basic Auth client renders as anonymous on its first request.

two changes apply with or without the flag. Unauthenticated `POST /upload` answers a JSON 401 instead of a 303, because `fetch` follows the redirect and reports the login page as "unexpected response". The multi-select handlers now check `EnableMultiSelect` themselves and bound the archive at 1000 entries counted before any ZIP header; opening the read group also exposes `POST /download-selected`, which ignored `--multi` entirely.

Fixed #59

* chore: drop the vendored go-flags fork

the preceding commit switches the flag tests to the parser the binary uses, leaving `github.com/umputun/go-flags` with no importer.

* fix: scope the download cap, keep upload.js loaded, correct the public-read warning

the 1000-entry cap on `handleDownloadSelected` applied to every deployment, so a server running `--multi` behind `--auth` lost a working flow the moment a... (continued)

94 of 117 new or added lines in 5 files covered. (80.34%)

1 existing line in 1 file now uncovered.

2182 of 2581 relevant lines covered (84.54%)

84.71 hits per line

Uncovered Changes

Lines Coverage ∆ File
14
63.4
2.32% main.go
9
84.43
0.5% server/handlers.go

Coverage Regressions

Lines Coverage ∆ File
1
63.4
2.32% main.go
Jobs
ID Job ID Ran Files Coverage
1 35489394070.1 20 Sep 2026 04:34AM UTC 9
84.54
GitHub Action Run
Source Files on build 35489394070
  • Tree
  • List 9
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 2da3e09c on github
  • Prev Build on master (#34793280114)
  • 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