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
{{ message }}
Repository navigation
Registry nodes named "default" or "all" are silently shadowed #161
listNodes always adds the env default as default and then appends registry entries, so a registry default is listed twice. getNodeConfig("default") returns the registry entry, but fan-out and nodeList map default to undefined (the env host). A registry all can never be targeted by read-only fan-out tools, because all is the fan-out keyword.
Impact
With a registry default, node: "all" and nodeList probe the env host twice and can show a down node as online; node: "default" and an omitted node reach different machines.
How to run tests: cd mcp-server && npm install && npm test (and npm run typecheck); structure tests: pip install -r requirements-test.txt && pytest tests/ -v
Conventions: see CLAUDE.md and CONTRIBUTING.md
Filed by repo-audit/full-audit at 636fefb. Severity: low. Effort: S. audit-key: bug|mcp-server/src/utils/ssh-api.ts|getNodesRegistry
Fixed in 9fb4dd5: getNodesRegistry rejects entries named default or all with an error naming the reserved word; getNodeConfig resolves default to the HOMELAB_PI_* node first. Verified with unit tests for both names; build, typecheck, Vitest and structure tests pass.
Activity
TMHSDigital commentedon Nov 19, 2026
Fixed in 9fb4dd5: getNodesRegistry rejects entries named default or all with an error naming the reserved word; getNodeConfig resolves default to the HOMELAB_PI_* node first. Verified with unit tests for both names; build, typecheck, Vitest and structure tests pass.