Skip to content

Hide alert lifecycle actions from viewers - #203

Merged
sarroutbi merged 1 commit into
keylime-webtool:mainfrom
sarroutbi:hide-alert-actions-from-viewers
Dec 2, 2026
Merged

sarroutbi merged 1 commit into
keylime-webtool:mainfrom
sarroutbi:hide-alert-actions-from-viewers

Conversation

@sarroutbi

Copy link
Copy Markdown
Contributor

SR-003 grants alert management (acknowledge, investigate, resolve, dismiss, escalate) to Operator and Admin only, and the spec is explicit that role-denied controls MUST NOT be rendered. The Actions column was rendered for everyone, so anonymous viewers saw buttons that could only fail with 401 (and trigger the login redirect).

Drop the whole Actions column for roles below Operator, keeping read-only browsing intact. Tests sign in as the minimum acting role (Operator) for the action cases and add anonymous- and authenticated-viewer cases asserting the column and buttons are absent.

SR-003 grants alert management (acknowledge, investigate, resolve,
dismiss, escalate) to Operator and Admin only, and the spec is explicit
that role-denied controls MUST NOT be rendered. The Actions column was
rendered for everyone, so anonymous viewers saw buttons that could only
fail with 401 (and trigger the login redirect).

Drop the whole Actions column for roles below Operator, keeping
read-only browsing intact. Tests sign in as the minimum acting role
(Operator) for the action cases and add anonymous- and
authenticated-viewer cases asserting the column and buttons are absent.

Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
@sarroutbi
sarroutbi merged commit aed09cd into keylime-webtool:main Dec 2, 2026
6 checks passed
@sarroutbi
sarroutbi deleted the hide-alert-actions-from-viewers branch December 2, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant