Files
tandClaude Opus 5.5 e143730c53 History retention: preview and password before keeping less
Shortening the retention deleted history at once and for good, with no
second look. Besides mistakes, it was a way to remove traces: anyone with an
open admin session could wipe the history of what they did.

Now (owner's decision 2026-11-30):
- PUT /api/v1/settings/app?dry_run=1 saves nothing and returns what the new
  retention would remove (entries, backups, oldest entry left) and whether
  it is shorter.
- A shorter retention (fewer days or entries) needs a recently confirmed
  password (403 confirm_password, like deleting data, F-AUT-5). A longer one
  removes nothing new and needs none.
- System page: Save on a shorter setting shows the preview first ("Removed
  now: 237 entries and 17 backups; the oldest entry left is from …",
  can't be undone); "Remove now" applies it, and the UI asks for the
  password when needed. While the preview is open the fields are locked, so
  what was previewed is what gets applied. When nothing would be removed now
  the button says "Save shorter history".
- The daily trim stays automatic; it only removes what the confirmed
  setting already lets expire.

Trim got a dry-run mode (journal and backups are only counted);
Retention.Shorter compares two retentions.

Tests: dry run changes nothing (configstore), Shorter (changes), API:
preview saves and removes nothing, shorter without a recent password is
refused and changes nothing, longer needs no password, after confirming it
applies (internal/server); e2e on CT 151 desktop + phone. Checked in a real
browser on CT 151 after the 5-minute window: the password dialog appears
("Shortening the change history needs your password again"), and after
confirming the setting is saved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 19:53:22 +01:00

3.4 KiB
Raw Permalink Blame History

Personal data in Sharestead (GDPR)

Sharestead is a tool: whoever runs it decides what is stored on the NAS and is the controller under the GDPR. This page lists what personal data Sharestead itself keeps, where, and for how long, so you can document it and answer requests. Sharestead sends no data anywhere (no telemetry, no connection to the internet; system updates come from the system's own package sources).

What is stored where

Data Where Kept Deleted
Accounts: user names, full names, groups, password hashes the system's account files (/etc/passwd, /etc/group, /etc/shadow) and Samba's password database while the account exists when the user is deleted
User and group names, IP addresses or networks of NFS clients smb.conf, /etc/exports while used in a share when removed from the share
Change history: who changed what and when, with the full content of the changed config files /var/lib/sharestead/journal.jsonl 365 days, at most 1,000 entries (default) automatically, once a day
Backups of config files before each change /var/lib/sharestead/backups/ as long as the history (the newest 10 per file always stay) automatically, with the history
Limits per personal folder (user names) /var/lib/sharestead/limits.json while the user exists when the user is deleted
Usage per personal folder in memory and /run/sharestead/ until the next measurement or restart automatically
Sessions: user name, client IP (for slowing down wrong passwords) in memory only until logout, expiry or restart automatically
Action log lines (who did what) the system journal (journalctl -u sharestead) as the system journal is set up by the system journal's own limits
Diagnostic bundle: config, user/share/host names, IP addresses, recent log lines; passwords and keys removed only created when an admin downloads it not stored by Sharestead —
Files in the shares your storage your decision your decision

The web UI sets one cookie: the session (technically necessary, no consent needed).

Change how long the history is kept

System → Change history: days (7–3,650) and the maximum number of entries (50–100,000). A shorter setting first shows what would be removed and needs your password again; it then applies at once. Removed entries can't be brought back.

For automation: PUT /api/v1/settings/app with history_days and history_entries (see the API page in the UI; ?dry_run=1 shows what would be removed, a shorter setting needs a recently confirmed password), or the same two values in /var/lib/sharestead/settings.json; a value edited in the file applies at the next daily run or start.

✅ Check: Changes shows "Kept: the last … days, at most … entries".

When someone leaves

Step Where
Delete the user Users → user → Delete (their files are kept)
Delete or hand over their files Folders (their personal folder and files in shares)
Their name in the change history and backups removed automatically when the retention period ends; to remove it earlier, shorten the retention
Their name in the system journal removed by the system journal's own limits (journalctl --vacuum-time=…)

Subfolder permissions keep the deleted user's ID on disk; the share page lists it as an ID that no longer exists, and saving the rule again without them removes it.