27 Commits
Author SHA1 Message Date
proitlab cdcb1224cc chore: bump version to 2.0.4
Lint / clang-format (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
validate.yml / build_ubuntu (push) Canceled after 0s
Patch release for the classic-COM fix in 6c23665: a hybrid controller now
issues a type-1 certificate of membership to a requester that did not
advertise PQ capability, so pre-PQ clients can join again.

version.h revision 3 -> 4, with matching debian/changelog, RPM spec
version+changelog, and RELEASE-NOTES.md entries.
2026-12-04 18:09:41 +07:00
proitlab 6c23665072 fix(controller): issue classic COM to pre-PQ requesters
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
A hybrid controller always double-signed the COM, so it serialized with type
byte 2. A legacy (v1.14.1) client's COM parser rejects any type != 1, which
threw inside NetworkConfig::fromDictionary; handleConfigChunk swallowed it, so
the client sat at REQUESTING_CONFIGURATION forever and surfaced as
ACCESS_DENIED once the network was private and its member unapproved.

Advertise PQ capability in the network-config-request metadata ("f" bit 0,
previously hardcoded 0) and let the controller pick the wire form per
requester: type 2 only for a requester that flagged the bit, type 1 otherwise
(all legacy clients, and push configs with no request metadata).

Verified: selftest's new "PQ authority can issue classic COM on demand" case
passes, and a real v1.14.1 client reaches status OK / netconfRevision 5
against a pqcMode:hybrid controller while a hybrid client still comes up OK.
2026-12-04 18:00:43 +07:00
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
proitlab ecd6d86be1 release: 2.0.3
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
Bump ZEROTIER_ONE_VERSION_REVISION 2 -> 3 and carry the release into the
packaging metadata: backone.spec Version plus a changelog entry, debian
changelog, and RELEASE-NOTES.md.

Release notes cover the pqconly enforcement work landed in 2e2b091: the
mode enforced nothing and was indistinguishable from hybrid, the first
gate still missed the config-serve direction that actually grants
membership, and the hybrid downgrade warning.

Notes the _hybridCapable latch as a known limitation rather than leaving
it undocumented.

Verified on a clean rebuild: binary reports 2.0.3, startup smoke exit 124
(healthy, no SIGSEGV), selftest exit 0.
2026-10-08 10:39:01 +00:00
proitlab 2e2b0910a8 pqconly: enforce PQ peers, including on the config-serve path
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
`pqconly` selected a type-1 identity and then behaved exactly like
`hybrid` at runtime: every handshake gate tested only
`pqcMode() != CLASSIC`, so nothing distinguished the two modes and no
non-capable peer was ever refused. Measured on the two-host lab, a
`pqconly` node carried traffic with a fully classical peer at 0% loss.

Add `Peer::pqconlyPeerRejected()` - true when this node is exactly
`pqconly`, the peer did not advertise the HELLO capability bit, and its
role is not PLANET/MOON (all four Earth roots are `pqcCapable:false` and
enforcing against them would cut the node off the root topology).

Three verbs are gated, and the third is load-bearing. The first
implementation gated only `VERB_NETWORK_CONFIG` and
`VERB_NETWORK_CREDENTIALS` and still let the classical peer join at 0%
loss, because membership is granted by the *serve* direction: a classic
peer asks the pqconly node's controller for its config, and the node
enforcing the policy was the one handing it over. Gating
`VERB_NETWORK_CONFIG_REQUEST` before the controller is consulted closes
it. The rejection counter had been incrementing in the unrelated
direction throughout, which is what made the false assurance possible.

`hybrid` keeps its silent classical fallback - that is its contract - but
now logs a downgrade WARNING once per peer, re-armed on recovery, so a
downgraded link is no longer invisible.

The gate keys on `_hybridCapable`, not `hybridSessionKeyInstalled()`:
the encapsulating peer stages its hybrid key until the confirm tag
arrives, so gating on the installed key would reject a healthy PQ peer
for the entire staging window.

Measured 2026-10-08, two-host lab, clean rebuild, selftest exit 0:
- `pqconly` vs classical: network now sits at REQUESTING_CONFIGURATION
  with assignedAddresses [] and 100% loss, down from OK at 0% loss.
- `pqconly` vs `pqconly`: 0% loss both directions, no false rejection.
2026-10-08 10:33:12 +00:00
proitlab 975148525b docs: measure pqcMode pqconly; it does not enforce PQ
Tested pqconly on both lab hosts. It behaves identically to hybrid at
runtime and is NOT the "no classic fallback" policy mode its comment
claims.

Only one runtime site distinguishes the modes: identity generation
(Identity.cpp:109). Every handshake gate tests pqcMode() != CLASSIC
(Peer.hpp:434, Node.cpp:274), so hybrid and pqconly share a path. A
tree-wide grep finds no other PQCONLY reference in compiled code.

Measured against a genuinely classical peer (identity wiped, since the
identity is loaded from disk and off alone does not revert it):
pqconly reported capable=False hybrid=False paths=3 and forwarded
packets with 0% loss. It does not refuse a peer without PQ material and
emits no warning.

Consequence: a pqconly node gets no downgrade protection, and the only
detection is monitoring pqcHybridActive. Documented in
docs/pqconly-mode-test.md with the reproduction steps and the restore
procedure, cross-linked from the mode table in the main runbook.

Also fixes an od command in the runbook: identity.public is a
colon-delimited text file, so od reads ASCII rather than the type byte.
The type is field 2.

Lab restored to pqcMode hybrid, both hosts pqcHybridActive=true, 0% loss
in both directions.
2026-10-08 09:53:09 +00:00
proitlab 727e31b33d dissector: stop reporting ciphertext bytes as verb on encrypted frames
The dissector tested only the pre-1.0.3 0x80 "encrypted" bit, which a
modern AES-GCM packet never sets — the cipher suite lives in flags bits
3-5 (Packet.hpp:1319). Every AES-GCM frame therefore had byte 27 shown
as zt.verb, so a PQ capture produced a histogram of garbage (values up
to 254) that looked like protocol traffic and none of it was.

Cipher suite is now read from bits 3-5, zt.verb is only added on
unencrypted frames, and encrypted frames are labelled as such.

This also invalidates a claim in both docs: VERB_PQ_KEYS is armored with
encryptPayload=true (Peer.cpp:628), so its verb was never actually
readable. The earlier "zt.verb == 23 matches 1" result was ciphertext
that happened to equal 23. PQ_KEYS must be identified by size and
fragmentation (4257 B, ~13 fragments at 1480 B), which is what §7 now
says.

Verified on a live hybrid capture: verb histogram collapses to the
single real value 1, all 127 frames still match zt, the capability bit
and fragment headers still parse.

Adds docs §6.3 covering the data-channel question: the session key
cannot be read from the wire, but pqcHybridActive reports
Peer::hybridSessionKeyInstalled(), which does assert the installed key.
Confirmed true on both hosts.
2026-10-08 09:28:55 +00:00
proitlab bb1e5c20f1 docs: add two-host PQ manual runbook; correct HELLO/PQ_KEYS facts
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
Add docs/two-host-pq-manual-test.md — the human-redo procedure for the
two-machine post-quantum test over real NICs, real TUN/TAP and systemd.
Every command was executed against both live hosts before being written
down; testing caught three errors in the draft (identity address
extraction, swapped ping directions, and the HELLO sizing claim below).

Correct docs/pqc-test-scenario.md, which still described the pre-fix
design: PQ material does NOT ride in HELLO. Peer.cpp:527 serializes only
the classic identity projection, so a hybrid HELLO is 185 B / 1 fragment
in both modes and the ML-KEM ciphertext arrives in a separate
VERB_PQ_KEYS frame. That is precisely why the controller compares classic
material (B6) and why a 6415 B identity would blow the fragment budget.
Confirmed on a live capture: 50 HELLOs with cap=1, 1 VERB_PQ_KEYS frame.

The 2.0.0 test matrix is kept but labelled historical, since its rationale
is still worth having.
2026-10-08 05:24:08 +00:00
proitlabandClaude Opus 4.8 ceb1a00694 gitignore: skip out-of-tree CMake scratch for vendored redis++
Lint / clang-format (push) Canceled after 0s
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
An aborted CMake run in ext/redis-plus-plus-1.3.3/ left a build/ directory
of compiler-detection files that nothing consumes -- make-linux.mk:345
links the prebuilt library under install/, which stays tracked (58
files). Anchored rule so sibling build dirs in ext/ are unaffected.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
v2.0.2
2026-10-07 21:52:28 +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 ad01fbcccb build(debian): rename packaging to backone (init/service/upstart/ufw/control)
Lint / clang-format (push) Canceled after 0s
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
2026-10-03 07:52:53 +07:00
dedysutanto fa08792c78 feat(pqc): plumb pqcMode to identity path, hybrid HELLO ct, spec review fixes
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
- Node stores _pqcMode; Identity::generate(bool,int) derives pq from daemon mode
- OneService reads local.conf settings.pqcMode before new Node (opt-in, absent=classic)
- Peer/IncomingPacket: hybrid KEM ct in HELLO/OK, capability-bit fallback classic
- tools/pqc-lab.sh two-node E2E lab + tools/zt-dissector.lua capture dissector
- docs/pqc-test-scenario.md test plan
- SPEC.md review pass: V12 evidence -> live daemon check, V14/V15 cite realign,
  T24/T25 tasks (pqconly preset gap documented)
2026-10-03 07:01:52 +07:00
dedysutanto 1ead221c6a chore: bump version to 2.0.0
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
Version scheme diverges from upstream zerotier-one 1.14.1. Covers version.h, RPM/deb packaging, mac pkgproj, Windows aip, release notes, security matrix.
2026-10-01 15:55:39 +07:00
dedysutanto a6b0c58511 docs: note header rebuild gotcha (no -MMD dep tracking) 2026-10-01 15:55:16 +07:00
dedysutanto 86c744897b feat(pqc): identity/COM v2, pqcMode config, selftest gates
Phases 3-6 (SPEC T19-T23): type-1 identity carries ML-KEM-768 + ML-DSA-65 pubs, COM type-2 double-sign, HELLO capability bit, local.conf settings.pqcMode (off/hybrid/pqconly) with classic fallback. selftest KAT + interop matrix + fragment-loss benchmark green.
2026-10-01 15:55:09 +07:00
dedysutanto d4568326af test: drop orphaned Java StringUtilsTest (no build target, no CI) 2026-09-30 15:08:37 +07:00
dedysutanto 7cf826c6b6 feat: PQ hybrid groundwork — liboqs vendored, PQHybrid, KDF wiring
- ext/liboqs: vendored (ML-KEM/ML-DSA ready), -isystem ext/liboqs/include
- node/PQHybrid.*: KDF over X25519 agree + ML-KEM-768 encaps scaffold
- wire into IncomingPacket/Node/Bond/selftest/OneService paths
- zeroidc ext.rs: URL param parser unit tests
- SPEC.md: BackOne quantum-safe task table (T1–T23)
- research doc: hybrid PQ fork plan (ML-KEM+X25519, ML-DSA+Ed25519)
2026-09-30 15:08:25 +07: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 104d781614 Update nexusnetwork.plist
/ build_macos (push) Has been cancelled
/ build_windows (push) Has been cancelled
/ build_ubuntu (push) Has been cancelled
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
v1.14.1
2026-04-10 14:20:14 +07:00
dsutanto e6cd97775f Update README.md
/ build_macos (push) Has been cancelled
/ build_windows (push) Has been cancelled
/ build_ubuntu (push) Has been cancelled
2026-01-08 11:46:54 +07:00
dsutanto a11f6ea017 Update .gitignore
/ build_macos (push) Has been cancelled
/ build_windows (push) Has been cancelled
/ build_ubuntu (push) Has been cancelled
2026-01-08 11:45:44 +07:00
dsutanto e1619f4b0e For Nexus Package creation 2026-01-08 11:44:56 +07:00
dsutanto af522591fe Add mac-dist-pkg_nexus 2026-01-08 11:44:39 +07:00
dsutanto 25dd337a93 Update README.md for Mac OS Compile 2026-01-08 11:44:03 +07:00
dsutanto 52d974f5a5 Add .gitignore 2026-01-08 11:43:43 +07:00
dsutanto eabd72c497 Change from DesktopUI -> BackOneUI
/ build_macos (push) Has been cancelled
/ build_windows (push) Has been cancelled
/ build_ubuntu (push) Has been cancelled
2026-01-08 10:30:03 +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