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

decentraland / comms-gatekeeper / 23764155057
82%

Build:
DEFAULT BRANCH: main
Ran 30 Mar 2026 07:44PM UTC
Jobs 1
Files 140
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

30 Mar 2026 07:43PM UTC coverage: 82.843% (+0.2%) from 82.684%
23764155057

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

927 of 1238 branches covered (74.88%)

Branch coverage included in aggregate %.

44 of 44 new or added lines in 4 files covered. (100.0%)

2 existing lines in 1 file now uncovered.

2651 of 3081 relevant lines covered (86.04%)

41.33 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
12.0
-2.67% src/adapters/scene-stream-access-manager.ts
Jobs
ID Job ID Ran Files Coverage
1 23764155057.1 30 Mar 2026 07:44PM UTC 280
84.12
GitHub Action Run
Source Files on build 23764155057
  • Tree
  • List 140
  • Changed 92
  • Source Changed 3
  • Coverage Changed 92
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #23764155057
  • 5aab3a7c on github
  • Prev Build on main (#23614144453)
  • Next Build on main (#23854135758)
  • 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