Repository navigation
Harden pre-release privacy controls - #30
Merged
Merged
Conversation
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
328A
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.
Summary
Hardens the three privacy controls identified by the physical pre-external audit:
Library/Caches/openhealth_<sensor-id>_<timestamp>.csvregular files at startup, alongside already-known share cache directories. Near-matches and unrelated cache entries remain untouched.history-<sha256>.blobnames. Migration is crash-safe, verifies iOS backup exclusion, resumes interrupted states, rejects unsupported future schemas before touching history artifacts, and preserves conflicting copies while failing closed.flutter_blue_plusDart/native logging tononeas the first plugin call in release startup and propagates failure rather than continuing with the plugin's DEBUG-native default.This also records the 2026-08-14 GitHub private-reporting API result and physical build-17 backup-exclusion evidence. It intentionally leaves active-session lock-screen visual verification pending because no live real sensor session was available; no ASC or device state was changed by this branch.
Acceptance criteria
@shroominicand scoped acceptance criteria from the pre-external audit.Change risk and impact
Risk class: R2 — changes restricted health-data persistence, startup privacy behavior, cache cleanup, and native BLE logging.
cgm_ble_flutteraddsdisableFlutterBluePlusLogs()and advances to 1.1.0.flutter_blue_plusDart/native logs before BLE use; no permission change.crypto3.0.7 becomes a direct app dependency; it was already present at that exact version in the lockfile transitively. No new package, network behavior, permission, or code generation is introduced.Evidence
make check— passed after the final forward-schema recovery fix: formatting, analyzers, all package/app unit tests (including 193 app tests), app integration test, Android debug APK, web build, Android release-signing fail-closed guard, unsigned iOS release build, and all five native Runner tests.make buildbehavior is covered bymake checkfor Android, web, and unsigned iOS release builds.flutter test --no-pub test/health_state_store_io_test.dart test/sensor_archive_export_test.dart test/privacy_release_defaults_test.dart— 50 passed.flutter test --no-pub test/flutter_blue_plus_logging_test.dart— 3 passed.Compatibility, rollout, and recovery
Documentation and review
cryptopackage is only promoted to direct use.@shroominicis requested.