Skip to content

CI: key guard, release workflow, SDCC warnings, Dependabot, templates - #1

Merged
BonBear merged 4 commits into
mainfrom
github-workflows
Nov 19, 2026
Merged

BonBear merged 4 commits into
mainfrom
github-workflows

Conversation

@BonBear

@BonBear BonBear commented Nov 19, 2026

Copy link
Copy Markdown
Owner

What and why

GitHub workflow improvements after the setup review:

  • Key guard (secrets job): fails on a tracked secrets.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.
  • SDCC warnings shown as annotations (the build scripts keep SDCC quiet).
  • Release workflow: tag v* → release/make_release.py --check → zip on a GitHub release. Brings in release/make_release.py from the release-package branch.
  • Dependabot for GitHub Actions and the Python packages (weekly, grouped).
  • Templates: PR checklist (AGENTS.md quality gates), bug report without keys, security reports to SECURITY.md.

Checks (AGENTS.md quality gates)

  • CI is green (gateway and both CC1110 builds, key guard, key derivation)
  • No keys, Wi-Fi or MQTT credentials, secrets.h or config.h in the diff
  • Firmware change: none
  • RF protocol, crypto or replay change: none
  • Docs, TODO updated (release item)

Tested 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

BonBear and others added 4 commits November 19, 2026 06:31
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]>
- 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
BonBear merged commit 79a9733 into main Nov 19, 2026
8 checks passed
@BonBear
BonBear deleted the github-workflows branch November 19, 2026 07:28
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]>
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant