Repository navigation
Releases
Releases · osahum/nest-secure-resurrection
Nest Secure Resurrection v1.1.1
Fixes & Hardening
Critical Fixes
- iOS permissions & version restored in
.ipa: Moved allInfo.plistusage descriptions (NSCameraUsageDescription,NSBluetoothAlwaysUsageDescription,NSLocalNetworkUsageDescription,NFCReaderUsageDescription),NSAllowsLocalNetworking,UILaunchScreen, and$(MARKETING_VERSION)/$(CURRENT_PROJECT_VERSION)intoios/project.ymlinfo.propertiesso XcodeGen no longer strips them at build time. Added an automated CI check in.github/workflows/ios-build.ymlthat verifies the built.app/Info.plistbefore packaging. - Uniform Docker Compose port layout (
11095Gateway,11096Directory,11097Pairing): Standard and Apple HomeKit modes now share the exact same port assignments, so enabling or disablingdocker-compose.homekit.ymllater never swaps ports or cuts off an already-paired Nest Guard. Updatedguard_enroll.pyandnsr_setup.pyto match.
Mobile & Web BLE Wi-Fi Hardening
- Android (
v1.1.1, build 5):- Moved BLE Wi-Fi setup state & coroutine job into
GuardWifiSetupViewModelso screen rotation no longer cancels setup or clears detected Node/Fabric IDs. - Caught
TimeoutCancellationExceptionexplicitly beforeCancellationExceptionso 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.
- Moved BLE Wi-Fi setup state & coroutine job into
- iOS (
v1.1.1, build 5):- Replaced
withThrowingTaskGrouptimeout wrapper with a cancellation-safe@MainActordeadline timer +withTaskCancellationHandlerso 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.
- Replaced
- All three BLE clients (Android, iOS, Browser Web Bluetooth):
- Scanned unfiltered (matching
guard_ble_provision.py) and matched0xFEAFservice data in the callback so Guards advertising0xFEAFsolely in Service Data are discovered reliably. - Mapped Weave
StatusReportresponses (including PASE rejections and Wi-Fi failures) to plain-English hints instead of raw hex codes. - Added best-effort
RemoveNetworkcleanup whenTestConnectivityfails so retrying after a wrong Wi-Fi password does not add duplicate networks.
- Scanned unfiltered (matching
Installer Hardening
install.shnow pinsNSR_REFtov1.1.1(overrideable), skips re-prompting for Apple HomeKit on re-runs once recorded in.env, and checks for Docker Compose>= 2.24before enablingdocker-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 — seedocs/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
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 bothlinux/amd64andlinux/arm64(Raspberry Pi 3/4/5) with automatic local build fallback. - Single LAN IP: Directory, Gateway, and Pairing run cleanly on ports
11095–11097of one server address — no extra static LAN IPs needed. - Linux Firewall Auto-Helper:
install.shdetects activeufworfirewalldand offers a[Y/n]prompt to open the required LAN ports (11095–11097TCP/UDP,8420TCP, plus51826/tcp+5353/udpif 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 ordocker compose logsrequired.
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:
- 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.
- Native Android App (
NestSecureResurrection-v1.1.0.apk): Tap "Put factory-reset Guard on Wi-Fi (Bluetooth)" on the welcome screen or in Settings. - Native iOS App (
NestSecureResurrection-v1.1.0.ipa): Tap "Put Guard on Wi-Fi (Bluetooth)" on the welcome screen or in Settings.
(Cross-platformguard_ble_provision.pyCLI 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(answery) or viaCOMPOSE_FILE=docker-compose.yml:docker-compose.homekit.yml+NSR_HOMEKIT_ENABLED=1in.envfor 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-15Xcode):NestGuardCoreunit tests (including WoBLE/PASE crypto vectors) + Release.ipabuild passing. - Android (
./gradlew testDebugUnitTest assembleDebug): 16/16 unit tests (includingGuardBleProvisionerTest) + 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 — seedocs/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
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/+NestGuardCoreSwift 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
.ipaattached below — installable for free using SideStore, Sideloadly, or AltStore (no paid Apple Developer account required). Seedocs/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!
- Live Nest Guard arm/disarm dial (
Local Apple HomeKit ("Apple Home" & Siri) Bridge
- 100% local, opt-in HAP bridge (
server/owner-service/wyse_homekit.py, enabled viaNSR_HOMEKIT_ENABLED=1) exposing:- Nest Guard as
SecuritySystem+MotionSensor+BatteryService(usingSecurityArmTrait 0x235a0303v5 dispatch). - Nest Detects as
ContactSensor(doors/windows) +MotionSensor+BatteryService(including CR123A low/degraded battery warnings).
- Nest Guard as
- 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 ofsudo ./server/setup.sh(and runnable anytime with optional custom--url/--name). - Built-In Local Web Setup Portal (
GET /andGET /setup): zero-CDN browser dashboard showing live Guard & Detect status, an editable-URL App Pairing QR SVG (#token=passed client-side and immediately scrubbed viahistory.replaceState— never leaked in unauthenticated HTML), browser-based Nest Detect pairing, and Apple HomeKit pairing QR/PIN. - Native QR Scanner in both mobile apps:
AVFoundationcamera 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.
- Terminal Pairing QR (
Reliability & Bug Fixes
- Fixed false-offline Nest Detect status:
wyse_guard_api.pynow computes Detect liveness usingmax(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 addeddocs/IOS_AND_HOMEKIT.mdwith 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-15Xcode):NestGuardCoreunit tests + Release.ipabuild passing. - Android (
./gradlew testDebugUnitTest assembleDebug): all unit tests (includingPairingQrParser) + 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
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), returning404on/ghome/*unless explicitly opted in. - Replaced the hardcoded
nest-guard-wyseOAuthclient_idwith a random per-installnsr-<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 Requestslockout withRetry-Afterand constant failure backoff on/ghome/oauth/authorize.
- The optional Google Home Cloud-to-Cloud bridge is now disabled by default (
- Enforced keypad PIN on Panic
END:POST /api/v1/command/panicwithaction: "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 viaPinPadModalSheet.
- 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 inGuardApiClient.ktto private LAN / loopback / Tailscale /.localhosts; public internet hostnames now requirehttps://.
- Encrypted the saved API Bearer token at rest using Android Keystore AES-256-GCM (
- 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).
- Added 30 s HTTP request socket timeouts (
Setup, Enrollment & Compatibility Fixes (including post-v1.0.0 fixes)
- Guard Node ID forwarding: Fixed
deploy_owner_service_v2.pyto forwardNSR_GUARD_NODE_IDasWYSE_ALLOWED_GUARD_NODE_IDto all three OpenWeave containers (fixesAccessDeniedon 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, printingNSR_GUARD_NODE_IDandNSR_FABRIC_IDbeforesetup.shruns. - Containerized PKI generation & Ubuntu 22.04 base image: Switched
server/Dockerfilefrom Fedora 41 toubuntu:22.04(glibc 2.35) and updatedsetup.shto executecreate_owner_pki_v2.pyinside the Docker image rather than relying on host glibc/libstdc++. - Removed hardcoded
tcpdump -i enp1s0:guard_enroll.pyno longer crashes whentcpdumpis 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-serviceenrollment. - 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 onguard-settings.json(HTTP endpoints, Google Home bridge, and background schedule sync) to prevent lost concurrent edits. - Dynamic DST timezone support: Replaced fixed UTC+3 (
180min) offset defaults with dynamic IANAzoneinfo.ZoneInfooffset 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-pairingstop hooks and"on the Wyse"strings fromdeploy_owner_service_v2.pyandwyse_guard_api.py.
Verification
- Server unit tests: 20/20 passing (including new tests for Google Home opt-in default, random
client_id, OAuth429lockout, PanicENDPIN 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
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 OpenWeaveDockerfile, patches, owner service, REST/SSE API, and setup documentation (or justgit clonethe 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/.