Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1670693

Summary: admin console login automatically after logout with kubeadmin user
Product: OpenShift Container Platform Reporter: shahan <hasha>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED CURRENTRELEASE QA Contact: shahan <hasha>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.1.0CC: aos-bugs, jokerman, mmccomas, wsun
Target Milestone: ---   
Target Release: 4.1.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: 2019-02-18 14:03: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:

Description shahan 2019-01-30 08:01:04 UTC
Description of problem:
admin console login automatically after logout with kubeadmin user, and cannot reproduce with other users.

Version-Release number of selected component (if applicable):
Cluster version is 4.0.0-0.nightly-2019-01-25-205123
console commit: 5070df1f11d481f36152c0218f209a085eed9d64

How reproducible:
Always

Steps to Reproduce:
1. Login web console with kubeadmin, try to logout
2. Login web console with other users, try to logout
3. clear websites store cookies of https://$lb:6443, then login web console with kubeadmin, try to logout


Actual results:
1. admin console will login automatically after logout 
2. other users will logout sucessfully
3. kubeadmin will logout sucessfully

Expected results:
console should log out successfully once click logout button

Additional info:

Comment 1 Samuel Padgett 2019-01-30 12:13:01 UTC
This is a known issue. We don't have an endpoint that we can use to logout yet. See

https://jira.coreos.com/browse/CONSOLE-1083

Comment 2 Samuel Padgett 2019-02-06 19:23:27 UTC
Fixed by https://github.com/openshift/console/pull/1173

Note that logout will currently take you to an empty page, but it will log out you. Clicking back will let you log in as another user. That will be fixed in a follow on, but requires additional operator changes. (We need to set the console hostname in the global config object so that the OAuth server can validate the redirect URL.)

Comment 3 shahan 2019-02-12 09:34:54 UTC
kubeadmin will logout successfully and redirect to an empty page.
Verified this bug.
cluster version: 4.0.0-0.alpha-2019-02-11-201342