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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,8 +21,8 @@
21
21
22
22
-**Active sessions: identity context** — sessions panel now shows gravatars, username, role badge, display name, and time remaining for each active session. Responsive layout hides gravatars and names on small screens.
23
23
-**Recent events: client-side filtering** — dropdown filters for Time (1h / 24h / 7d), Event type, and Surface, applied client-side against 50 stored events. Filters laid out horizontally in a single row.
24
-
-**Passthrough logging** — new `log_passthrough` toggle in Settings → Sudo → Session Settings. When enabled, gated actions that pass through an active sudo session are recorded as "Passed" events in the widget via the new `wp_sudo_action_passed` audit hook (fires on admin, REST, and WPGraphQL surfaces).
25
-
-**Widget placement and layout** — widget renders in the side column at high priority, active session cards use CSS Grid (`repeat(auto-fit, minmax(180px, 1fr))`) with scrollable container, usernames link to user-edit.php, Settings link in passthrough notice.
24
+
-**Passed-event audit visibility defaults** — `wp_sudo_action_passed` events (admin, REST, WPGraphQL) are now recorded by default so active-session actions stay visible in the audit timeline. Disabling passed-event logging now requires an explicit code override (constant/filter), and WP Sudo shows a warning notice when that override is active.
25
+
-**Widget placement and layout** — widget renders in the side column at high priority, active session cards use CSS Grid (`repeat(auto-fit, minmax(180px, 1fr))`) with scrollable container, usernames link to user-edit.php, and the empty-state panel now uses a clearer Site Health–style status layout.
26
26
-**Users list "Sudo Active" filter** — the Users → All Users screen gains a "Sudo Active (N)" view link that filters the list to users with an active sudo session via `_wp_sudo_expires` meta query.
-`composer test:unit` passed on 2026-04-20 (`627 tests`, `1781 assertions`).
69
+
-`composer test:unit` passed on 2026-04-20 (`632 tests`, `1796 assertions`).
70
70
-`composer test:integration` passed on 2026-04-20 (`165 tests`, `538 assertions`, `9 skipped`) using the repo wrapper's `wp-env``tests-cli` fallback against the containerized `wordpress_test` database.
71
71
-`WP_MULTISITE=1 composer test:integration` passed on 2026-04-20 (`165 tests`, `552 assertions`, `2 skipped`) using the same `wp-env``tests-cli` fallback and database.
72
72
-`composer analyse:phpstan`, `composer analyse:psalm`, and `composer lint` passed on 2026-04-19.
echo'<p class="description">' . esc_html__( 'Log each gated action that succeeds during an active sudo session. Disable to see only gate friction (challenges, blocks, replays) in the dashboard widget. Enable to see a complete audit trail including actions that passed through due to an active session. Default: off.', 'wp-sudo' ) . '</p>';
1684
-
}
1685
-
1686
1709
/**
1687
1710
* Render the policy preset chooser.
1688
1711
*
@@ -2073,6 +2096,33 @@ private function render_policy_preset_notice(): void {
2073
2096
);
2074
2097
}
2075
2098
2099
+
/**
2100
+
* Render an explicit warning when Passed-event logging is code-disabled.
$message = __( 'Passed event logging is disabled by code override (constant/filter). Actions performed during active sudo sessions will not appear in dashboard event history.', 'wp-sudo' );
echo'<p>' . esc_html__( 'Sudo monitors gated actions to ensure high-privilege operations are authorized. Events are logged here to provide visibility into who is performing sensitive tasks.', 'wp-sudo' ) . '</p>';
137
139
echo'<p>' . sprintf(
138
140
/* translators: %1$s: opening link tag, %2$s: closing link tag */
139
-
esc_html__( 'You can also %1$svisit the Sudo Settings page%2$s to configure session durations and logging.', 'wp-sudo' ),
141
+
esc_html__( 'You can also %1$svisit the Sudo Settings page%2$s to configure session durations and policies.', 'wp-sudo' ),
0 commit comments