Bug 2027613 - Users can't silence alerts from the dev console
Summary: Users can't silence alerts from the dev console
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.7
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.11.0
Assignee: Vikram Raj
QA Contact: spathak@redhat.com
Depends On:
Blocks: 2079985
TreeView+ depends on / blocked
Reported: 2021-11-30 09:13 UTC by Simon Pasquier
Modified: 2022-10-07 16:52 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2022-08-10 10:39:48 UTC
Target Upstream Version:

Attachments (Terms of Use)
Network monitor from Firefox (247.97 KB, image/png)
2021-11-30 09:13 UTC, Simon Pasquier
no flags Details

System ID Private Priority Status Summary Last Updated
Github openshift console pull 10818 0 None Merged Bug 2027613: use the correct Alertmanager tenancy proxy 2022-07-19 08:46:07 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 10:40:25 UTC

Description Simon Pasquier 2021-11-30 09:13:26 UTC
Created attachment 1844139 [details]
Network monitor from Firefox

Description of problem:
When logged in as a non-admin user, I can't silence alerts from the Dev Console.

Version-Release number of selected component (if applicable):
4.10 but the same issue may exist for previous versions.

How reproducible:

Steps to Reproduce:
1. Login to the dev console as a non-admin user.
2. Follow the OCP documentation to deploy the example application including the service monitor and the rule (the user needs to be granted the monitoring-edit role). See https://docs.openshift.com/container-platform/4.9/monitoring/enabling-monitoring-for-user-defined-projects.html for details.
3. Go to the Observe > Alerts page and disable notifications during 30 minutes for the VersionAlert alert.

Actual results:
The alert notification seems to be disabled but on refresh, the notification is still enabled.

Expected results:
The notification is permanently disabled.

Additional info:
The console backend hits the wrong service which results in a 403 response code, it should use the tenancy-aware service.

Comment 15 spathak@redhat.com 2022-06-16 06:41:27 UTC
Verified on build version: 4.11.0-0.nightly-2022-06-15-161625
Browser version: Chrome 101

Comment 16 errata-xmlrpc 2022-08-10 10:39:48 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: OpenShift Container Platform 4.11.0 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.