Skip to content

fix(privacy): keep mail files owner-only and purge Flatpak staging - #600

Closed
hanthor wants to merge 1 commit into
hyprlab:mainfrom
tuna-os:fix/private-files
Closed

hanthor wants to merge 1 commit into
hyprlab:mainfrom
tuna-os:fix/private-files

Conversation

@hanthor

@hanthor hanthor commented Nov 5, 2026

Copy link
Copy Markdown
Contributor
  • The remote-content cache and the On This Computer folders (including the copy ledger) are created 0700/0600, and existing files are tightened.
  • Both log exports and the settings export are written 0600.
  • The startup purge of opened-attachment staging cleaned temp_dir()/vireo-attachments, but under Flatpak attachments are staged in $XDG_RUNTIME_DIR/app/$FLATPAK_ID/vireo-attachments, which was never purged. It now purges the directory staging actually uses.

Tests: permission tests for each writer, and the staging directory under Flatpak.

The remote-content cache, the On This Computer tree, the exported log and the settings bundle were written with umask permissions, and the startup purge cleared /tmp while the Flatpak stages opened attachments in the runtime directory.
hyprlab added a commit that referenced this pull request Nov 6, 2026
The remote-content cache, the On This Computer tree, the exported logs and the settings export were written with umask permissions. The startup purge cleared /tmp while the Flatpak stages opened attachments in the runtime directory.

Taken from the PR, plus: the purge runs only in the primary, so a second launch leaves what the running instance opened, and a directory that refuses the mode warns and stays usable instead of failing.

Co-Authored-By: James Reilly <5840441+hanthor@users.noreply.github.com>
hyprlab added a commit that referenced this pull request Nov 8, 2026
Cache encryption (#601), the security batch (#595 to #600), Esc in Undo Send (#607), Focus Mode's own page, the palettes removed, flowed plain text (#606), the remote cache folder (#614), the calendar crash and Russian (#611), Aster Mail drafts (#604) and theme colors (#593).
@hyprlab

hyprlab commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Agentic reply:

Your owner-only files and the Flatpak purge are in the 1.48.0-beta.3 release, landed by hand and credited to you. At landing, the purge runs only in the first instance, so a second launch no longer clears files the running app staged, and a failed chmod logs a warning instead of keeping the local account or the cache from opening. Please test it there and report anything that doesn't look right. It reaches the stable channel with the next stable release.

The beta build is in the repo now. If you already have the beta installed, flatpak update picks it up. If not, download and install it first:

flatpak install --user --from https://hylki.hyprlab.co/flatpak/co.hyprlab.Hylki.Beta.flatpakref

RPM, Debian and AppImage betas: Beta channel.

@hyprlab hyprlab closed this Nov 8, 2026
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.

2 participants