Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-60236

CSP Violations are reported to telemetry too frequently

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.18.0
    • 4.19.0
    • Management Console
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • Done
    • Release Note Not Required
    • N/A
    • None
    • None
    • None
    • None

      This is a clone of issue OCPBUGS-50571. The following is the description of the original issue:

      This is a clone of issue OCPBUGS-44972. The following is the description of the original issue:

      Description of problem:

          CSP violations detected in the console are being reported more frequently than intended. Duplicate violations should only be reported once a day per browser session, but seem to be reported on every occurrence.

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

          4.19

      How reproducible:

          Always

      Steps to Reproduce:

          1. In "dynamic-demo-plugin/oc-manifest.yaml", change the deployment image to "quay.io/yapei/console-demo-plugin-csp:latest"
          2. Apply this file to a cluster
          3. Visit the console, and once the plugin has loaded, navigate to the first nav item in the new nav section provided by the plugin.
          4. Refresh the page
          5. Check Amplitude chart linked below

      Actual results:

          Duplicate telemetry events are reported and seen in the Amplitude chart

      Expected results:

          Only one of each type of CSP violation should be reported per day, per plugin, and per browser session.

      Amplitude chart link:

      https://app.amplitude.com/analytics/redhat/chart/sl949cgt/edit/arqh84e3

       

              rh-ee-jonjacks Jon Jackson
              openshift-crt-jira-prow OpenShift Prow Bot
              None
              None
              Yanping Zhang Yanping Zhang
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: