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

decentraland / comms-gatekeeper / 23764155057 / 1
84%
main: 84%

Build:
DEFAULT BRANCH: main
Ran 30 Mar 2026 07:44PM UTC
Files 280
Run time 6s
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

30 Mar 2026 07:43PM UTC coverage: 84.123% (+0.1%) from 83.987%
23764155057.1

push

github

web-flow
feat: add token-based moderator authentication (#250)

* feat: add token-based moderator authentication

Add MODERATOR_TOKEN env var as an alternative auth method for moderation
routes. Moderators can now authenticate via Bearer token instead of
wallet signatures, with identity provided via a moderator query parameter.

* fix: pass config to createModeratorComponent in test components

* fix: update integration tests to expect 401 for unsigned moderation requests

With signedFetch set to optional, unsigned requests now pass through to
the moderator middleware which returns 401 instead of signedFetch's 400.

* refactor: parameterize moderator middleware with moderatorRequired option

Replace two separate middlewares with a single configurable
moderatorAuthMiddleware({ moderatorRequired }) factory. Write endpoints
require the moderator query param, read endpoints do not.

* fix: address security review feedback for moderator token auth

- Use timing-safe comparison for token validation to prevent timing attacks
- Sanitize moderator query parameter (alphanumeric, max 100 chars)
- Add audit logging for token-based auth success and failure

998 of 1327 branches covered (75.21%)

Branch coverage included in aggregate %.

5302 of 6162 relevant lines covered (86.04%)

20.67 hits per line

Source Files on job 23764155057.1
  • Tree
  • List 280
  • Changed 92
  • Source Changed 3
  • Coverage Changed 92
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 23764155057
  • 5aab3a7c on github
  • Prev Job for on main (#23614144453.1)
  • Next Job for on main (#23854135758.1)
  • 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