Uploaded image for project: 'Red Hat OpenShift AI Engineering'
  1. Red Hat OpenShift AI Engineering
  2. RHOAIENG-1154

Handle dashboard oauth cookie expiration while user is using dashboard

    XMLWordPrintable

Details

    • False
    • Hide

      None

      Show
      None
    • False
    • Moderate

    Description

      Description of problem:

      When users are using dashboard and the oauth proxy cookie expires, errors pop up and login page appears when they reload the page.
      We may want to handle the expiration in a more user-friendly manner. For examples:

      • pop up alerting user about cookie expiration and reload the page when user acknoledge (click an OK button?)
      • inform user some minutes earlier that they need to re-authenticate (like Slack does)

       

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

      1. log in RHODS Dashboard
      2. make the oauth_proxy cookie expiring*
      3. check what happens in the page
      • you could do in different ways, for examples:
      • edit the cookie (you could use any browser plugin or whatever way you prefer)
      • edit "--cookie-expire=23h0m0s" in the Dashboard deployment to a lower value (you should also scale down to 0 the rhods operator pod

       

      Actual results:

      page shows errors without informing user about what's happening

      Expected results:

      TBD

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Build Details:

      RHODS v1.21.0-21

      Workaround:

      reload the page

      Additional info:

      Scenario extracted from RHODS-5931:

      B.  Dashboard Oauth proxy cookie expires while user is logged in RHODS Dashboard(earlier than Openshift oauth token)
      B1: log in RHODS Dashboard with a basic user2
      B2: change  oauth_proxy cookie to expire in 1 minute (done via a chrome plugin, i.e., EditThisCookie)
      B3: create a DS project and wait until cookie expires
      R3: nothing change unti I do an action (e.g., change dashboard page, click on a button, etc). After I perform an action, dashboard page refresh and gets stuck on a blank page until I refresh manually (at that point log in page appears)

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-bdattoma Berto D'Attoma
            RHOAI Dashboard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              PagerDuty