Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2029982

Summary: Cockpit 251 Administrative Access MFA Prompt Window Broken
Product: Red Hat Enterprise Linux 8 Reporter: itlookslikeanail
Component: cockpitAssignee: Martin Pitt <mpitt>
Status: CLOSED ERRATA QA Contact: Jan Ščotka <jscotka>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.5Keywords: Regression, ZStream
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.6   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: cockpit-255-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2032849 (view as bug list) Environment:
Last Closed: 2022-05-10 15:18:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2032849    
Attachments:
Description Flags
Cockpit Broken Dialog Box for Admin Access with Duo MFA
none
Example of working Terminal Window Output when using Duo MFA
none
Example of working WINSCP Window Output when using Duo MFA none

Description itlookslikeanail 2021-12-07 17:50:33 UTC
Created attachment 1845115 [details]
Cockpit Broken Dialog Box for Admin Access with Duo MFA

Cockpit version: 251
OS: Red Hat 8.5
Page: Administrative Access

Description of problem:

Our Red Hat servers are configured to use Duo for multifactor authentication. In prior versions of Cockpit, we were able to log in as a non-root user and click "Turn on administrative access" and be greeted by a dialog box where we can press a number to select what method we would like Duo to use to authenticate us (push notification to phone # 1, push notification to phone # 2, call to phone # 1, call to phone # 2, etc.).

In the 251 version, which appears to be the latest version available via Red Hat repositories for RHEL 8.5, the dialog box that would allow us to enter a number and initiate the Duo request is not visible. In addition, the dialog text is cut off on the screen.


Supporting Documentation and Screenshots:

The dialog info is cutoff and no dialog box is present to enter/select the number requested by Duo.  As a result, it is impossible to authenticate properly and elevate to admin permissions as a non-root user. This was tested and worked in prior versions.

I am attaching a screenshot showing the way the Cockpit dialog box looks.  In addition, I am attaching how it should looked based on how the terminal and other apps like WINSCP work.  The dialog box in Cockpit needs to be adjusted to display all necessary info as well as the entry field where a selection can be entered.

Comment 1 itlookslikeanail 2021-12-07 17:51:57 UTC
Created attachment 1845116 [details]
Example of working Terminal Window Output when using Duo MFA

Comment 2 itlookslikeanail 2021-12-07 17:52:38 UTC
Created attachment 1845117 [details]
Example of working WINSCP Window Output when using Duo MFA

Comment 3 Martin Pitt 2021-12-08 08:19:36 UTC
Thanks! This got fixed upstream in version 252, so current RHEL 8.6 nightlies already have the fix.

Yesterday we backported the fix to the rhel-8.5 branch: https://github.com/cockpit-project/cockpit/pull/16695

After this is ack'ed, I'll clone the bug for 8.5.z.

Comment 12 errata-xmlrpc 2022-05-10 15:18:37 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 (Moderate: cockpit security, bug fix, and enhancement 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.

https://access.redhat.com/errata/RHSA-2022:2008