Skip to content

Releases

Nest Secure Resurrection v1.1.1

Choose a tag to compare

@osahum osahum released this 30 Nov 14:03

Fixes & Hardening

Critical Fixes

  • iOS permissions & version restored in .ipa: Moved all Info.plist usage descriptions (NSCameraUsageDescription, NSBluetoothAlwaysUsageDescription, NSLocalNetworkUsageDescription, NFCReaderUsageDescription), NSAllowsLocalNetworking, UILaunchScreen, and $(MARKETING_VERSION) / $(CURRENT_PROJECT_VERSION) into ios/project.yml info.properties so XcodeGen no longer strips them at build time. Added an automated CI check in .github/workflows/ios-build.yml that verifies the built .app/Info.plist before packaging.
  • Uniform Docker Compose port layout (11095 Gateway, 11096 Directory, 11097 Pairing): Standard and Apple HomeKit modes now share the exact same port assignments, so enabling or disabling docker-compose.homekit.yml later never swaps ports or cuts off an already-paired Nest Guard. Updated guard_enroll.py and nsr_setup.py to match.

Mobile & Web BLE Wi-Fi Hardening

  • Android (v1.1.1, build 5):
    • Moved BLE Wi-Fi setup state & coroutine job into GuardWifiSetupViewModel so screen rotation no longer cancels setup or clears detected Node/Fabric IDs.
    • Caught TimeoutCancellationException explicitly before CancellationException so Bluetooth timeouts show a clear message instead of silently returning to the form.
    • Added a Cancel setup button and kept the screen awake during the 45-second Wi-Fi connectivity test.
  • iOS (v1.1.1, build 5):
    • Replaced withThrowingTaskGroup timeout wrapper with a cancellation-safe @MainActor deadline timer + withTaskCancellationHandler so Bluetooth timeouts and Cancel Setup interrupt immediately instead of hanging.
    • Offloaded PASE MODP-1024 computation off @MainActor (Task.detached) and kept the screen awake (isIdleTimerDisabled) during provisioning.
  • All three BLE clients (Android, iOS, Browser Web Bluetooth):
    • Scanned unfiltered (matching guard_ble_provision.py) and matched 0xFEAF service data in the callback so Guards advertising 0xFEAF solely in Service Data are discovered reliably.
    • Mapped Weave StatusReport responses (including PASE rejections and Wi-Fi failures) to plain-English hints instead of raw hex codes.
    • Added best-effort RemoveNetwork cleanup when TestConnectivity fails so retrying after a wrong Wi-Fi password does not add duplicate networks.

Installer Hardening

  • install.sh now pins NSR_REF to v1.1.1 (overrideable), skips re-prompting for Apple HomeKit on re-runs once recorded in .env, and checks for Docker Compose >= 2.24 before enabling docker-compose.homekit.yml.

Pre-Built Downloads

  • Server Docker Image (amd64 + arm64): ghcr.io/osahum/nest-secure-resurrection:v1.1.1 / :latest
  • Android APK: NestSecureResurrection-v1.1.1.apk
  • iOS IPA: NestSecureResurrection-v1.1.1.ipa (install free via SideStore / Sideloadly / AltStore — see docs/IOS_AND_HOMEKIT.md)
  • Server Source Bundle: nest-secure-resurrection-server-v1.1.1.tar.gz

v1.1.0 — 1-Command Easy Setup, Guided Wizard, Zero-Terminal BLE Wi-Fi & Docker HomeKit

Choose a tag to compare

@osahum osahum released this 30 Nov 11:59

What's New in v1.1.0 — 1-Command Easy Setup, Guided Browser Wizard, Zero-Terminal Bluetooth Wi-Fi & Docker HomeKit

Bringing retired Nest Guard, Nest Detect, and Nest Tag hardware back to life is now drastically easier for non-experts — no extra LAN IP addresses, no manual Node/Fabric ID lookups, and no terminal pairing commands required.

1-Command Easy Setup & Multi-Arch Docker Image

curl -fsSL https://raw.githubusercontent.com/osahum/nest-secure-resurrection/main/install.sh | sudo bash
  • Pre-built multi-arch Docker image (ghcr.io/osahum/nest-secure-resurrection:latest & :v1.1.0): Supports both linux/amd64 and linux/arm64 (Raspberry Pi 3/4/5) with automatic local build fallback.
  • Single LAN IP: Directory, Gateway, and Pairing run cleanly on ports 11095–11097 of one server address — no extra static LAN IPs needed.
  • Linux Firewall Auto-Helper: install.sh detects active ufw or firewalld and offers a [Y/n] prompt to open the required LAN ports (11095–11097 TCP/UDP, 8420 TCP, plus 51826/tcp + 5353/udp if Apple HomeKit is enabled).
  • Scannable Terminal QR: At the end of install.sh, a scannable QR code for the Setup Portal is printed right in the terminal so headless / Raspberry Pi users can scan with their phone camera and finish setup from their phone browser.

Guided 4-Step Browser Setup Wizard & Live Home Dashboard

  • Step 1 — Find & Pair Nest Guard: Auto-scans your LAN, shows inline SVG hardware guides (wake Guard via Info (i) button, bottom Entry Key location), verifies your 6-character Entry Key, reads Node & Fabric IDs automatically, and tracks progress on a live 5-step health chain.
  • Step 2 — Auto-Timezone & Master Passcode: Auto-detects your browser's IANA timezone with 1-click Save and creates your 4–8 digit physical keypad Master Passcode.
  • Step 3 — Add Nest Detect Sensors: Pair Door, Window, and Wall sensors right from the browser.
  • Step 4 — Connect Phone & Apple Home: Editable-URL 1-Scan App Pairing QR for Android & iOS, direct APK/IPA download links, and Apple HomeKit QR + 8-digit setup code.
  • Live Home Dashboard & Diagnostics Drawer: Once paired, opens directly into a live Home Overview (Guard status, AC/battery, paired Nest Detects) with a slide-over Troubleshooting & Diagnostics Drawer (GET /api/v1/setup/logs) displaying live service probes and aggressively redacted diagnostic logs — no SSH or docker compose logs required.

Zero-Terminal Bluetooth Wi-Fi Setup (Factory-Reset Nest Guard)

Put a freshly factory-reset (pulsing-blue) Nest Guard onto your home Wi-Fi with zero terminal commands using any of three built-in paths:

  1. Built-In Browser Web Bluetooth (Chrome / Edge): Click "My Guard is pulsing blue (not on Wi-Fi yet)" right inside Step 1 of the Setup Wizard.
  2. Native Android App (NestSecureResurrection-v1.1.0.apk): Tap "Put factory-reset Guard on Wi-Fi (Bluetooth)" on the welcome screen or in Settings.
  3. Native iOS App (NestSecureResurrection-v1.1.0.ipa): Tap "Put Guard on Wi-Fi (Bluetooth)" on the welcome screen or in Settings.
    (Cross-platform guard_ble_provision.py CLI and optional server-side BLE fallback endpoints remain supported.)

Apple HomeKit Bridge in Docker Compose (docker-compose.homekit.yml)

  • HAP-python[QRCode] is now pre-installed in the server Docker image.
  • Enable Apple HomeKit directly during install.sh (answer y) or via COMPOSE_FILE=docker-compose.yml:docker-compose.homekit.yml + NSR_HOMEKIT_ENABLED=1 in .env for native Apple Home, Siri, Apple Watch, and HomeKit Automations over local LAN — zero iOS sideloading required!
  • Classic server/setup.sh (3 static LAN IPs + systemd) and Direct Cloud VPS deployments remain 100% supported.

Verification

  • Server Python unit tests: 55/55 passing (unittest discover -s server/tests).
  • Multi-arch Docker CI (amd64 + arm64): passing & published to GHCR.
  • iOS CI (macos-15 Xcode): NestGuardCore unit tests (including WoBLE/PASE crypto vectors) + Release .ipa build passing.
  • Android (./gradlew testDebugUnitTest assembleDebug): 16/16 unit tests (including GuardBleProvisionerTest) + APK build passing.

Downloads

  • Docker Image (Recommended): ghcr.io/osahum/nest-secure-resurrection:v1.1.0 (and :latest)
  • NestSecureResurrection-v1.1.0.apk — Native Android app (Android 8.0 / API 26+)
  • NestSecureResurrection-v1.1.0.ipa — Native iOS app (install free via SideStore, Sideloadly, or AltStore — see docs/IOS_AND_HOMEKIT.md)
  • nest-secure-resurrection-server-v1.1.0.tar.gz — Linux server stack, install.sh, Docker Compose files & documentation

v1.0.2 — Native iOS App, Local Apple HomeKit & 1-Scan QR Setup

Choose a tag to compare

@osahum osahum released this 30 Nov 08:13

What's New in v1.0.2 — Native iOS App, Local Apple HomeKit Bridge & 1-Scan QR Setup

Native iOS Companion App (NestSecureResurrection-v1.0.2.ipa)

  • Full native SwiftUI iOS 17+ app (ios/ + NestGuardCore Swift package) with feature parity alongside Android:
    • Live Nest Guard arm/disarm dial (Off, Home & Guarding, Away & Guarding), entry/exit countdowns, PIN pad, Hold-to-Panic alarm & PIN-protected Panic stop.
    • Live SSE event stream, push/alert screens, Activity history timeline with device/category filters, multi-user Passcodes & Schedules, Alarm Options, Health Diagnostics, and Nest Detect pairing & per-sensor settings.
    • Encrypted API token storage in the iOS Keychain + cleartext HTTP guardrail (LAN/VPN/loopback only; HTTPS required for public hostnames).
    • Compact iPhone screen polish (375×667 pt / iPhone SE): responsive dial & keypad sizing, scrollable filter chips, clean stacked controls, and zero clipping on smaller iPhones.
    • Pre-built unsigned .ipa attached below — installable for free using SideStore, Sideloadly, or AltStore (no paid Apple Developer account required). See docs/IOS_AND_HOMEKIT.md.
    • Heads-up on Apple's sideloading hoops: because the app is not on the App Store, iOS requires signing with a free Apple ID, tapping Trust under Settings → General → VPN & Device Management, enabling Developer Mode under Settings → Privacy & Security (with a quick reboot), and refreshing every 7 days on free Apple IDs (automatic with SideStore or Sideloadly Wi-Fi refresh). Prefer zero sideloading? Use the local Apple HomeKit Bridge below instead!

Local Apple HomeKit ("Apple Home" & Siri) Bridge

  • 100% local, opt-in HAP bridge (server/owner-service/wyse_homekit.py, enabled via NSR_HOMEKIT_ENABLED=1) exposing:
    • Nest Guard as SecuritySystem + MotionSensor + BatteryService (using SecurityArmTrait 0x235a0303 v5 dispatch).
    • Nest Detects as ContactSensor (doors/windows) + MotionSensor + BatteryService (including CR123A low/degraded battery warnings).
  • Built-in Apple HomeKit pairing QR & 8-digit setup code viewer right inside the iOS app and the Web Setup Portal, plus POST /api/v1/homekit/reset-pairing.
  • Remote access & Critical Alarm alerts work automatically away from home if you have an Apple TV or HomePod / HomePod mini acting as an Apple Home Hub (LAN-only otherwise; use the native iOS app over Tailscale/Cloudflare/HTTPS when away without an Apple Home Hub).

1-Scan QR Pairing & Built-In Web Setup Portal (/setup)

  • No more typing or copying 64-character hex tokens:
    • Terminal Pairing QR (server/owner-service/nsr_pair_qr.py): pure-Python zero-dependency ISO QR encoder printed automatically at the end of sudo ./server/setup.sh (and runnable anytime with optional custom --url / --name).
    • Built-In Local Web Setup Portal (GET / and GET /setup): zero-CDN browser dashboard showing live Guard & Detect status, an editable-URL App Pairing QR SVG (#token= passed client-side and immediately scrubbed via history.replaceState — never leaked in unauthenticated HTML), browser-based Nest Detect pairing, and Apple HomeKit pairing QR/PIN.
    • Native QR Scanner in both mobile apps: AVFoundation camera scanner on iOS and offline open-source ZXing scanner on Android (zero Play Services required), available right on the first-launch welcome screen and in Settings.

Reliability & Bug Fixes

  • Fixed false-offline Nest Detect status: wyse_guard_api.py now computes Detect liveness using max(last_notify_utc, last_keepalive_utc, subscribed_at_utc) so quiet sensors no longer flap offline between WDM keepalives.
  • Updated documentation: refreshed README.md, docs/SETUP.md, and added docs/IOS_AND_HOMEKIT.md with step-by-step install guides for Android, iOS, Apple HomeKit, and 1-scan QR setup.

Verification

  • Server unit tests: 25/25 passing (unittest discover -s server/tests).
  • iOS CI (macos-15 Xcode): NestGuardCore unit tests + Release .ipa build passing.
  • Android (./gradlew testDebugUnitTest assembleDebug): all unit tests (including PairingQrParser) + APK build passing.

Downloads

  • NestSecureResurrection-v1.0.2.ipa — Native iOS app (install via SideStore, Sideloadly, or AltStore)
  • NestSecureResurrection-v1.0.2.apk — Native Android app (Android 8.0 / API 26+)
  • nest-secure-resurrection-server-v1.0.2.tar.gz — Linux server stack & documentation

v1.0.1 — Security, Reliability & Setup Hardening

Choose a tag to compare

@osahum osahum released this 29 Nov 21:25

Bug Fixes & Security Hardening (since v1.0.0)

Security Fixes

  • Closed unauthenticated OAuth PIN oracle (/ghome/oauth/authorize):
    • The optional Google Home Cloud-to-Cloud bridge is now disabled by default (NSR_GHOME_ENABLED=0), returning 404 on /ghome/* unless explicitly opted in.
    • Replaced the hardcoded nest-guard-wyse OAuth client_id with a random per-install nsr-<24-hex> identifier for new configs.
    • Added per-IP (5 attempts / 15 min) and global (15 attempts / 15 min) sliding-window rate limiting + 429 Too Many Requests lockout with Retry-After and constant failure backoff on /ghome/oauth/authorize.
  • Enforced keypad PIN on Panic END:
    • POST /api/v1/command/panic with action: "END" now rejects requests missing a valid active keypad passcode (403 PIN_REQUIRED) instead of skipping validation.
    • Updated the Android app (MainActivity + GuardViewModel) so tapping Stop Panic prompts for the keypad passcode via PinPadModalSheet.
  • Android token encryption & cleartext guardrail:
    • Encrypted the saved API Bearer token at rest using Android Keystore AES-256-GCM (SettingsPrefs.kt), transparently migrating legacy plaintext entries.
    • Restricted cleartext http:// requests in GuardApiClient.kt to private LAN / loopback / Tailscale / .local hosts; public internet hostnames now require https://.
  • API server & systemd hardening:
    • Added 30 s HTTP request socket timeouts (GuardApiHandler.timeout = 30.0, cleared on long-lived SSE /api/v1/events).
    • Added systemd isolation (ProtectSystem=strict, ProtectHome=yes, PrivateTmp=yes, ProtectKernelTunables=yes, ProtectKernelModules=yes, ProtectControlGroups=yes, RestrictRealtime=yes, LockPersonality=yes, UMask=0077).

Setup, Enrollment & Compatibility Fixes (including post-v1.0.0 fixes)

  • Guard Node ID forwarding: Fixed deploy_owner_service_v2.py to forward NSR_GUARD_NODE_ID as WYSE_ALLOWED_GUARD_NODE_ID to all three OpenWeave containers (fixes AccessDenied on Directory).
  • Cross-platform BLE Wi-Fi provisioning: Added server/enrollment/guard_ble_provision.py (Step 0) so factory-reset Guards can join Wi-Fi without an OpenWeave BlueZ build, printing NSR_GUARD_NODE_ID and NSR_FABRIC_ID before setup.sh runs.
  • Containerized PKI generation & Ubuntu 22.04 base image: Switched server/Dockerfile from Fedora 41 to ubuntu:22.04 (glibc 2.35) and updated setup.sh to execute create_owner_pki_v2.py inside the Docker image rather than relying on host glibc/libstdc++.
  • Removed hardcoded tcpdump -i enp1s0: guard_enroll.py no longer crashes when tcpdump is missing; packet capture is opt-in (--capture-pcap) on -i any.
  • Direct Cloud VPS mode: Added single-IP multi-port (11095/11096/11097) deployment support and BLE --register-service enrollment.
  • Factory reset documentation: Corrected Nest Guard factory reset button in docs/SETUP.md (hold 2, not 5).

Reliability & Cleanup

  • Settings concurrency lock: Added ctx._settings_lock (threading.RLock) around all read-modify-write operations on guard-settings.json (HTTP endpoints, Google Home bridge, and background schedule sync) to prevent lost concurrent edits.
  • Dynamic DST timezone support: Replaced fixed UTC+3 (180 min) offset defaults with dynamic IANA zoneinfo.ZoneInfo offset resolution (resolve_utc_offset_minutes), defaulting to UTC (0) when unset and automatically syncing DST shifts.
  • Cleaned up personal leftovers: Removed legacy nest-directory/nest-router/nest-pairing stop hooks and "on the Wyse" strings from deploy_owner_service_v2.py and wyse_guard_api.py.

Verification

  • Server unit tests: 20/20 passing (including new tests for Google Home opt-in default, random client_id, OAuth 429 lockout, Panic END PIN enforcement, concurrent settings writes, and DST transitions).
  • Android debug unit tests + APK build: passing (including new cleartext host-restriction unit tests).

v1.0.0 — Initial Public Release

Choose a tag to compare

@osahum osahum released this 29 Nov 14:57

Nest Secure Resurrection v1.0.0

DISCLAIMER: NO WARRANTY · NO SUPPORT · USE AT YOUR OWN RISK.
Read DISCLAIMER.md before installing or using this software.

Downloads

  • NestSecureResurrection-v1.0.0.apk — Clean Android app build (zero hardcoded server URLs or tokens; configure your own home server URL and Bearer token under Settings → Home Hub connection).
  • nest-secure-resurrection-server-v1.0.0.tar.gz — Server installer (server/setup.sh), reproducible OpenWeave Dockerfile, patches, owner service, REST/SSE API, and setup documentation (or just git clone the repository).

Highlights

  • 100% stock Nest Guard & Nest Detect firmware — no jailbreak, rooting, or firmware modification.
  • Local OpenWeave v2 stack (Directory, Pairing, Tunnel/Gateway, WDM) + Bearer-authenticated REST/SSE API.
  • Full Nest Guard arm/disarm, countdowns, multi-user passcodes & schedules, NFC Nest Tag enrollment, Nest Detect door/window/wall sensors, and CR123A battery degradation (high-ESR) detection.
  • Complete setup and remote-access guides (Tailscale, Cloudflare Tunnel, DDNS + Reverse Proxy, or Cloud VPS WireGuard relay) in docs/.