feat(mesh): UI for the gateway-to-gateway mesh
The mesh API (routes/mesh.js) had zero UI -- minting a join token, joining a remote gateway, or seeing what's meshed all required calling the API directly. New Mesh page (nav: Dashboard/Sessions/WireGuard/ Mesh/Audit): - This Gateway card: interface name, kernel-vs-userspace WireGuard mode (wireguard-go fallback), meshed-gateway count. - Mint a Join Token: calls POST /api/mesh/join-tokens, shows the single-use token once. - Join a Remote Gateway's Mesh: calls POST /api/mesh/join with a remote endpoint + token. - Meshed Gateways table: site, mesh index, mesh subnet, endpoint, public key, last seen -- including this gateway's own self-entry. EJS compile verified; jump-host's existing test suite (34 tests) still passes. Not yet visually driven in a browser the way sso-manager-node's modal was (jump-host's OIDC-based admin auth is a heavier lift to stand up for a one-off check) -- route registration, EJS compilation, and the API layer underneath are verified; the actual click-through is not.
This commit is contained in:
@@ -38,6 +38,7 @@ module.exports = {
|
||||
{href: '/dashboard', icon: 'fa-solid fa-gauge-high', label: 'Dashboard', groups: []},
|
||||
{href: '/sessions', icon: 'fa-solid fa-plug-circle-bolt', label: 'Sessions', groups: []},
|
||||
{href: '/wireguard', icon: 'fa-solid fa-shield-halved', label: 'WireGuard', groups: ['admin', 'app_jump_admin']},
|
||||
{href: '/mesh', icon: 'fa-solid fa-diagram-project', label: 'Mesh', groups: ['admin', 'app_jump_admin']},
|
||||
{href: '/audit', icon: 'fa-solid fa-clipboard-list', label: 'Audit', groups: ['admin', 'app_jump_admin']},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user