Skip to content

Add Frontend proxies tab to the HTTP routes page - #1258

Open
stephdl wants to merge 10 commits into
mainfrom
sdl-8098-frontend-proxies
Open

Add Frontend proxies tab to the HTTP routes page#1258
stephdl wants to merge 10 commits into
mainfrom
sdl-8098-frontend-proxies

Conversation

@stephdl

@stephdl stephdl commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Expose the Traefik trusted proxies settings in the cluster admin UI. Until now the only way to configure them was api-cli run module/traefik1/set-trusted-proxies.

The HTTP routes page gets a tab bar: the existing route table moves into a Routes tab, and a new Frontend proxies tab is added. The selected tab is kept in the view query parameter.

The new tab lists one row per node running behind a frontend HTTP proxy, with its proxy addresses and its trust depth, plus a text filter and a node filter. The Add/Edit modal takes the node, the proxy addresses (one per line) and the trust depth. The Add dropdown only offers nodes that are not configured yet, since set-trusted-proxies replaces the whole list of a node. Deleting a row sends an empty proxy list.

UI-only change: no Traefik action, schema or configuration template is touched.

Related issue

NethServer/dev#8098

@stephdl stephdl self-assigned this Jul 28, 2026
stephdl added a commit to NethServer/ns8-ui-lib that referenced this pull request Jul 30, 2026
Subpaths of the Carbon "network--3" icon, for empty states about network
configuration. NethServer/ns8-core#1258 needs it for the frontend proxies
table and carries a local copy in the meantime.
@stephdl
stephdl requested a review from AmaLuci August 3, 2026 10:20
@stephdl
stephdl force-pushed the sdl-8098-frontend-proxies branch 2 times, most recently from 45ae764 to 17d439b Compare August 6, 2026 13:06
@stephdl
stephdl requested review from andre8244 and removed request for AmaLuci August 6, 2026 13:07
stephdl added 4 commits August 6, 2026 17:08
Split HTTP routes page into tabs for routes and frontend proxies.
Recompute node list from clusterNodes instead of snapshotting once,
so it updates regardless of load order. Restart the read chain on
websocket reconnect and avoid duplicating routes from stale events.
@stephdl
stephdl force-pushed the sdl-8098-frontend-proxies branch from 17d439b to 24eaa01 Compare August 6, 2026 15:09
Comment thread core/ui/src/views/settings/SettingsHttpRoutes.vue
Comment thread core/ui/public/i18n/en/translation.json
Comment thread core/ui/public/i18n/en/translation.json Outdated
Comment thread core/ui/src/components/settings/ConfigureFrontendProxyModal.vue Outdated
@andre8244

Copy link
Copy Markdown
Contributor

is bad_ip_address i18n string used (maybe by the backend)? If not, we can remove it

@stephdl

stephdl commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

Yes, by the backend. set-trusted-proxies returns error: bad_ip_address, and
setTrustedProxiesValidationFailed() resolves the key dynamically via
getI18nStringWithFallback() — same pattern as the other modals, so grep finds nothing.
Removing it would show the raw key on screen.

@stephdl
stephdl force-pushed the sdl-8098-frontend-proxies branch from 895f9ee to 7546cd1 Compare August 7, 2026 09:08
@stephdl
stephdl requested a review from andre8244 August 7, 2026 09:41
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.

2 participants