pagepiper/app
pyr0ball 1e066cf66c feat: encryption at rest infrastructure for cloud user data (closes #5)
Implements Option B (fscrypt) from the issue design: OS-level filesystem
encryption for per-user data directories on the cloud host.

- app/startup.py: warn_if_unencrypted() checks for fscrypt at startup in
  cloud mode and logs a SECURITY warning if the users/ directory is not
  encrypted — catches misconfigured deployments before any data is stored
- app/main.py: call warn_if_unencrypted() during lifespan in cloud mode
- scripts/setup_cloud_fscrypt.sh: operator script to encrypt a user's
  data directory with fscrypt (run as root on host before container start);
  supports --list and --status subcommands

Key management note: current implementation uses pam_passphrase protector.
For unattended server boot, integrate a raw_key protector from a secrets
manager (Vault, AWS Secrets Manager, etc.) — see script comments.

SQLCipher (Option A) deferred: sqlite-vec virtual table compatibility with
SQLCipher's encrypted VFS needs investigation before committing to that path.
2026-05-13 18:35:17 -07:00
..
api feat: per-user database isolation for cloud instances (closes #4) 2026-05-13 16:31:51 -07:00
services fix: quote-first prompt structure + escape phrase post-processing to kill hallucinations 2026-05-06 10:30:11 -07:00
__init__.py feat: add database schema and migration runner 2026-05-04 17:10:38 -07:00
cloud_session.py feat: per-user database isolation for cloud instances (closes #4) 2026-05-13 16:31:51 -07:00
config.py feat: per-user database isolation for cloud instances (closes #4) 2026-05-13 16:31:51 -07:00
deps.py feat: per-user database isolation for cloud instances (closes #4) 2026-05-13 16:31:51 -07:00
main.py feat: encryption at rest infrastructure for cloud user data (closes #5) 2026-05-13 18:35:17 -07:00
startup.py feat: encryption at rest infrastructure for cloud user data (closes #5) 2026-05-13 18:35:17 -07:00