Skip to content

fix(nethvoice): legacy CTI paths and middleware scenario - #257

Merged
edospadoni merged 3 commits into
mainfrom
fix-nethvoice-cti-paths
Nov 25, 2026
Merged

edospadoni merged 3 commits into
mainfrom
fix-nethvoice-cti-paths

Conversation

@edospadoni

@edospadoni edospadoni commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

NethVoice 1.9 will stop publishing the legacy CTI server on /webrest (nethesis/ns8-nethvoice#1308): every client goes through the middleware on /api.

  • nethvoice-whitelist-http-probing: whitelist 404 answers on /webrest/*. Clients not yet updated call several /webrest paths in a row, which will answer 404: crowdsecurity/http-probing would ban their address, and with it every user behind the same public IP. The existing 401 entries on /webrest stay for instances that still publish it.
  • nethvoice-middleware-bf: add the current nethcti-middleware routes and answers, keeping the old ones. A 401 counts on /login, /2fa/verify, /2fa/recovery, /2fa/disable and /authentication/phone_island_token_login; a wrong code on /2fa/verify-otp answers 400 and counts too (the 429 that follows is already rate limited by the middleware).
  • New parser tests in tests/20__parsers.robot for the OTP case and for the /webrest whitelist.

NethServer/dev#8358

NethVoice 1.9 no longer publishes the legacy CTI server on /webrest.
Clients not yet updated call several /webrest paths in a row, which
now answer 404: http-probing would ban their address, and with it
every user behind the same public IP. Whitelist those answers.

Refs NethServer/dev#8358
Match the current nethcti-middleware routes and answers: wrong
passwords on /login, /2fa/disable and the phone island token login
answer 401, wrong codes on /2fa/verify-otp answer 400, then 429.
Add parser tests for the OTP case and for the /webrest whitelist.
@edospadoni edospadoni self-assigned this Nov 24, 2026
Keep /2fa/verify and /2fa/recovery for middleware versions that still
expose them, drop the 429 status and the comments as asked in review.
@edospadoni
edospadoni merged commit 508ea6d into main Nov 25, 2026
5 checks passed
@edospadoni
edospadoni deleted the fix-nethvoice-cti-paths branch November 25, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants