Repository navigation
host/fabric: harden root marker, secrets, dashboard auth & chain routing - #405
Merged
Merged
Conversation
…anning, and fix route validation
…, and 6/8-Spark hairpin check
…aarch64 check, and CLI shadowing
FujitsuPolycom
force-pushed
the
fix/host-fabric-hardening
branch
from
November 30, 2026 06:03
aad4d26 to
32b722f
Compare
FujitsuPolycom
added a commit
that referenced
this pull request
Nov 30, 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.
Why
Close host security, privilege-boundary, daemon conflict, open-chain routing, and installer bugs affecting multi-Spark rings and chains.
What Changed
fabric/commands.py,state.py,diff.py,cli.py): Installring8-mesh-markerto/usr/local/libexec/sparkring/ring8-mesh-markerviasudo -n installinstead of executing user-writable/var/tmp/ring8-mesh-marker; verifyuid == 0,mode & 0o022 == 0, and SHA-256 before running.routes.py,fabric/plan.py): Add BFS connectivity checks toFabric.kind, sparse--ring-onlyvalidation tovalidate_route_map, and open-chain relay planning (ChainGroup/build_chain_plan).runtime/host/,packaging/debian/): Eliminate0644write-then-chmod TOCTOU on WireGuard keys and secrets (O_CREAT|O_EXCL+fchmod); switch dashboard Basic Auth tohmac.compare_digestand default to loopback (127.0.0.1), failing closed on unauthenticated LAN bind unless--allow-unauthenticated-lanis explicit; align status/recovery JSONs to0640; addMaxConnections=16tosparkring-helper.socket+ bounded streaming subprocess capture inhelper.py; disableAllowTcpForwardingon seed/access services and sanitizesudoers.dfilenames.node.py,relays.py,recovery.py): Teachsparkring-agentto yield cleanly (yielded_to_sircl_fabric) when/run/sparkring-fabric/relay-state.jsonis active instead of overwritingproto 82routes every 30s; run ConnectX hairpin checks on all>= 3rank layouts (4/6/8 Sparks).install.sh,bootstrap.sh): Runapt-get updatebeforeapt-get install, quote globs, addaarch64guard +/dev/ttyprompt inbootstrap.sh, and clean up~/.local/bin/sparkringshadowing/usr/bin/sparkring.Verification
pytestacrossspark_transport/sircl/tests/(197 passed), host security/dashboard/workflow suites (475 passed),test_relays/test_recovery/test_node_status(110 passed), helper/privilege/sudoers (16 passed), and WSL Linux POSIX tests (test_helper/test_privilege/test_ring_halves63/63).ruff check(0 issues across 33 Python files) andbash -n install.sh bootstrap.sh(exit 0).Risks / Follow-Ups
--password-fileor explicit--allow-unauthenticated-lan./var/tmp/ring8-mesh-markerwill automatically migrate to/usr/local/libexec/sparkring/ring8-mesh-markeron nextfabric apply.