4 Commits
Author SHA1 Message Date
proitlabandClaude Opus 4.8 e5e2990a68 controller: ship a FileDB-only image and a gate that proves it runs
build.yml / build_ubuntu (push) Canceled after 0s
build.yml / build_macos (push) Canceled after 0s
build.yml / build_windows (push) Canceled after 0s
Lint / clang-format (push) Canceled after 0s
validate.yml / build_ubuntu (push) Canceled after 0s
ZT_CONTROLLER=1 on a box with libpq present but unconfigured compiles
clean and silently falls back, so a successful build proves nothing.
This adds the embedded controller as a buildable artifact and the check
that would have caught that failure.

ZT_CONTROLLER_NO_SQL=1 gates the SQL block and the smeeclient cargo
target, leaving the ZT_CONTROLLER=1 path byte-identical when unset.
Dropping it removes the arch-pinned ext/*/install/ubuntu22.04 prebuilts
and the rust toolchain from the build, so any Debian base works.

Dockerfile.controller builds that target into a 142MB runtime image.

Three defects surfaced while proving it, all logged in SPEC B8/B9:

- .dockerignore was inert twice over. Its patterns ran as a post-COPY
  RUN printf, which the daemon has already used by then, and bare *.o
  matches the root only under Docker's filepath.Match, so all 121 stale
  objects were copied and linked against the image's glibc 2.36. Now
  **/*.o, which is the known stale-object hazard from AGENTS.md.

- The gate asserted nm -C found nothing inside a runtime image with no
  nm. sh: nm: not found made the pipeline fail, ! inverted it to a pass,
  and the check went green on a missing tool. Uses grep -qaE instead.

- The container ran with -p, so every API call returned 401: OneService
  gates on loopback source at OneService.cpp:1859 unless
  allowManagementFrom widens it, and a DNAT'd port arrives from the
  bridge gateway. The gate uses --network host, and the docs now say so.

Verified: gate passes against the image and in --local, driving network
create, member authorize, member list and the on-disk write. Identity
and controller.d survive container replacement.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-10-12 06:31:22 +00:00
proitlabandClaude Opus 4.8 a224dbbc53 PQ: fix membership for post-quantum nodes (three control-plane defects)
validate.yml / build_ubuntu (push) Canceled after 0s
build.yml / build_ubuntu (push) Canceled after 0s
build.yml / build_macos (push) Canceled after 0s
build.yml / build_windows (push) Canceled after 0s
Lint / clang-format (push) Canceled after 0s
A PQ node could complete the hybrid handshake and still never join the
network: status ACCESS_DENIED, peers [], frames dropped. Three separate
defects, none in the key exchange itself.

1. EmbeddedNetworkController::_request gated known members with
   Identity(haveIdStr) != identity. HELLO carries only the classic
   projection (Identity::serializeClassic), so peer->identity() stays
   type 0 while a stored record is type 1, and operator== -- which
   compares PQ material -- always reported a mismatch. Use the existing
   sameClassicalIdentity(); PQ key rotation stays detectable via
   VERB_PQ_KEYS.

2. Peer::setPQPublicKeys() cached the received PQ keys for the crypto
   path only and never wrote them into _id. The controller's identity
   therefore stayed type 0 in every table, com.verify() returned 1, and
   Membership deferred for WHOIS forever -- a WHOIS cannot help, the
   keys arrive in VERB_PQ_KEYS. Add Identity::attachPQPublicKeys() and
   call it so the peer's Identity is complete once keys arrive.

3. OneServiceImpl::run constructed an EmbeddedNetworkController
   unconditionally, so a member-only node answered its own
   NETWORK_CONFIG_REQUESTs and self-signed a local config, never
   contacting the node that owned the network. Add
   settings.disableController (default false, so existing installs are
   unchanged) for member-only nodes.

Verified live on two hosts with pqcMode: hybrid on both sides: status OK,
peer DIRECT over 192.168.122.85/9993, pqcCapable and pqcHybridActive true
both directions, ping 0% loss both ways, selftest exit 0.

The selftest regression covers the controller match and keeps rejecting an
impostor identity at the same address.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-10-07 21:37:05 +00:00
dedysutanto c550fe0684 chore: rebrand backone names, add lint gate + agent docs
- CI: build/validate use backone selftest + binary names, add lint.yml
- make-*.mk: emit/install backone binaries, drop zerotier-one paths
- doc/debian/ext.installfiles: backone manpages, service, init, te
- rule-compiler: npm test runs test.js; attic world planet files
- AGENTS.md repository guidelines, tools/lint.sh changed-lines gate
- gitignore: /backone-selftest, *.gcno, *.gcda
2026-09-30 15:08:00 +07:00
dsutanto dbdc5bcc4a First Commit
/ build_macos (push) Has been cancelled
/ build_windows (push) Has been cancelled
/ build_ubuntu (push) Has been cancelled
2025-11-19 16:23:45 +07:00