Repository navigation
fix(nethvoice): legacy CTI paths and middleware scenario - #257
Merged
Merged
Conversation
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.
gsanchietti
reviewed
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.
stephdl
approved these changes
Nov 25, 2026
gsanchietti
approved these changes
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/webrestpaths in a row, which will answer 404:crowdsecurity/http-probingwould ban their address, and with it every user behind the same public IP. The existing 401 entries on/webreststay 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/disableand/authentication/phone_island_token_login; a wrong code on/2fa/verify-otpanswers 400 and counts too (the 429 that follows is already rate limited by the middleware).tests/20__parsers.robotfor the OTP case and for the/webrestwhitelist.NethServer/dev#8358