Merged
logan
merged 3 commits from 2026-10-04 01:26:04 -04:00
fix/14-15-provision-ota into main
No Reviewers
Labels
Clear labels
area/ai-pipeline
area/auth
area/billing
area/correlation
area/discord
area/frontend
area/governance
area/growth
area/infra-deploy
area/legal
area/map
area/mqtt
area/node-ota
area/osint
area/recording-audio
area/sdr-radio
area/transcription
board
board:agenda
Scene/entity extraction, summarizer, AI providers, embeddings
AuthN/Z, roles, tenancy/org scoping, API keys, credentials
Plans, entitlements, AI spend accounting and caps
Incident correlation, linking, lifecycle, severity, corr_debug
Discord bot, radio bots, voice streams, bot tokens, webhooks
Web UI: Next.js app and the edge-node local dashboard
Board process, minutes, unattended runner, agent tooling
Go-to-market, outreach, cold email, discovery conversations
CI/CD, VM, registry, Firestore rules/indexes deploy, Terraform/Caddy
ToS, retention, licences/DAAs, CAN-SPAM, E&O, name suppression
Live map: pins, paths, tiles, legend, geocoding
Node-C2 MQTT, checkins, commands, node sweeper, dynsec
Node install, enrollment, OTA updater, image skew
External feeds: cameras, 511, ADS-B, AIS, outages, and their licences
Call capture, boundaries, PulseAudio, ring buffer, trimming, attribution
OP25 decode, SDR hardware/tuning, conventional, second SDR, mesh radio
STT, transcript correction, place verification, name accuracy
Board process: minutes and board-filed items
Needs board scoping at the next sitting; CEO removes the label once scoped
kind
behavior-bug
Wrong product behavior; the instrument reads it correctly
kind
measurement-bug
Corrupts the recording/instrument (debug data, evals, health checks), not behavior
priority
p0
Drop everything: prod broken, live exposure, or owner-ruled P0
priority
p1
Next up: blocks a gate, a customer, or core incident quality
priority
p2
Normal: real defect or planned work, schedule in turn
priority
p3
Low: minor, cosmetic, or someday
status
blocked
Waiting on an external party, spend, or another issue
status
in-progress
Branch or PR open against it
status
needs-decision
Waiting on an owner or board ruling before work
status
needs-info
Root cause or repro unknown; needs a reading first
type
bug
Something built is wrong: code, data, or a measurement
type
chore
Maintenance, refactor, tests, pinning, cleanup: no user-visible change
type
decision
A ruling to make or record: board minutes, owner calls, legal reviews
type
docs
Docs, runbooks, CLAUDE.md, skills, SOPs
type
feature
New capability or an extension of an existing one
type
security
Security, privacy, credential or tenant-isolation exposure
type
tracking
Tracker, checklist, initiative or punch-list spanning several changes
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: logan/node-26#16
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Fixes node-26#14 and node-26#15. Pairs with server-26 PR
fix/node-14-15-update-endpoint. The node half works without it, except the HTTPS update check-in, which skips cleanly until that PR deploys.install.sh (#14)
Please have an admin approve node '<id>' at https://drb.cusano.net/settings/nodes to continue, then pollsGET /nodes/{id}/credentialswith the pickup secret. No default timeout. Ctrl-C is safe: a re-run resumes fromconfigs/pickup_secret.--wait-approval Ncaps the wait, and0skips it.credentials.jsonis merged atomically, so the dashboard's auth salt and session secret survive.edge-nodeis always force-recreated at the end, so it loads the key.git fetch --forceaccepts a re-cutv1tag.edge-node (#14)
mqtt_managerre-readscredentials.json. If that doesn't help, it fetches the key over HTTPS (key_pickup.py, using/configs/pickup_secret), persists it and rebuilds the paho client in place. No restart needed. Recovery is single-flight with a 30s to 15min backoff.OTA (#15)
node_updatehandler now writesconfigs/update-requestedinstead ofos._exit(0).install.shinstallsdrb-update.{service,timer,path}viascripts/install-updater.sh./nodes/{id}/update-checkover HTTPS, so offline or locked-out nodes still update.scripts/drb-update.shinstalls only the repo URL, ref and registry in root-owned/etc/drb/updater.conf..envIMAGE_REGISTRYdoesn't match the config.main(), so a checkout that replaces the file mid-run is safe.Tests: edge-node 227 pass (194 before this branch). New files:
test_credential_recovery.py, andtest_host_updater.py, which runs the real updater with stub git/docker/curl. flake8 is clean.Not verified: the systemd units and install.sh have not run on a real Pi.
Release step after merge: re-cut
v1at the merge commit (git tag -f v1 <sha> && git push -f origin v1).install.shis served fromraw/tag/v1, and both installs and the updater trackv1. No image rebuild is needed: the app code is bind-mounted and httpx is already in the image.Security review (parent session, by hand — /security-review can't run from a non-repo root). Verdict: no high-severity findings beyond node-26#17 (unsigned refs/images).
Checked and OK: C2 can only say "update now" (timestamp regex-validated, never used as ref/URL/command); repo/ref/registry come only from root-owned /etc/drb/updater.conf; git fetch https-only, curl
--proto =https; creds via 0600 header file, regex-validated before use; flock against concurrent runs; whole script in main() so self-checkout can't alter the running code. Container→host escalation via the root updater: edge-node mounts only ./configs, ./recordings, ./drb-edge-node/app — none of scripts/, .git/, .env, so a compromised edge-node can at most drop the sentinel (harmless). op25 is privileged + /dev (already host-root-equivalent; pre-existing, not this PR). Server: update-check returns 401 for unknown node (no id oracle), constant-time compares, payload bounded; admin = platform admin by design, so no cross-tenant gap.Low, non-blocking:
drb-update.shdeletes the MQTT sentinel before updating; if the update fails, an MQTT-only trigger is not retried (the "will retry on the next timer run" log is only true for C2 requests). Remove the sentinel after success, or write a retry marker in STATE_DIR.key_pickup.fetch_api_key()sends the pickup secret to whatever scheme C2_URL has; install.sh/updater enforce https but the app doesn't. Refuse non-https unless an explicit dev flag is set.