Skip to content

chore: release 2.1.1 with diagnostics privacy fixes and local brand assets - #35

Merged
ccpk1 merged 3 commits into
mainfrom
ccpk1/2.1.1
Nov 9, 2026
Merged

ccpk1 merged 3 commits into
mainfrom
ccpk1/2.1.1

Conversation

@ccpk1

@ccpk1 ccpk1 commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Summary

Prepares the 2.1.1 release, which closes the remaining gaps for the HACS default repository submission.

Diagnostics privacy fix

Key-based redaction only removed keys that appeared verbatim, so identifiers the integration repeats elsewhere still shipped in clear text:

Leaked Where
full MAC config_entry.unique_id
last six of MAC config_entry.title, device.name
full MAC coordinator.name -> poolsync_custom(<MAC>)
LAN IP + MAC coordinator.last_exception, last_failure_detail
cell serial number (plain text) mapped_sensor_values["chlorinator_N_cell_serial_number"] -- the derived sections were never redacted
timezone (coarse location) poolSync.config.timeZone

Fixes:

  • redact.py gains collect_sensitive_values() and redact_values() for value-based scrubbing; key-based redaction structurally cannot reach a MAC embedded in an exception string.
  • diagnostics.py now runs every section through a final _redact() pass (previously only config_entry and runtime_data), and collects sensitive values from the raw entry/coordinator payload rather than the already partly redacted result.

Deliberately not redacted: equipment/group/valve names, schedules, RSSI, reset counters, uptime, firmware and model numbers. These are the signals the diagnostics exist to capture and carry no personal identifiers.

Brand assets moved in-repo

Images moved to custom_components/poolsync_custom/brand/, where Home Assistant's brands component and the HACS brands check look for them. Content is byte-identical to what is served from brands.home-assistant.io. ignore: brands is removed from the HACS validation workflow so the check now actually runs.

Categories

Adds categories: ["water.pools_spas"] to the manifest -- matches core's screenlogic and is present in the list HACS validates against (INTEGRATION_CATEGORIES).

Version

2.1.1 in manifest.json, pyproject.toml, and the README release example.

Testing

  • ./utils/run_tests.sh -- 457 passed
  • ./utils/quick_lint.sh -- clean
  • New test asserts the full MAC, the last-six MAC fragment, the LAN IP, entry title/unique_id, coordinator name, exception text and the cell serial are all absent from the serialized payload.

Release

Merge, then tag and push so release.yml builds poolsync_custom.zip for HACS:

git tag 2.1.1
git push origin 2.1.1

ccpk1 added 3 commits November 9, 2026 02:57
Key-based redaction missed values that the integration repeats inside
free-form text and derived sections: the entry title and coordinator name
carry the last six MAC characters, exception messages and failure details
embed the IP address and MAC, and the mapped cell serial number was
exported in clear text.

Add value scrubbing to the shared redaction helpers and run every
diagnostics section through it, so known IPs, MACs, serials and passwords
are removed wherever they appear. Also redact the timezone, which reveals
rough location.
Ship the brand images inside the integration (custom_components/
poolsync_custom/brand), which is where Home Assistant and the HACS brand
check look for them, and drop the now-unneeded `ignore: brands` from the
HACS validation workflow so the listing check runs for real.

Add the pool/spa category to the manifest and bump the version.
@ccpk1 ccpk1 self-assigned this Nov 9, 2026
@ccpk1 ccpk1 added the documentation Improvements or additions to documentation label Nov 9, 2026
@ccpk1
ccpk1 merged commit 4183f05 into main Nov 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant