You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sysadmin wants to limit access to certain NS8 services (exposed by module routes like the user portals, or by custom routes) to trusted networks/IPs, similarly to NS7 Apache configuration.
Same for cluster-admin, which has a special configuration.
Proposed solution
Add IPAllowList settings in the Traefik router configuration.
Alternative solutions
Custom configuration could be a way but it is currently not preserved by module updates.
Goal: restrict access for certain HTTP routes to some IPs or Networks. The restriction must persist after subsequent changes from the UI and after applications are re-configured or updated.
This new feature is not exposed in the UI, for the QA api-cli is needed.
Set the restriction and check if access is limited as wanted. For example, for cluster-admin route
api-cli run module/traefik1/set-route --data '{"instance": "cluster-admin", "ip_allowlist": ["192.168.47.0/24"]}'
You see the full list of existing routes under Settings > HTTP Routes page.
With NethVoice ensure that after saving the Settings page, restricted routes are still accessible from the configured IPs (e.g. CTI host). With Mail, ensure that after saving Settings > General page, rspamd route is still accessible as configured.
Pass invalid values, a validation error must be returned.
Set an empty list to obtain unlimited access again.
Useful actions to check the current settings:
api-cli run module/traefik1/list-routes | jq
api-cli run module/traefik1/get-route --data '{"instance":"cluster-admin"}' | jq
Activity
Merge branch 'feat-7158'
Merge pull request #82 from NethServer/feat-7312
feat: set-route patch behavior (#91)
DavidePrincipi commentedon Mar 12, 2025
In testing:
Test case
Goal: restrict access for certain HTTP routes to some IPs or Networks. The restriction must persist after subsequent changes from the UI and after applications are re-configured or updated.
This new feature is not exposed in the UI, for the QA
api-cliis needed.Set the restriction and check if access is limited as wanted. For example, for cluster-admin route
You see the full list of existing routes under Settings > HTTP Routes page.
With NethVoice ensure that after saving the Settings page, restricted routes are still accessible from the configured IPs (e.g. CTI host). With Mail, ensure that after saving Settings > General page, rspamd route is still accessible as configured.
Pass invalid values, a validation error must be returned.
Set an empty list to obtain unlimited access again.
Useful actions to check the current settings:
gsanchietti commentedon Mar 13, 2025
Verified with and without configuring trusted proxy.
DavidePrincipi commentedon Mar 14, 2025
Released