Skip to content

feat: v3.14.15-beta.8 - Add modem with custom config, derived credential scrubbing, SB8200 AC01 headers - #233

Merged
kwschulz merged 11 commits into
mainfrom
feature/v3.14.15-beta.8
Nov 15, 2026
Merged

kwschulz merged 11 commits into
mainfrom
feature/v3.14.15-beta.8

Conversation

@kwschulz

Copy link
Copy Markdown
Collaborator

The eighth beta of the v3.14.15 line: a second way to add a modem, where you adjust its modem.yaml and test it yourself, plus wider scrubbing of login secrets and the SB8200 AC01 header change.

What is in it

  • Add modem with custom config. Adding the integration now offers two choices. The second runs the normal setup, then loops on the modem's modem.yaml: each submit tests it against the modem, and the modem is saved only when a test passes. Each failed test writes one scrubbed report to the Home Assistant log. A saved modem's diagnostics show the change from the catalog text. Guide: docs/CUSTOM_CONFIG.md. Related to [Bug]: SB8200v3 AC01: Form Login CBN disconnects during setup on v3.14.1 #231.
  • A custom config modem switches back to the catalog file, with a notification, once the catalog matches it. If the catalog file changes in another way, a repair offers to test it and switch.
  • Values a login computes from the password (base64, PBKDF2 keys, HMACs, encrypted blobs) show as [DERIVED, len=N] wherever the password already showed as [REDACTED].
  • Every login strategy logs where it sends the login, so a report shows a wrong login path.
  • The ARRIS SB8200 AC01 entry sends the Origin, Referer and X-Requested-With headers its browser login sends. Related to [Bug]: SB8200v3 AC01: Form Login CBN disconnects during setup on v3.14.1 #231.
  • The debug log records only the length of a Compal session ID, and the Cable Modem card no longer logs at info level while you edit it.

Behaviour changes to know about

  • The first setup screen is now a menu: Add modem, or Add modem with custom config. The normal path is unchanged after that.
  • Failure logs and diagnostics no longer carry the encoded or hashed password values.

Verification

  • make validate-ci exited 0 on 58489987, run by Claude and again by release.py. The only commit after it is the version bump.
  • CI on 58489987: five workflows green.
  • I ran Add modem with custom config on my MB7621: a deliberately wrong login path failed with a report naming the path, and the corrected config saved the modem and polled normally.
  • Not verified on hardware: the SB8200 AC01 headers, the repair flow, and the derived value scrubbing.

🤖 Generated with Claude Code

kwschulz and others added 11 commits November 15, 2026 06:44
The debug line after a successful form_cbn login printed the SID.
Log <set, len=N> instead, and state the rule in LOGGING_SPEC
§ Secret values.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The card refetches its layout on every editor change, so the INFO
line flooded the log while editing. Rename it for the Generate
Dashboard Card wording.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| Package | Old | New | Action | Reason |
|---------|-----|-----|--------|--------|
| black | 26.1.0 | 26.10.1 | bumped | dev tooling |
| ruff | 0.15.12 | 0.17.5 | bumped | dev tooling |
| mypy | 2.1.0 | (2.4.1) | held | 2.4.1 flags no-any-return in catalog_tools json_login.py |
| har-capture | ~=0.16.1 | ~=0.19.0 | bumped | catalog scripts |
| commitlint hook | v9.25.0 | v9.27.0 | bumped | pre-commit |
| pre-commit-hooks | v5.0.0 | v6.0.0 | bumped | pre-commit |
| shfmt hook | v3.13.1-1 | v3.14.1-1 | bumped | pre-commit |
| prettier mirror | v3.1.0 | (v4.0.0-alpha.8) | held | archived repo, alpha only |
| requests, pyyaml, pydantic, cryptography | floors | - | held | HA-constrained |

The ha-safe-deps-bump skill now covers dev container feature pins,
replacing a Dependabot devcontainers entry. Both features are on
their latest major.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mypy 2.4's typeshed types reversed() on a list whose items contain
Any as Any, which failed no-any-return in json_login._login_page.
Iterate a reversed slice instead; it keeps the list's item type.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
check_owned_deps compared the local venv to PyPI, so it listed floors
that needed nothing and missed pins the venv had moved past. It now
reads declared Python specs, pre-commit revs, Actions refs and dev
container features, drops latest releases HA cannot install, and
checks our == pins against OSV. Dependabot stays off.

The CVE check queries OSV directly instead of running pip-audit, the
2026-04 replacement for safety: pip-audit would need installing into
the HA venv with its own dependencies, and auditing requirement files
takes minutes per push.

Also remove dead local security tooling from the 2025-11 setup:
semgrep (its .semgrep.yml is gone), flake8 and plugins (.flake8
included; ruff replaced them), a mypy duplicate, pip-audit, and
types-requests==2.33, which needs urllib3>=2 and would break HA
2025.1's urllib3<2. Bandit stays (make lint-all). CodeQL is
unaffected: the security-extended CI job and the local CLI with the
custom queries in cable-modem-monitor-ql/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
checkout, setup-python, setup-node and codecov-action v6 -> v7. The v7
breaking changes do not touch our inputs: setup-python drops the
pip-install input (unused) and EOL Pythons (we run 3.12); setup-node
drops a dummy NODE_AUTH_TOKEN export (unused).

pre-commit/mirrors-prettier is archived and v3.1.0 is its last stable
tag; a comment says so, so the rev is not chased.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The path filters omitted .github/workflows/devcontainer.yml, so the
Actions v7 bump (ec5f1da) changed this workflow without running it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… on the SB8200 AC01

Every getter/setter POST in the three AC01 captures (#109, both #231)
carries these three headers; Core sent none. The AC01 runs lighttpd
over HTTPS with CSP/HSTS, unlike the CH7465MT's NET-DK, so the CBN
login has never run against this server. Referer is the login page's,
as on the login calls; whether the firmware checks the path is
unobserved.

Related to #231

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adding the integration offers "Add modem with custom config": the normal
setup, then a loop that tests the user's edited modem.yaml against the
modem and saves the entry only when a test passes. Each failed test logs
one scrubbed report holding every step; diagnostics carry the diff from
the catalog text. A custom entry returns to the catalog file when the
catalog catches up, or offers a tested switch through a repair.

Core scrubs each value a login strategy derives from the password
(base64, PBKDF2 key, HMAC, ciphertext) as [DERIVED, len=N] wherever the
password is scrubbed, and every strategy logs its login request target.

Specs: CONFIG_FLOW_SPEC § Custom Config Setup, HA_ADAPTER_SPEC,
ORCHESTRATION_SPEC, ARCHITECTURE_DECISIONS. Guide: docs/CUSTOM_CONFIG.md.

Related to #231

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kwschulz
kwschulz merged commit 273c0bd into main Nov 15, 2026
34 checks passed
@kwschulz
kwschulz deleted the feature/v3.14.15-beta.8 branch November 15, 2026 19:02
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