carp-dk / carp-dk/carp_study_app

chore(privacy): decide at-rest posture for cached health-data JSON

Open
#637 0 comments 0 reactions 1 assignee Claimed by @Zeroupper View on GitHub
Dominant language
Dart
Stars
10
Forks
5
Avg merge
1d 3h
Merged PRs (30d)
14

Description

## Problem
(verified) Card view-models persist their data models as plaintext JSON in the cache dir every 3 minutes (`lib/view_models/view_model.dart:79-82`, `:119-131`). OS-level encryption (iOS Data Protection, Android FBE) applies, so this is defensible — but it should be a documented decision, especially combined with the iOS file-sharing flags. Cleanup on leave-study already works (`lib/blocs/app_bloc.dart:524`; `view_model.dart:93-99`).

## Proposed fix
Document accepted risk relying on platform encryption + fixed file-sharing flags, or encrypt the cache files if a study's DPIA requires it.

## Acceptance criteria
- [ ] Decision in ADR
- [ ] If "accept risk", the iOS file-sharing flags must be off (depends on the file-sharing sub-issue)

**Effort:** S (decision) · **Priority:** P3 · **Change risk:** None

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.