Repository navigation
CI: key guard, release workflow, SDCC warnings, Dependabot, templates - #1
Merged
Merged
Conversation
release/make_release.py packs the tracked files needed to set the system up into dist/open-verisure-<version>.zip: the gateway sources, both CC1110 firmwares with their build and flash scripts, the shared CC1110 code, the key and flash tools, the Blackfin program and JTAG scripts, and the user documentation. Research notes, logs, TODO and the agent files stay out; Markdown links to them point at the same commit on GitHub. Only tracked files go in (git archive), so the generated secrets.h and config.h never do. --check unpacks the zip and builds all three firmwares from it. Checked with --ref shared-cc1110: 74 files, no dead links, door sensor, camera and gateway build from the package. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The packaged MD_CAM README tells users to run test_resend.py and dump_cc1110.py, which were left out. The links to left-out files point at the packed commit on GitHub, which is a 404 until that commit is pushed: the script now says so. Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # TODO.md
- Key guard (.github/scripts/check_secrets.py, job "secrets"): fails if a tracked file is secrets.h or config.h, or holds a 32-hex-digit value or a 16-byte array near "KEY" that is not one of the listed public example/test values. GitHub's secret scanning does not know this key format, which is how the master key once went public. Findings name the file and line, never the value. - SDCC warnings: the CC1110 job compiles both firmwares once more and shows every SDCC warning as an annotation (three known ones today), since the build scripts keep SDCC quiet. - Release workflow: a pushed tag v* runs the key guard and release/make_release.py --check, then attaches the zip to a GitHub release (contents: write only in that job). - Dependabot: weekly grouped updates for the GitHub Actions and the Python packages (PlatformIO is not supported and stays pinned). - Pull request template with the AGENTS.md quality gates, a bug report template that warns against posting keys, security reports routed to SECURITY.md. Tested: the key guard passes on the tree and fails on a planted key, a key array and a tracked config.h; the warnings step run in a clean WSL clone gives the three annotations. Co-Authored-By: Claude Opus 5.5 <[email protected]>
BonBear
added a commit
that referenced
this pull request
Nov 30, 2026
The CC1101 CRC-16 has no reflection or final XOR, so a 24-byte packet followed by its CRC and a 32-byte tail whose zero-init CRC matches (e.g. all zeros) also passes the 56-byte check; such a frame was routed as a picture chunk and the sensor packet was lost. rxFrameRoute() now returns RX_ROUTE_SMALL_OR_BIG on module #1 when both pass; handleRadioFrame() tries cryptoProcessPacket() first (48-bit AES check, no replay state changed on failure) and falls back to the chunk only if the packet did not authenticate, so a replayed packet stays rejected. Host tests for the zero tail, the replay and a real chunk whose 24-byte CRC also passes; 299 gateway host tests pass. Reviewed (opus): approved. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 30, 2026
BonBear
added a commit
that referenced
this pull request
Dec 1, 2026
## Summary Reorganizes the gateway web portal (868Receiver/web/index.html) from a single vertical stack into a clean four-tab layout (#overview, #devices, #radio, #settings) with zero external dependencies and no C++/API changes required. ### Changes - **Header & alerts:** Added compact status badges for **Alarm (Armed/Disarmed)**, **MQTT**, and **Wi-Fi/AP**, with the warning banner pinned above the tab bar and a shortcut button to **Settings**. - **Overview tab:** 4 KPI summary cards (Active Sensors, Radio #1, Picture Radio #2, Band 50 Duty with progress bar) and a cleaner sensor table with device type pills (Door, Cam, Siren, Smoke), type filter chips, and Control jump buttons for controllable devices. - **Devices tab:** Groups Camera (with multi-camera selector and lazy image refresh only while the tab is active), Siren Control, and Smoke Detector Control, plus a count badge and empty state. - **Radio & Health tab:** Detailed Radio #1 / Radio #2 diagnostics ( adio_diag/ adio_diag2), Picture Token & rolling 1 h Band 50/54 duty cycle (with per-camera table), and Gateway Health & Security (diag uptime, reset reason, heap, auth/replay counters). - **Settings tab:** Grouped configuration sections (Wi-Fi, MQTT, Security), Firmware Update (OTA) with upload progress bar, and separated System Maintenance (Reboot, Factory Reset NVS). Auto-selects Settings during first-time AP setup. - **Docs:** Updated 868Receiver/README.md to describe the four-tab portal. ### Verification - pytest tests/test_portal_html.py: 3 passed (ASCII-only, exact INDEX_HTML PROGMEM generation) - pio run -d 868Receiver: 0 warnings (RAM 32.1%, Flash 89.1%) - Live-tested on bench gateway (COM9, 192.168.0.142) with GW-SD3 smoke detector (3EA8W6D6) - check_secrets.py, gitleaks, and code_reviewer: clean / Approved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
GitHub workflow improvements after the setup review:
secretsjob): fails on a trackedsecrets.h/config.h, or a 32-hex value / 16-byte key array that is not a listed public example or test value. GitHub's secret scanning does not know this AES key format.v*→release/make_release.py --check→ zip on a GitHub release. Brings inrelease/make_release.pyfrom therelease-packagebranch.Checks (AGENTS.md quality gates)
secrets.horconfig.hin the diffTested locally: key guard passes on the tree and fails on a planted key, a key array and a tracked
config.h; the warnings step in a clean WSL clone gives the three known warnings. The release workflow runs only on a tag and is not exercised by this PR.🤖 Generated with Claude Code