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

umputun / dkll / 45057357228
84%

Build:
DEFAULT BRANCH: master
Ran 22 Nov 2026 06:51PM UTC
Jobs 1
Files 17
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

22 Nov 2026 06:50PM UTC coverage: 83.77% (+0.5%) from 83.279%
45057357228

push

github

web-flow
Fix compose mongo auth, mask the password in logs (#65)

* Pass mongo credentials in compose url, keep them out of logs

Both compose files enable mongo root auth with MONGO_PASSWD, but the server
url had no credentials, so the server failed with "command create requires
authentication" and exited. The server has not read MONGO_PASSWD since the
switch to a single mongo url in 14e8480. The url now carries
admin:${MONGO_PASSWD} with authSource=admin, and the unused MONGO_PASSWD
env goes away from the dkll service.

With credentials in the url, the server's debug line and connect error
would print the root password, and the demo runs with DEBUG=true. Both
messages drop the url now. A url that fails to parse returns a fixed
error, since the url.Parse error from go-pkgz/mongo quotes the url in full.

The password is inserted into the url and also passed raw to mongo init,
so README asks for letters and digits only.

Fixed #63

* Mask mongo password in all log output with lgr secrets

The previous commit kept the password out of two messages in
makeMongoClient by hand, and its extra url.Parse replaced every parse
error with a bare "can't parse mongo URL", for users without credentials
too. The go-pkgz/lgr and go-pkgz/mongo dependencies already cover this:
setupLog now registers the password from the mongo url via
mongo.SecretsMongoUrls and log.Secret, so every log line shows it as
******, including the final "server failed" error, and makeMongoClient is
back to its original form with the full url in its messages.

README also says to pass the same MONGO_PASSWD on every start, since mongo
keeps the password it was initialized with.

3 of 4 new or added lines in 1 file covered. (75.0%)

1022 of 1220 relevant lines covered (83.77%)

19357.6 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
13.64
13.64% app/main.go
Jobs
ID Job ID Ran Files Coverage
1 45057357228.1 22 Nov 2026 06:51PM UTC 17
83.77
GitHub Action Run
Source Files on build 45057357228
  • Tree
  • List 17
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 051340ad on github
  • Prev Build on master (#44697765216)
  • Next Build on master (#45232729801)
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