strapi-plugin-magic-sessionmanager 4.20.0 → 4.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/README.md +104 -50
  3. package/dist/admin/{Analytics-B5GnwMtH.js → Analytics-DeDLGiCe.js} +1 -1
  4. package/dist/admin/{Analytics-B-MVQ6dQ.mjs → Analytics-WbCUmkQQ.mjs} +1 -1
  5. package/dist/admin/{App-xBOmg4g9.js → App-Bkv-W0Sv.js} +1640 -2561
  6. package/dist/admin/{App-DzbP5VPQ.mjs → App-C4bihk2K.mjs} +1610 -2531
  7. package/dist/admin/{OnlineUsersWidget-FuPPPCCV.js → OnlineUsersWidget-CSvNe2rC.js} +1 -1
  8. package/dist/admin/{OnlineUsersWidget-Bf3BICmx.mjs → OnlineUsersWidget-q0Z6nbbO.mjs} +1 -1
  9. package/dist/admin/{Settings-hpkloyO6.mjs → Settings-avD0DbXP.mjs} +17 -9
  10. package/dist/admin/{Settings-WRIXHLDa.js → Settings-xokFI5LO.js} +59 -51
  11. package/dist/admin/dashboardModel-BBNRgcEr.mjs +170 -0
  12. package/dist/admin/dashboardModel-D4389iIV.js +169 -0
  13. package/dist/admin/{de-Bzd14FzX.mjs → de-BQlEdBMr.mjs} +104 -4
  14. package/dist/admin/{de-Uqb30N5n.js → de-HcJ19LKI.js} +104 -4
  15. package/dist/admin/{en-CDBcocLk.js → en-DI-98CPM.js} +105 -5
  16. package/dist/admin/{en-DovyVwa5.mjs → en-DzuXWL1W.mjs} +105 -5
  17. package/dist/admin/{es-BygJxl1J.mjs → es-BfyED9YI.mjs} +104 -4
  18. package/dist/admin/{es-DA1X0RPv.js → es-Cm0Eklav.js} +104 -4
  19. package/dist/admin/{fr-CPPA27jW.js → fr-C3nzszsI.js} +104 -4
  20. package/dist/admin/{fr-DONxL73-.mjs → fr-CzFNGWq0.mjs} +104 -4
  21. package/dist/admin/index-6zc5D8eb.mjs +4729 -0
  22. package/dist/admin/index-Dk5Jqe5U.js +4730 -0
  23. package/dist/admin/index.js +1 -1
  24. package/dist/admin/index.mjs +2 -2
  25. package/dist/admin/{pt-BMuwyaan.js → pt-BPZ6chPT.js} +104 -4
  26. package/dist/admin/{pt-D2yGNz2N.mjs → pt-DmyQnGI_.mjs} +104 -4
  27. package/dist/server/index.js +1048 -67
  28. package/dist/server/index.mjs +1048 -67
  29. package/package.json +1 -1
  30. package/dist/admin/index-DsaGGK7x.mjs +0 -2297
  31. package/dist/admin/index-Q_D-5LlE.js +0 -2298
  32. package/dist/admin/settingsTabs--7IsqMdn.mjs +0 -437
  33. package/dist/admin/settingsTabs-Dxlevody.js +0 -436
package/CHANGELOG.md CHANGED
@@ -1,3 +1,65 @@
1
+ # [4.22.0](https://github.com/Schero94/Magic-Sessionmanager/compare/v4.21.0...v4.22.0) (2026-11-25)
2
+
3
+
4
+ ### Features
5
+
6
+ * app-user security activity with its own permission, full page and Content Manager panel ([#43](https://github.com/Schero94/Magic-Sessionmanager/issues/43)) ([8716281](https://github.com/Schero94/Magic-Sessionmanager/commit/8716281cb2f9a5599be5579d9e51d39b50f3d49e))
7
+
8
+
9
+ Release type: minor (`feat`). Additive: one RBAC action (`user-activity.read`, "View app-user security activity"), two read-only admin routes and new admin screens; no stored data changes. Four app-user event labels are shorter (see Changed), and a refused request during an impersonation now names the impersonated user (see Changed).
10
+
11
+ ### Features
12
+
13
+ * **Security activity of app users.** The app-user events the plugin has written to the security log since 4.17 (failed and refused sign-ins, lockouts and unlocks, session limits, the sign-out after a password change, new devices, impossible travel, "This wasn't me", personal data exports and impersonations of app users) were recorded but shown nowhere. They now have three places, all with the 4.19 event table, details dialog, colours, filters, pagination and CSV export:
14
+ * **App users tab › Security activity**: the latest eight events with **Show all**.
15
+ * **Full page** `/plugins/magic-sessionmanager/app-users/activity`: filters for the kind of event (Failed and refused sign-ins, Lockouts and unlocks, New devices / impossible travel / "This wasn't me", Session limit and password change, Personal data exports, Impersonation), the period and one user (**Show only events of …** in the details), Strapi's pagination and CSV export. Filters, page and user are in the URL.
16
+ * **Content Manager › user › Sessions panel › Security activity**: the latest three events of that user and **Show all security activity**, which opens the page filtered to the user.
17
+ * **Plain words for every event.** Each event has its own label, colour and icon, and a second line that says what happened, for example "Account locked for 15 minutes after 5 failed sign-ins", "Session limit of 3 reached", "9100 km from the last sign-in, 4550 km/h · DE to US", "The user downloaded 4 sessions and 12 security events". The details dialog adds **What happened**, the user, who did it (an admin, or **Automatic**), the address, place, browser, operating system, user agent and event id, and **Open user** (Content Manager) when the reader may see the user. All text in English, German (Sie), French, Spanish and Portuguese.
18
+ * **New permission "View app-user security activity"** (`plugin::magic-sessionmanager.user-activity.read`, Settings › Roles › Plugins › Session Manager › General). Super Admin holds it automatically; other roles only when granted. It guards both new routes and every new screen; without it nothing is requested.
19
+ * **API.** `GET /magic-sessionmanager/user-activity` (`event` = `all`, `failed`, `lockouts`, `suspicious`, `sessions`, `privacy`, `impersonation`; `userId` = documentId; `from`, `to`, `page`, `pageSize` 1-100; unknown keys are a 400) and `GET /magic-sessionmanager/user-activity/export` (500-row keyset batches, `cursor`). Rows: `id`, `event`, `at`, `target`, `user` (`{ id, documentId, email, username }`), `actor` (`{ type: 'admin' | 'system', id, name }`), `details` (numbers and codes of the event), `ipAddress`, `ipAnonymized`, `location`, `browser`, `os`, `deviceType`, `userAgent`; `meta.identity` says what was visible.
20
+
21
+ ### Security and privacy
22
+
23
+ * **Identities as in Strapi (4.16.1 rules).** A user's email and username are returned only when the reader may read that user in the Content Manager (`plugin::content-manager.explorer.read` on `plugin::users-permissions.user`, including conditions and field-level permissions on `email` and `username`); otherwise the screens show "User #id". Admin names need `admin::users.read` ("Admin #id" otherwise). The reason an admin gave for an impersonation is returned only to readers who hold **Impersonate app users**. No entry titles, typed identifiers, device hashes, socket addresses or tokens are ever returned.
24
+ * **No admin data through the app-user view.** Events an admin caused (lock lifted, impersonation) store the admin's own request; their IP address, browser and user agent stay with the admin activity (**View admin activity**) and are never returned here.
25
+ * **Export audit.** Every export of the app-user activity records an always-on `security-log.read` event (`list: 'user-activity'`, `exported: true`, `via: 'admin-panel'` or `'admin-token'`); reads with an admin API token are recorded as for the admin lists since 4.17 (once per token and list within 5 minutes). The admin **Security activity** page shows them as **Security log exported** / **Log read with an API token** under **Settings and log access**.
26
+ * **Privacy settings apply when reading.** Events older than the security log retention are hidden at once (the daily retention run deletes them); with **Anonymise IP addresses** on, older full addresses are shown shortened; with **Store IP addresses** off, no address and no place is returned. No location is looked up when reading; a place appears only where the opt-in location lookup stored one.
27
+
28
+ ### Fixed
29
+
30
+ * **Keyboard access to the event tables (also the 4.19 admin lists).** The column headers did not pass on the grid coordinates the DS table gives its cells, so no cell had `tabIndex=0` and Tab skipped every Security activity, Sign-in history and Activity table; only a mouse could open an event's details. Tab now enters the table once, the arrow keys move between cells and Enter or Space on the eye opens the details, as in Strapi's own tables.
31
+ * **Filter chips.** The removable "Admin: …" / "User: …" filter used the DS Tag, whose remove button is 28 × 28 px; it is now a DS IconButton of 32 px (WCAG 2.5.8, the plugin's mobile rule).
32
+
33
+ ### Changed
34
+
35
+ * The labels of four app-user events are shorter, because they only appear in the App users view: "Sign-in failed", "Sign-in refused", "Locked out", "Lock lifted" (were "App user sign-in failed", "App user sign-in refused", "App user locked out", "Lockout lifted"). Impersonation events have one label each (started, ended, timed out, request refused) instead of one shared label.
36
+ * A request refused during an impersonation (`impersonation.refused`, `meta.refusal: call-*`) now stores the impersonated user as target instead of none, so it appears in that user's activity and is deleted with the account. Older rows keep `targetId: null` and show "Unknown account".
37
+ * Internal: the three security log lists share one event table component and one query schema module (`server/src/utils/event-query.js`); the admin lists look and behave as before.
38
+
39
+ ### Migration
40
+
41
+ * Nothing to do. Strapi adds the new permission to the Super Admin role at start-up. Grant **View app-user security activity** to other roles that should see the app-user events (it shows personal data: emails, IP addresses, devices).
42
+ * Webhook deliveries are not written to the security log, so the new view has no webhook events.
43
+
44
+ ### Tests
45
+
46
+ * `tests/isolated-user-activity-http.test.js` (real Strapi, SQLite and PostgreSQL in CI, and the 5.50 floor): RBAC (anonymous 401, Editor and access-only 403, Super Admin automatically 200, granted 200, revoked 403), a real failed sign-in, every event type and no admin event, email masking with field-level Content Manager permissions, admin names, the impersonation reason, filters and paging with 400s for bad input, keyset export with the export audit, admin API token audit, anonymise and IP-off at read time, retention at read time and deletion with the user.
47
+ * Unit tests for the server model, the service rows and the controller audit; admin model tests for every label, the second lines, URL state and CSV; StrictMode tests for the App users section, the full page and the Sessions panel (with and without the permission).
48
+
49
+ # [4.21.0](https://github.com/Schero94/Magic-Sessionmanager/compare/v4.20.0...v4.21.0) (2026-11-25)
50
+
51
+
52
+ ### Features
53
+
54
+ * View as admin, a read-only permission preview with anti-escalation rules ([#42](https://github.com/Schero94/Magic-Sessionmanager/issues/42)) ([687bc32](https://github.com/Schero94/Magic-Sessionmanager/commit/687bc32bd027d961b3c7c1bb3aeddcb184bee3f7))
55
+
56
+
57
+ Release type: minor (`feat`). Additive: one RBAC action (`impersonate.admins`, "View as admin") and two admin routes; no stored data changes.
58
+
59
+ ### Features
60
+
61
+ * **View as admin (read-only permission preview).** A new row action **View as** in Session Manager › Admin panel (permission **View as admin**, `impersonate.admins`) shows, after a reason and a duration of 15 or 30 minutes, which content types and actions another admin can use, their roles and their other permissions, under a banner "You are viewing as … · read-only · ends in mm:ss · End". It creates no session and no token. Anti-escalation on the server: nobody views themselves, nobody views a Super Admin (Super Admins included), and a non-Super-Admin only views an admin whose effective permissions are a subset of their own, compared with Strapi's permission ceiling rules (a test checks parity with Strapi 5.63's `isPermissionWithinCeiling`). Strapi 5.63 offers no documented way to sign a browser in as another admin, so no admin session is created; README › View as admin explains why.
62
+
1
63
  # [4.20.0](https://github.com/Schero94/Magic-Sessionmanager/compare/v4.19.1...v4.20.0) (2026-11-25)
2
64
 
3
65
 
package/README.md CHANGED
@@ -41,6 +41,7 @@ Live docs: [https://schero94.github.io/Magic-Sessionmanager/](https://schero94.g
41
41
  - [Examples](#examples)
42
42
  - [Optional route policy: `session-required`](#optional-route-policy-session-required)
43
43
  - [Admin API and permissions](#admin-api-and-permissions)
44
+ - [Security activity of app users](#security-activity-of-app-users)
44
45
  - [Admin activity and sign-in history](#admin-activity-and-sign-in-history)
45
46
  - [Impersonation](#impersonation)
46
47
  - [Running several instances (Railway replicas, pm2 cluster)](#running-several-instances-railway-replicas-pm2-cluster)
@@ -180,6 +181,7 @@ Strapi 5.62, synthetic admins `*.example.test`. The [gallery](https://schero94.g
180
181
  | Content Manager, User edit view | **Sessions** panel | What access does this user have, and how do I cut it off? |
181
182
  | Strapi homepage | **Online users** widget | Who is online right now? |
182
183
  | Session Manager › Admin panel | **Admin panel sessions** | Who is signed in to this admin panel, and how do I sign someone out? |
184
+ | Session Manager › App users | **Security activity of app users** | Which security events happened to my app's users, and to whom? |
183
185
  | Settings › Session Manager | **Configuration** | How should sessions and sign-ins behave? |
184
186
  | Settings › Session Manager | **Analytics** | How are sessions used over time and by device? |
185
187
 
@@ -225,6 +227,7 @@ Shown on the edit view of a Users & Permissions user only.
225
227
  - **End all sessions:** signs the user out on every device. The user can sign in again unless the account is blocked.
226
228
  - **Block user** / **Unblock user:** blocking ends all open sessions and prevents sign-in. The open form's Blocked field is updated, so a later Save does not undo it. Setting the native Blocked field and saving has the same effect.
227
229
  - Up to five open sessions, then **Show all sessions**, which opens the dashboard filtered by the user's email.
230
+ - **Security activity** (roles with "View app-user security activity"): the user's latest three security events and **Show all security activity**, which opens [Security activity of app users](#security-activity-of-app-users) filtered by this user.
228
231
  - For an unsaved user the panel only says "Save this user before you can manage sessions."
229
232
 
230
233
  ### Online users widget
@@ -761,51 +764,57 @@ The **Admin panel sessions** routes need two more permissions, which only the Su
761
764
  | `plugin::magic-sessionmanager.admin-sessions.read` | Read admin panel sessions | The Admin panel view and its two GET routes |
762
765
  | `plugin::magic-sessionmanager.admin-sessions.revoke` | Sign out admins | **Sign out** and **Sign out everywhere** (also needs read) |
763
766
  | `plugin::magic-sessionmanager.admin-activity.read` | View admin activity | Sign-in history, Activity, Recent security activity and the Security activity page, CSV exports and changing the Admin activity settings (also needs read) |
767
+ | `plugin::magic-sessionmanager.user-activity.read` | View app-user security activity | **Security activity** on the App users tab and in the user's Sessions panel, the full page and its CSV export (also needs `access`, not `admin-sessions.read`); see [Security activity of app users](#security-activity-of-app-users) |
764
768
  | `plugin::magic-sessionmanager.settings.update` | Change protected settings (location lookup, webhooks, security log, sign-in policies) | Changing IP location lookup, provider, lookup failure mode and database file, team notification webhooks, the sign-in and session policies (lockout, trusted addresses, session limit, password-change sign-out, role rules), the signed webhook and its **Send test**, the event selection, impossible travel and shortened session IPs, and (with View admin activity) the security log settings. Since 4.17; Super Admin only by default |
765
769
  | `plugin::magic-sessionmanager.lockouts.unlock` | Unlock locked sign-ins | **Unlock** in Login protection › Locked now (also needs `access`) |
766
770
  | `plugin::magic-sessionmanager.impersonate.users` | Impersonate app users | Starting, listing and ending impersonations of app users (also needs `access` and the **Allow impersonation** switch); see [Impersonation](#impersonation). Since 4.20 |
771
+ | `plugin::magic-sessionmanager.impersonate.admins` | View as admin (read-only permission preview) | **View as** in the Admin panel view, and listing and ending such previews (also needs `access` and the switch); see [View as admin](#view-as-admin-read-only-permission-preview). Since 4.20 |
767
772
 
768
773
  **What the admin panel view shows about other admins (4.17).** Names, emails and roles of admins are Strapi's own user data. The Admin panel view and the sign-in history return them only to roles that may also read them in Settings › Users: email and name need Strapi's **Read** permission on Users (`admin::users.read`), role names need it or **Read** on Roles (`admin::roles.read`). Without them the list shows "Admin #12", "Email hidden" and "Hidden" (roles), and the search matches the admin id only. Every admin always sees their own row. Grant `admin::users.read` to roles that should keep seeing names and emails.
769
774
 
770
775
  **Protected settings (4.17).** `PUT /settings` still needs only `access`, so roles that change the session, login-protection, alert-email and retention options keep working. Changing a protected key needs **Change protected settings** as well, else 403 with `error.details.reason: "settings-update-permission"`: `enableGeolocation`, `geoIpProvider`, `geoLookupFailureMode`, `geoIpDatabasePath`, `enableWebhooks`, `discordWebhookUrl`, `slackWebhookUrl`, every security log key (those also keep needing **View admin activity**, reason `admin-activity-permission`) and the sign-in and session policy keys (`maxFailedLoginsPerAccount`, `lockoutWindowMinutes`, `lockoutDurationMinutes`, `lockoutTrustedAddresses`, `lockoutNotifyUser`, `recordUserSignInEvents`, `maxSessionsPerUser`, `sessionLimitPolicy`, `endOtherSessionsOnPasswordChange`, `roleRules`), and the detection and integration keys (`impossibleTravelEnabled`, `impossibleTravelSpeedKmh`, `impossibleTravelMinDistanceKm`, `impossibleTravelAction`, `webhookEvents`, `genericWebhookEnabled`, `genericWebhookUrl`, `genericWebhookSecret`, `sessionIpAnonymize`), and `impersonationEnabled` (4.20). The new-device and impossible-travel email switches stay with `access`, like the other alert emails. Sending a protected key back with its stored value is not a change, so these roles can still save the whole form. The admin UI shows these controls read-only for them.
771
776
 
772
- | Method | Path | Admin UI action |
773
- | -------- | -------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
774
- | GET | `/sessions` | Sessions dashboard: `?page=&pageSize=` (1-100), `status`, `reason`, `search`, `sort`; see below |
775
- | GET | `/sessions/active` | Active sessions only; same paging parameters |
776
- | GET | `/sessions/stats` | Dashboard cards and widget: counts only, cached 5 seconds per process |
777
- | GET | `/sessions/native-only/summary` | **Why?** on the untracked-session notice: counts only, no query parameters (400 otherwise) |
778
- | POST | `/sessions/native-only/end` | **End these sessions**: empty body; signed-in administrators only (admin API tokens get 403); 5 per minute |
779
- | GET | `/sessions/analytics` | Analytics page: counts and grouped counts over every session, cached 30 seconds |
780
- | GET | `/sessions/export` | Export batches of up to 1,000 rows, newest first; follow `meta.nextCursor` |
781
- | GET | `/user/:userId/sessions` | Sessions panel |
782
- | POST | `/sessions/:sessionId/terminate` | **End session** (reason `manual`; in refresh mode the Strapi session is revoked first; the record stays) |
783
- | DELETE | `/sessions/:sessionId` | **Delete record** (record removed, token stays revoked; an open session also ends) |
784
- | POST | `/sessions/clean-inactive` | **Delete ended sessions** (all users; open and idle sessions are not affected; does not run the idle check) |
785
- | POST | `/user/:userId/terminate-all` | **End all sessions** (reason `manual`) |
786
- | POST | `/user/:userId/toggle-block` | **Block user** / **Unblock user** |
787
- | GET | `/users/stats` | Widget totals (`totalUsers`, `blockedUsers`) |
788
- | GET | `/geolocation/:ipAddress` | **Look up location** |
789
- | GET | `/geoip/status` | GeoIP database status, plus `risk` (`available`, `source`, and per risk database `editionId`, `exists`, `usable`, `fromEnvironment`, `metadata`) |
790
- | PUT | `/geoip/credentials` | Save or remove (`{ "clear": true }`) MaxMind credentials |
791
- | POST | `/geoip/update` | Update database / Force download. Body `{ "force"?: boolean, "database"?: "location" \| "anonymous-ip" \| "asn" }` (default `location`; anything else is 400). A 401/403 from MaxMind answers 502 "MaxMind refused the download…" |
792
- | GET, PUT | `/settings` | Configuration (PUT validates every field and returns `error.details.errors` on invalid input). Webhook URLs are never returned: `hasDiscordWebhook`, `hasSlackWebhook` and a hint (`https://discord.com/…`); see below |
793
- | POST | `/sessions/:sessionId/simulate-timeout` | Development only; removed when `NODE_ENV` is `production` or `staging` |
794
- | GET | `/admin-sessions/admins` | Admin panel view: `?page=&pageSize=` (1-100), `search` (up to 100 characters, name or email; the admin id only without `admin::users.read`), `filter` (`all`, `signed-in`, `not-signed-in`); needs `admin-sessions.read` |
795
- | GET | `/admin-sessions/admins/:adminId/sessions` | **View sessions**: one entry per signed-in browser; needs `admin-sessions.read` |
796
- | POST | `/admin-sessions/admins/:adminId/sessions/:sessionId/sign-out` | **Sign out** one browser; needs `admin-sessions.revoke`; signed-in administrators only; 10 per minute |
797
- | POST | `/admin-sessions/admins/:adminId/sign-out-everywhere` | **Sign out everywhere**; needs `admin-sessions.revoke`; signed-in administrators only; 10 per minute |
798
- | GET | `/admin-activity/sign-ins` | **Sign-in history**, **Recent security activity** and the **Security activity** page: `adminId`, `event` (`all`, `succeeded`, `failed`, `signed-out`, `changes`), `from`, `to` (ISO dates), `page`, `pageSize` (1-100); needs `admin-activity.read` |
799
- | GET | `/admin-activity/sign-ins/export` | CSV export batches of 500 rows, newest first; same filters plus `cursor`; follow `meta.nextCursor` |
800
- | GET | `/admin-activity/content` | **Activity**: `adminId`, `action` (`all`, `view`, `create`, `update`, `publish`, `unpublish`, `discard`, `delete`, `clone`), `contentType` (uid), `from`, `to`, `page`, `pageSize`; needs `admin-activity.read` |
801
- | GET | `/admin-activity/content/export` | CSV export batches of 500 rows; same filters plus `cursor` |
802
- | GET | `/lockouts` | **Locked now**: `{ data: [{ id, kind: 'ip' \| 'account', ip, user, failures, lockedAt, until }] }`; read rate limit |
803
- | POST | `/lockouts/unlock` | **Unlock**: body `{ id }` from the list; needs `lockouts.unlock`; 404 when the lock already ended; 10 per minute |
804
- | GET | `/roles` | Users & Permissions roles (without Public) for **Different rules for some roles** |
805
- | GET | `/impersonation/status` | `{ data: { enabled, handoff: 'frontend' \| 'token', frontendOrigin, durations, mode } }` |
806
- | POST | `/impersonation/users/:userId` | **Start impersonation**: body `{ reason, durationMinutes: 15 \| 30 \| 60, notifyUser? }`; needs `impersonate.users`; signed-in admins only; 201 `{ data: { impersonation, handoff } }` (`Cache-Control: no-store`); 10 per 10 minutes |
807
- | GET | `/impersonation/active` | **Active impersonations**: `{ data: [{ id, targetType, targetId, targetLabel, actorId, actorLabel, startedByYou, reason, durationMinutes, handoff, credentialIssued, startedAt, expiresAt, state }] }`; needs `impersonate.users` |
808
- | POST | `/impersonation/:id/end` | **End impersonation**: `{ data: { ended } }`; needs `impersonate.users`; 404 for unknown ids |
777
+ | Method | Path | Admin UI action |
778
+ | -------- | -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
779
+ | GET | `/sessions` | Sessions dashboard: `?page=&pageSize=` (1-100), `status`, `reason`, `search`, `sort`; see below |
780
+ | GET | `/sessions/active` | Active sessions only; same paging parameters |
781
+ | GET | `/sessions/stats` | Dashboard cards and widget: counts only, cached 5 seconds per process |
782
+ | GET | `/sessions/native-only/summary` | **Why?** on the untracked-session notice: counts only, no query parameters (400 otherwise) |
783
+ | POST | `/sessions/native-only/end` | **End these sessions**: empty body; signed-in administrators only (admin API tokens get 403); 5 per minute |
784
+ | GET | `/sessions/analytics` | Analytics page: counts and grouped counts over every session, cached 30 seconds |
785
+ | GET | `/sessions/export` | Export batches of up to 1,000 rows, newest first; follow `meta.nextCursor` |
786
+ | GET | `/user/:userId/sessions` | Sessions panel |
787
+ | POST | `/sessions/:sessionId/terminate` | **End session** (reason `manual`; in refresh mode the Strapi session is revoked first; the record stays) |
788
+ | DELETE | `/sessions/:sessionId` | **Delete record** (record removed, token stays revoked; an open session also ends) |
789
+ | POST | `/sessions/clean-inactive` | **Delete ended sessions** (all users; open and idle sessions are not affected; does not run the idle check) |
790
+ | POST | `/user/:userId/terminate-all` | **End all sessions** (reason `manual`) |
791
+ | POST | `/user/:userId/toggle-block` | **Block user** / **Unblock user** |
792
+ | GET | `/users/stats` | Widget totals (`totalUsers`, `blockedUsers`) |
793
+ | GET | `/geolocation/:ipAddress` | **Look up location** |
794
+ | GET | `/geoip/status` | GeoIP database status, plus `risk` (`available`, `source`, and per risk database `editionId`, `exists`, `usable`, `fromEnvironment`, `metadata`) |
795
+ | PUT | `/geoip/credentials` | Save or remove (`{ "clear": true }`) MaxMind credentials |
796
+ | POST | `/geoip/update` | Update database / Force download. Body `{ "force"?: boolean, "database"?: "location" \| "anonymous-ip" \| "asn" }` (default `location`; anything else is 400). A 401/403 from MaxMind answers 502 "MaxMind refused the download…" |
797
+ | GET, PUT | `/settings` | Configuration (PUT validates every field and returns `error.details.errors` on invalid input). Webhook URLs are never returned: `hasDiscordWebhook`, `hasSlackWebhook` and a hint (`https://discord.com/…`); see below |
798
+ | POST | `/sessions/:sessionId/simulate-timeout` | Development only; removed when `NODE_ENV` is `production` or `staging` |
799
+ | GET | `/admin-sessions/admins` | Admin panel view: `?page=&pageSize=` (1-100), `search` (up to 100 characters, name or email; the admin id only without `admin::users.read`), `filter` (`all`, `signed-in`, `not-signed-in`); needs `admin-sessions.read` |
800
+ | GET | `/admin-sessions/admins/:adminId/sessions` | **View sessions**: one entry per signed-in browser; needs `admin-sessions.read` |
801
+ | POST | `/admin-sessions/admins/:adminId/sessions/:sessionId/sign-out` | **Sign out** one browser; needs `admin-sessions.revoke`; signed-in administrators only; 10 per minute |
802
+ | POST | `/admin-sessions/admins/:adminId/sign-out-everywhere` | **Sign out everywhere**; needs `admin-sessions.revoke`; signed-in administrators only; 10 per minute |
803
+ | GET | `/admin-activity/sign-ins` | **Sign-in history**, **Recent security activity** and the **Security activity** page: `adminId`, `event` (`all`, `succeeded`, `failed`, `signed-out`, `changes`), `from`, `to` (ISO dates), `page`, `pageSize` (1-100); needs `admin-activity.read` |
804
+ | GET | `/admin-activity/sign-ins/export` | CSV export batches of 500 rows, newest first; same filters plus `cursor`; follow `meta.nextCursor` |
805
+ | GET | `/admin-activity/content` | **Activity**: `adminId`, `action` (`all`, `view`, `create`, `update`, `publish`, `unpublish`, `discard`, `delete`, `clone`), `contentType` (uid), `from`, `to`, `page`, `pageSize`; needs `admin-activity.read` |
806
+ | GET | `/admin-activity/content/export` | CSV export batches of 500 rows; same filters plus `cursor` |
807
+ | GET | `/user-activity` | **Security activity of app users**: `event` (`all`, `failed`, `lockouts`, `suspicious`, `sessions`, `privacy`, `impersonation`), `userId` (documentId), `from`, `to`, `page`, `pageSize` (1-100); needs `user-activity.read` |
808
+ | GET | `/user-activity/export` | CSV export batches of 500 rows; same filters plus `cursor`; the first batch of every export is recorded in the security log |
809
+ | GET | `/lockouts` | **Locked now**: `{ data: [{ id, kind: 'ip' \| 'account', ip, user, failures, lockedAt, until }] }`; read rate limit |
810
+ | POST | `/lockouts/unlock` | **Unlock**: body `{ id }` from the list; needs `lockouts.unlock`; 404 when the lock already ended; 10 per minute |
811
+ | GET | `/roles` | Users & Permissions roles (without Public) for **Different rules for some roles** |
812
+ | GET | `/impersonation/status` | `{ data: { enabled, handoff: 'frontend' \| 'token', frontendOrigin, durations, mode } }` |
813
+ | POST | `/impersonation/users/:userId` | **Start impersonation**: body `{ reason, durationMinutes: 15 \| 30 \| 60, notifyUser? }`; needs `impersonate.users`; signed-in admins only; 201 `{ data: { impersonation, handoff } }` (`Cache-Control: no-store`); 10 per 10 minutes |
814
+ | POST | `/impersonation/admins/:adminId/preview` | **View as**: body `{ reason, durationMinutes: 15 \| 30 }`; needs `impersonate.admins`; signed-in admins only; 201 `{ data: { impersonation, preview: { admin, contentTypes, otherPermissions } } }`; 403 `self`, `super-admin`, `not-subset`; 10 per 10 minutes |
815
+ | GET | `/impersonation/previews/:id` | The running preview, for the admin who started it; 404 otherwise or once it ended |
816
+ | GET | `/impersonation/active` | **Active impersonations**: `{ data: [{ id, targetType, targetId, targetLabel, actorId, actorLabel, startedByYou, reason, durationMinutes, handoff, credentialIssued, startedAt, expiresAt, state }] }`; app users with `impersonate.users`, admin previews with `impersonate.admins` |
817
+ | POST | `/impersonation/:id/end` | **End impersonation**: `{ data: { ended } }`; needs the impersonate permission of its kind; 404 for unknown ids |
809
818
 
810
819
  **Session list parameters.** `page` (from 1), `pageSize` (1-100), `status` (`all`, `open`, `active`, `idle`, `ended`), `reason` (with `status=ended`: `logout`, `idle`, `expired`, `manual`, `blocked`, `unrecorded`), `search` (up to 100 characters; matches email, username, IP address, browser, operating system and device type) and `sort` (`loginTime:desc`, `loginTime:asc`, `lastActive:desc`, `lastActive:asc`). The response is `{ data, meta: { pagination: { page, pageSize, total, pageCount } } }` with exact totals. Unknown or out-of-range parameters return 400. Pages that start after the first 50,000 matching sessions return 400; narrow the filter or use the export, which walks every row with a cursor. Without `page` and `pageSize`, `GET /sessions` keeps the 4.x response (latest 1,000 rows, `meta.truncated`) for existing scripts.
811
820
 
@@ -823,6 +832,31 @@ Errors use Strapi's `{ data: null, error }` envelope: 400 for invalid input, 404
823
832
 
824
833
  ---
825
834
 
835
+ ## Security activity of app users
836
+
837
+ Since 4.17 the plugin writes app-user events to its security log; since 4.22 they are shown. Open **Session Manager** (the App users view) and scroll to **Security activity**: the latest eight events, newest first, with **Show all**. The same events of one user are in the user's **Sessions** panel in the Content Manager.
838
+
839
+ | Event | Shown as | Second line (example) |
840
+ | ------------------------------------------------------------ | ----------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
841
+ | `user.sign-in.failed` | Sign-in failed | No account with this email or username |
842
+ | `user.sign-in.refused` | Sign-in refused | Session limit of 3 reached; Risky address (VPN, proxy or Tor); Sign-ins from this country are blocked |
843
+ | `user.lockout` | Locked out | Account locked for 15 minutes after 5 failed sign-ins |
844
+ | `user.lockout.lifted` | Lock lifted | An admin unlocked the account · by Ada Example |
845
+ | `user.session.limit` | Session limit reached | 1 older session ended to stay within 2 |
846
+ | `user.password-change.ended-others` | Signed out after a password change | 2 other sessions ended |
847
+ | `user.sign-in.new-device` | Sign-in from a new device | Firefox 133 on Linux (device column) |
848
+ | `user.sign-in.impossible-travel` | Impossible travel | 9100 km from the last sign-in, 4550 km/h · DE to US |
849
+ | `user.not-me` | Reported as "This wasn't me" | The user ended all their sessions |
850
+ | `user.data.exported` | Personal data exported | The user downloaded 4 sessions and 12 security events |
851
+ | `impersonation.started` / `.ended` / `.expired` / `.refused` | Impersonation started / ended / timed out / request refused | For 30 minutes; Ended by an admin; A sign-in, password or email request was blocked |
852
+
853
+ Red marks a security signal (failed, refused, locked, impossible travel, "This wasn't me", refused impersonation), amber a rule that ended sessions or a running impersonation, blue information (new device, data export, lock lifted), grey the end of an impersonation.
854
+
855
+ - **Full page** (`/plugins/magic-sessionmanager/app-users/activity`): the same table across the width with **Time**, **Event** (badge and what happened), **User**, **IP address and device** and **Done by** (an admin, or **Automatic**). Filters: kind of event, period, one user (**Show only events of …** in the details, removable tag). Strapi's pagination; filters, page and user live in the URL, so `?userId=<documentId>` is a shareable link. **Export CSV** exports every event that matches the filters (up to 10,000 newest).
856
+ - **Details** (row click or the eye button): the exact time, **What happened**, the user, who did it, the address, place, browser, operating system, user agent and event id, and **Open user** when you may see the user.
857
+ - **Below about 800 px** the table becomes stacked rows; the Sessions panel always uses them.
858
+ - **Permission:** "View app-user security activity" (`user-activity.read`); Super Admin has it automatically. Without it, the section, the page and the panel section are not shown and nothing is requested. Identities, retention and IP rules: see [What is recorded](#what-is-recorded-fact-sheet-for-data-protection-and-works-councils).
859
+
826
860
  ## Admin activity and sign-in history
827
861
 
828
862
  Since 4.15 the plugin keeps a **security log**: one table (`plugin::magic-sessionmanager.security-event`, collection `magic_sessions_security_events`, hidden from the Content Manager and the Content-Type Builder) where every event has an actor (`actorType` `admin`/`user`/`system`, `actorId`), a target (`targetType`, `targetId`), an `event` name, `ip`, `userAgent`, `geo`, a small `meta` object (at most 16 plain values, 2 KB) and `createdAt`. It is indexed on actor, target, event and time. The admin panel uses it for two things:
@@ -1025,7 +1059,23 @@ body[data-impersonating]::before {
1025
1059
  - What: a credential of the user's own permissions, never more; credential, account and session changes are refused.
1026
1060
  - How long: at most 60 minutes, enforced server-side; codes 60 seconds and single use.
1027
1061
  - Accountability: reason, duration, actor and target in the security log; optional email to the user.
1028
- - Not covered: requests your own routes make on the user's behalf are not restricted unless they match the list above; review custom routes that change credentials or emails. Admins of the admin panel cannot be impersonated (see below).
1062
+ - Not covered: requests your own routes make on the user's behalf are not restricted unless they match the list above; review custom routes that change credentials or emails. Admins of the admin panel cannot be impersonated; see [View as admin](#view-as-admin-read-only-permission-preview).
1063
+
1064
+ ### View as admin (read-only permission preview)
1065
+
1066
+ **What it does.** In Session Manager › Admin panel, the row action **View as** (the person icon next to **View sessions** and **Sign out everywhere**; on narrow screens a **View as** button) opens a dialog that asks for a reason and a duration (15 or 30 minutes) and then shows which content types that admin can open and with which actions (Create, Read, Update, Delete, Publish; "restricted" when fields, locales or conditions limit them), their roles and their other permissions, computed on the server from their role permissions with Strapi's permission service. A banner on top reads "You are viewing as … · read-only · ends in mm:ss · End". Nobody is signed in and nothing can be changed: the preview creates no session and no token, so read-only holds by construction. Closing the dialog, **End**, the end of the duration or turning the switch off ends it; it also shows in **Active impersonations** while it runs. Needs **View as admin (read-only permission preview)** (`plugin::magic-sessionmanager.impersonate.admins`) and the **Allow impersonation** switch.
1067
+
1068
+ **Anti-escalation (server-side).** Refused with 403 and `details.reason`:
1069
+
1070
+ - `self`: nobody views themselves;
1071
+ - `super-admin`: nobody views a Super Admin, Super Admins included;
1072
+ - `not-subset`: a non-Super-Admin views only an admin whose every effective permission they hold themselves (`details.uncovered` counts the others). The comparison follows Strapi's own permission ceiling rules: conditions are OR-ed, so a conditional permission does not cover an unconditional one; a property the holder does not restrict covers every value; a parent field covers its nested fields; unregistered conditions and, on localized types, missing locales are read the way the engine enforces them. A test compares it with Strapi 5.63's `isPermissionWithinCeiling` on more than 20,000 permission pairs;
1073
+ - `api-token`: admin API tokens cannot start one;
1074
+ - nesting is impossible: a preview creates no credential, and an app-user impersonation token cannot reach admin routes (401).
1075
+
1076
+ The preview is visible only to the admin who started it. Admin names in it and in the list need Strapi's **Read** permission on Users (`admin::users.read`), as in the Admin panel view.
1077
+
1078
+ **Why not a real admin session.** Strapi 5.63 has no impersonation in its admin, core, Users & Permissions or Content Manager packages, and no documented way for a plugin to sign a browser in as another admin. The server side would be possible (`strapi.sessionManager('admin').generateRefreshToken(adminId, deviceId, { metadata })`, and a global middleware could refuse every non-GET request of such a session). But the admin panel keeps its access token in internal storage (`localStorage.jwtToken` or a cookie whose name is built into the bundle) that no public admin API can set (`useAuth` only offers `login` with credentials), every open tab adopts a changed token, the admin panel has no global injection zone for a banner on every page (`admin.injectionZones` is empty and the plugin `initializer` unmounts once plugins are ready), and Strapi's `POST /admin/logout` without a device id deletes every session of the signed-in admin, which in an impersonated tab would be the other admin's sessions. Building on those internals could break with any Strapi update and could sign the real admin out or act with the wrong identity, so the plugin offers the honest preview instead. Content Manager activity is therefore never attributed to an impersonation (`meta.impersonatedBy` does not occur): a preview cannot do anything.
1029
1079
 
1030
1080
  **Works councils and GDPR (information, not legal advice).** Acting as a user processes that user's personal data. A typical basis is a legitimate interest in support and in fixing faults (Art. 6(1)(f) GDPR) or the contract with the user; tell users in your privacy information (Art. 13) and consider turning on the email notice. The security log shows which admin did what and when; in Germany a technical system that can monitor employees' behaviour or performance is subject to the works council's co-determination (Section 87(1) no. 6 BetrVG), and comparable rules exist elsewhere. Agree the feature with the works council where there is one before you turn it on, keep the circle of roles small, and check whether a data protection impact assessment (Art. 35 GDPR) is needed.
1031
1081
 
@@ -1217,7 +1267,7 @@ The plugin sits in the request path of every authenticated Content API call, so
1217
1267
  - **Reporting a vulnerability.** Please do not post exploit details in a public issue. Open an issue that asks for a private contact, or use the email address on the maintainer's GitHub profile, and you will get a reply before anything is published.
1218
1268
  - **Secrets.** MaxMind license keys are never returned to the browser. Webhook URLs grant posting rights to your channel; treat them as secrets. Exports never contain tokens.
1219
1269
  - **Admin panel sessions.** The Admin panel view reads Strapi's own `admin::session` records (origin `admin`). Only Super Admin can see or sign out admins until another role is granted `admin-sessions.read` / `admin-sessions.revoke`; a delegated role cannot sign out a Super Admin. Sign-outs need a signed-in administrator (not an admin API token), are rate limited and logged with admin ids and counts only.
1220
- - **Impersonation.** Off by default; only roles with **Impersonate app users**, only signed-in admins, at most 60 minutes, credential and account changes refused, every start, end, expiry and refusal in the security log. Details: [Impersonation](#impersonation).
1270
+ - **Impersonation.** Off by default; only roles with **Impersonate app users**, only signed-in admins, at most 60 minutes, credential and account changes refused, every start, end, expiry and refusal in the security log. Admins are never impersonated; **View as** shows a read-only permission preview with anti-escalation rules. Details: [Impersonation](#impersonation).
1221
1271
  - **Admin activity and sign-in history.** The plugin's security log stores admin sign-ins with IP address and user agent (on by default; IP anonymisation and retention configurable) and, only when you turn it on, Content Manager activity. Only Super Admin sees it until another role gets `admin-activity.read`. Typed emails of failed sign-ins, passwords and request bodies are never stored. Details and legal notes: [Admin activity and sign-in history](#admin-activity-and-sign-in-history).
1222
1272
 
1223
1273
  ---
@@ -1226,20 +1276,22 @@ The plugin sits in the request path of every authenticated Content API call, so
1226
1276
 
1227
1277
  Information for your records of processing, a data protection impact assessment or a works agreement (Germany: section 87(1) no. 6 BetrVG when the users are employees). It describes the software, not your legal basis; it is not legal advice.
1228
1278
 
1229
- | Data | When it is recorded | Where | Kept for | Who can see it | Switch |
1230
- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | ---------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
1231
- | App-user session: user, sign-in, last activity and sign-out time, end reason, IP address, browser, system, device type, country and city (when location lookup is on) | Every sign-in and while the session is used | `magic_sessions` | Ended sessions: `retentionDays` (default 90; presets 7, 90, 365; or forever) | Admins with **Access the Session Manager plugin**; the user through the Content API | IP shortening: **Shorten IP addresses of sessions** (off); location: **IP location lookup** |
1232
- | Device key (HMAC of browser family, system family, device type and the app's `deviceId`) | Every sign-in | `magic_sessions.device_key` | With the session | Nobody in the UI (used only to compare devices) | Always; it cannot be turned back into the device |
1233
- | Rounded location (0.1 degree, about 11 km) | Every sign-in while **Detect impossible travel** is on | Inside the session's location | With the session | Admins with plugin access | **Detect impossible travel** (off) |
1234
- | Failed and refused app-user sign-ins, locks, unlocks (with the admin who unlocked), session-limit and password-change endings, new device, impossible travel, "This wasn't me", data exports | When they happen | `magic_sessions_security_events` | `securityLogRetentionDays` (default 90) | Admins with **View admin activity** (log), the user (own-data export) | **Record failed and refused sign-ins** (on) for failed/refused/locks; the others only while their feature is on |
1235
- | Unknown-account sign-ins | Once per anonymised address per 5 minutes | Same log, without account and without the typed name | Same | Same | Same |
1236
- | Lock counters | During the counting window and the lock | `magic_sm_counters` (SHA-256 hashes of IP and identifier) | Until the lock ends | Nobody (hashes) | Lockout thresholds; 0 turns a lock off |
1237
- | "Locked now" entries | While a lock lasts | `magic_sm_cache` | Until the lock ends | Admins with plugin access | Follows the log's IP options |
1238
- | Admin sign-ins and, opt-in, Content Manager activity | See [Admin activity](#admin-activity-and-sign-in-history) | Security log | `securityLogRetentionDays` | Admins with **View admin activity** | **Record admin sign-ins** (on), **Record Content Manager activity** (off) |
1239
- | Impersonations: admin, user, reason, duration, start and end; refused starts and refused requests | When an admin impersonates a user | `magic_sessions_impersonations` and the security log | Table: 7 days after the end; log: `securityLogRetentionDays` | Admins with **Impersonate app users** (list), **View admin activity** (log) | **Allow impersonation** (off) |
1279
+ | Data | When it is recorded | Where | Kept for | Who can see it | Switch |
1280
+ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | ---------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
1281
+ | App-user session: user, sign-in, last activity and sign-out time, end reason, IP address, browser, system, device type, country and city (when location lookup is on) | Every sign-in and while the session is used | `magic_sessions` | Ended sessions: `retentionDays` (default 90; presets 7, 90, 365; or forever) | Admins with **Access the Session Manager plugin**; the user through the Content API | IP shortening: **Shorten IP addresses of sessions** (off); location: **IP location lookup** |
1282
+ | Device key (HMAC of browser family, system family, device type and the app's `deviceId`) | Every sign-in | `magic_sessions.device_key` | With the session | Nobody in the UI (used only to compare devices) | Always; it cannot be turned back into the device |
1283
+ | Rounded location (0.1 degree, about 11 km) | Every sign-in while **Detect impossible travel** is on | Inside the session's location | With the session | Admins with plugin access | **Detect impossible travel** (off) |
1284
+ | Failed and refused app-user sign-ins, locks, unlocks (with the admin who unlocked), session-limit and password-change endings, new device, impossible travel, "This wasn't me", data exports | When they happen | `magic_sessions_security_events` | `securityLogRetentionDays` (default 90) | Admins with **View app-user security activity** (emails only with Content Manager read access to users), the user (own-data export) | **Record failed and refused sign-ins** (on) for failed/refused/locks; the others only while their feature is on |
1285
+ | Unknown-account sign-ins | Once per anonymised address per 5 minutes | Same log, without account and without the typed name | Same | Same | Same |
1286
+ | Lock counters | During the counting window and the lock | `magic_sm_counters` (SHA-256 hashes of IP and identifier) | Until the lock ends | Nobody (hashes) | Lockout thresholds; 0 turns a lock off |
1287
+ | "Locked now" entries | While a lock lasts | `magic_sm_cache` | Until the lock ends | Admins with plugin access | Follows the log's IP options |
1288
+ | Admin sign-ins and, opt-in, Content Manager activity | See [Admin activity](#admin-activity-and-sign-in-history) | Security log | `securityLogRetentionDays` | Admins with **View admin activity** | **Record admin sign-ins** (on), **Record Content Manager activity** (off) |
1289
+ | Impersonations: admin, user, reason, duration, start and end; refused starts and refused requests | When an admin impersonates a user | `magic_sessions_impersonations` and the security log | Table: 7 days after the end; log: `securityLogRetentionDays` | Admins with **Impersonate app users** (list), **View admin activity** (log) | **Allow impersonation** (off) |
1240
1290
 
1241
1291
  What leaves the server, only when you turn it on: security emails through Strapi's email provider; Discord, Slack and the signed webhook with the selected events (user documentId, IP as the log stores it, browser, country, city, event details; never email addresses or passwords); IP lookups at ipapi.co only with the `auto`/`ipapi` provider. No telemetry.
1242
1292
 
1293
+ **Security activity of app users (4.22).** These app-user events are shown in Session Manager › App users › Security activity, on its full page and in each user's Sessions panel, to roles with **View app-user security activity** only (Super Admin by default). The view shows the user's email and username only to admins who may read that user in the Content Manager (otherwise "User #id"), admin names only with Strapi's **Read** permission on Users, and an impersonation reason only to admins who may impersonate. It follows the security log settings when it reads: events older than `securityLogRetentionDays` are hidden at once, **Anonymise IP addresses** also shortens older addresses, and with **Store IP addresses** off no address or place is shown. It never looks up a location; a place appears only where the opt-in location lookup stored one. Events an admin caused (lock lifted, impersonation) show no IP address or browser in this view: those would be the admin's own, which stay behind **View admin activity**. Every CSV export (and every read with an admin API token) is itself recorded in the security log with the admin who did it (**Security log exported** under Settings and log access). Webhook deliveries are not recorded.
1294
+
1243
1295
  Purpose: protecting accounts (lockouts, session control, detection of misuse). No performance or behaviour scoring of people is computed. Users can download their own data (`GET /api/magic-sessionmanager/my-data`); deleting a user deletes their security events; retention jobs delete older data daily.
1244
1296
 
1245
1297
  ## Troubleshooting
@@ -1357,6 +1409,8 @@ SESSION_HTTP_REQUIRED=1 SESSION_HTTP_STRAPI_NODE_MODULES=$PWD/node_modules node
1357
1409
 
1358
1410
  CI runs the same suites a second time against Strapi 5.50.0, the peer floor, installed into a separate directory (`SESSION_HTTP_STRAPI_NODE_MODULES=<dir>/node_modules`), so the floor stays tested.
1359
1411
 
1412
+ The app-user activity suite (`tests/isolated-user-activity-http.test.js`) checks RBAC (Super Admin automatically, 403 without the permission, 200 when granted), email masking with field-level Content Manager permissions, the export audit, filters, paging and the read-time privacy rules.
1413
+
1360
1414
  The admin panel suite signs synthetic admins in through `POST /admin/login` and checks listing, signing out one browser and everywhere, self sign-out, the Super Admin guard, RBAC denials, the rate limit, that the next request and the refresh are rejected, and that admin sessions never reach the app-user numbers.
1361
1415
 
1362
1416
  Quick manual check: sign in to your app as an end user (`POST /api/auth/local`), open Session Manager and find the session as **Active**, click **End session** and confirm, then call any Content API route with the same token: it returns 401 and the row shows **Ended · Ended manually**.
@@ -9,7 +9,7 @@ const styled = require("styled-components");
9
9
  const designSystem = require("@strapi/design-system");
10
10
  const icons = require("@strapi/icons");
11
11
  const symbols = require("@strapi/icons/symbols");
12
- const index = require("./index-Q_D-5LlE.js");
12
+ const index = require("./index-Dk5Jqe5U.js");
13
13
  const SectionCard = require("./SectionCard-BlWv8CRt.js");
14
14
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
15
15
  const styled__default = /* @__PURE__ */ _interopDefault(styled);
@@ -7,7 +7,7 @@ import styled from "styled-components";
7
7
  import { Typography, Flex, LinkButton, Button, EmptyStateLayout, VisuallyHidden } from "@strapi/design-system";
8
8
  import { ArrowClockwise, ChartBubble, User, Clock, Calendar } from "@strapi/icons";
9
9
  import { EmptyDocuments } from "@strapi/icons/symbols";
10
- import { N as normalizeDeviceType, u as useSessionFormatters, f as pluginId, n as isCancelledRequest, l as logSafeAdminError, h as PersistentAlert, R as ReadableText, q as PageShell, r as StatGrid, s as StatCard, A as EqualGrid, b as getTranslation, O as getDeviceTypeMessage } from "./index-DsaGGK7x.mjs";
10
+ import { aN as normalizeDeviceType, u as useSessionFormatters, f as pluginId, F as isCancelledRequest, l as logSafeAdminError, h as PersistentAlert, R as ReadableText, Q as PageShell, T as StatGrid, W as StatCard, au as EqualGrid, b as getTranslation, aO as getDeviceTypeMessage } from "./index-6zc5D8eb.mjs";
11
11
  import { S as SectionCard } from "./SectionCard-D51bv4Hi.mjs";
12
12
  const ANALYTICS_UNKNOWN_KEY = "unknown";
13
13
  const VERSION_TOKEN = /^v?\d[\w.]*$/i;