Bug 1980257 - 'You are logged in as a temporary administrative user.' banner is shown for kubeadmin user with crc
Summary: 'You are logged in as a temporary administrative user.' banner is shown for k...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.8
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 4.9.0
Assignee: Guillaume Rose
QA Contact: Xiyun Zhao
URL:
Whiteboard:
Depends On:
Blocks: 1982458
TreeView+ depends on / blocked
 
Reported: 2021-07-08 08:20 UTC by Guillaume Rose
Modified: 2021-12-03 07:55 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-12 07:01:16 UTC
Target Upstream Version:
Embargoed:
gurose: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 9428 0 None open Bug 1980257: Remove kube admin notifier for kubeadmin crc user 2021-07-12 15:44:37 UTC

Description Guillaume Rose 2021-07-08 08:20:34 UTC
Description of problem:


'You are logged in as a temporary administrative user.' banner is displayed to the kubeadmin user. It shouldn't and it was not the case in 4.7. 
crc already configures it: it rotates the password and the CA now. The user doesn't need to do it.


Version-Release number of selected component (if applicable): 4.8+


How reproducible:


Steps to Reproduce:
1. Compile crc from master
2. Download a 4.8 bundle at http://cdk-builds.usersys.redhat.com/builds/crc/bundles/
3. Run crc setup, crc start -b <downloaded_bundle>
4. Run crc console and login as kubeadmin.

Actual results:

The blue banner appears.

Expected results:

The blue banner is not present.

Additional info:

Fix PR: https://github.com/openshift/console/pull/9428

Comment 1 Robb Hamilton 2021-07-12 15:42:58 UTC
Assigning to Guillaume as he has a PR up to fix.

Comment 4 Yadan Pei 2021-07-20 07:46:39 UTC
Hi, could you help verify the fix?

Comment 5 Xiyun Zhao 2021-07-30 03:35:57 UTC
This bug has been verified on OCP 4.9
When users use CRC for development and testing purposes, the 'You are logged in as a temporary administrative user.' banner will not display to the kubeadmin user

Verify steps:
1. Follow upon shared step to Compile CRC from the master, and download a 4.9 bundle at http://cdk-builds.usersys.redhat.com/builds/crc/bundles/
3. Run CRC setup 
    crc start -b <downloaded_bundle>
4. Run the CRC console and log in as kubeadmin.
5. Verify if a blue banner with the notice 'You are logged in as a temporary administrative user.' is shown on the page.

Result:
The blue banner is not present.


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