Bug 1980257

Summary: 'You are logged in as a temporary administrative user.' banner is shown for kubeadmin user with crc
Product: OpenShift Container Platform Reporter: Guillaume Rose <gurose>
Component: Management ConsoleAssignee: Guillaume Rose <gurose>
Status: CLOSED CURRENTRELEASE QA Contact: Xiyun Zhao <xiyuzhao>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.8CC: aos-bugs, jokerman, liyao, msaud, nmukherj, rhamilto, spadgett, xxia, yapei
Target Milestone: ---Flags: gurose: needinfo-
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-12 07:01:16 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: 1982458    

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.