ra1054: a re-created account with the same username is a new person (#1054, v0.6.387) #1075

Merged
Cordy merged 77 commits from ra1054 into main 2026-11-02 17:26:06 +00:00
Owner

Closes #1054 on release.

  • Account starts: each name keeps a short history in first-signins.json. A new identity-provider subject, a new directory id (Keycloak/LDAP liveness, with the safety latch) or a local re-create starts a new account. Flap detection; Treat as a different person.
  • The earlier account's data stays with the earlier account. That covers its shares, links and federated shares out (frozen); the home (held under accounts.nameReuse=hold); Deleted files; devices, sessions and app passwords (refused); bells; received OCM shares; editor tokens; cached LDAP passwords; the change feed; and the export. All of these follow the start, with a 2-minute grace.
  • Departed users: earlier-account rows with Give (hand everything over), era transfer, Revoke all and Delete unread files.
  • Hardening:
    • Unreadable account records: last-good copy, fail closed, admin notice.
    • Start brake: the 3rd start move per source within 1 h holds the moves for an admin decision, Same people or Different people.
  • Integrated with #1055 (tags, favourites, recents), #1056 (editor and locks), #1057 (federated shares) and #1063 (feed views).
  • UI: Departed users, Accounts, the setting, shares, the Personal-folder card, and the bells, built from the two approved mockups and strings rounds.
  • Docs: CHANGELOG v0.6.387, chart, users-access, local-accounts, sharing, admin-policy, deployment, configuration-reference, data-protection-operators, personal-data-export, account, encryption, peering, directory-ldap-ad, ARCHITECTURE.

Every wave was reviewed and fixed. Research-backed decisions: research-1054 and research-1054-s4s5. The final review was followed by focused re-reviews (x3) and a merged-branch check. Merged with v0.6.386.

Closes #1054 on release. - **Account starts:** each name keeps a short history in `first-signins.json`. A new identity-provider subject, a new directory id (Keycloak/LDAP liveness, with the safety latch) or a local re-create starts a new account. Flap detection; Treat as a different person. - **The earlier account's data stays with the earlier account.** That covers its shares, links and federated shares out (frozen); the home (held under `accounts.nameReuse=hold`); Deleted files; devices, sessions and app passwords (refused); bells; received OCM shares; editor tokens; cached LDAP passwords; the change feed; and the export. All of these follow the start, with a 2-minute grace. - **Departed users:** earlier-account rows with Give (hand everything over), era transfer, Revoke all and Delete unread files. - **Hardening:** - Unreadable account records: last-good copy, fail closed, admin notice. - Start brake: the 3rd start move per source within 1 h holds the moves for an admin decision, Same people or Different people. - **Integrated** with #1055 (tags, favourites, recents), #1056 (editor and locks), #1057 (federated shares) and #1063 (feed views). - **UI:** Departed users, Accounts, the setting, shares, the Personal-folder card, and the bells, built from the two approved mockups and strings rounds. - **Docs:** CHANGELOG v0.6.387, chart, users-access, local-accounts, sharing, admin-policy, deployment, configuration-reference, data-protection-operators, personal-data-export, account, encryption, peering, directory-ldap-ad, ARCHITECTURE. Every wave was reviewed and fixed. Research-backed decisions: research-1054 and research-1054-s4s5. The final review was followed by focused re-reviews (x3) and a merged-branch check. Merged with v0.6.386.
# Conflicts:
#	ARCHITECTURE.md
#	CHANGELOG.md
#	cmd/cairnd/main.go
#	deploy/chart/Chart.yaml
#	docs/handbook/users-access.md
#	internal/api/changes.go
#	internal/api/owners.go
#	internal/api/ownerunread.go
#	internal/audit/verbs.go
#	internal/audit/verbs929_test.go
#	internal/notify/notify.go
#	internal/storage/scope/scope.go
#	web/static/index.html
docs: account-name-reused names federated shares out; account start moved logs federated (#1054)
Some checks failed
ci / test-and-build (pull_request) Failing after 13m56s
ded72419fa
Cordy merged commit 088dfb1fd6 into main 2026-11-02 17:26:06 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#1075
No description provided.