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

umputun / secrets / 20442116726
85%

Build:
DEFAULT BRANCH: master
Ran 22 Dec 2025 07:38PM UTC
Jobs 1
Files 16
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 Dec 2025 07:37PM UTC coverage: 85.053% (+0.4%) from 84.657%
20442116726

push

github

web-flow
Improve audit logging for security and usage analytics (#94)

* feat(server): improve audit logging for security and usage analytics

- Add HashedIP middleware to inject anonymized IP into request context
- Add type, size, and hashed IP to message creation logs
- Add type and hashed IP to message access logs
- Add login success/failure logging with hashed IP
- Add basic auth failure logging with hashed IP
- Move store-level "not found" logs from INFO to DEBUG to reduce noise
- Add unit tests for HashedIP middleware and GetHashedIP helper

* fix: handle RemoteAddr without port for proxy setups

rest.RealIP middleware sets RemoteAddr to just the IP (no port)
when behind a reverse proxy. net.SplitHostPort fails in this case,
causing all audit logs to show ip=-.

Add extractIP helper that:
- Tries host:port split first
- Falls back to net.ParseIP for port-less addresses
- Returns empty for invalid inputs

Related to #94

64 of 64 new or added lines in 6 files covered. (100.0%)

1616 of 1900 relevant lines covered (85.05%)

22.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 20442116726.1 22 Dec 2025 07:38PM UTC 16
85.05
GitHub Action Run
Source Files on build 20442116726
  • Tree
  • List 16
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 03fe735e on github
  • Prev Build on master (#20415180150)
  • Next Build on master (#20445091343)
  • 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

© 2025 Coveralls, Inc