You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit be96b09
Browse filesBrowse the repository at this point in the historyBrowse files
fix(auth): owners no longer see the address and browser of the administrator who changed their account (#465)
An administrator's or operator's change showed, in the owner's security
history and data export, the IP address and browser of the request that
made it. Those were the administrator's own, so every owner could see
where SourceOrigin's support worked from. Now an owner sees only that an
administrator acted, and why. Administrators still see the address and
device on the dashboard's event lists and in `audit list`.
Follow-up to #438 and #442. Part of #379.
## How
`HistoryItem::with` builds every entry the owner reads: the security
history page and its JSON, a notification's linked entry, and the events
in the data export. For an entry an administrator or operator caused, it
now leaves the IP address and device out, and doesn't mark them erased,
so the timeline shows nothing in their place. The owner's own entries
keep theirs. The admin views build their rows separately
(`AdminService::events`), so nothing changes there.
The user guides for the security history and the data export say so, and
so do `account-deletion.md` and `surfaces.md`.
## Proof
`administrators_change_another_account_on_its_behalf` now checks two
things in the owner's `/account/history`:
- the administrator's entry has no IP address and no device;
- the owner's own sign-in keeps its IP address.
It fails on main and passes with the fix. `just validate`, `just db
test` (449 of 449) and `just docs` pass on this head.
Reviewed by Claude Opus 5.5 only: GPT 6.1 Sol is on a usage limit until
Nov 13. It approved. It traced every path the owner reads and found the
actor reaches the owner only as its kind, never an ID. Its two doc nits
are fixed.
> [!NOTE]
> Written by Claude Opus 5.5 in Claude Code and reviewed by Claude Opus
5.5 (via T3 Code)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
0 commit comments