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

HCP missing audit log configuration for oauth-openshift (OAuth server)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • 4.16.0
    • 4.16
    • HyperShift
    • None
    • Important
    • No
    • Hypershift Sprint 253, Hypershift Sprint 254, Hypershift Sprint 255, Hypershift Sprint 256
    • 4
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      HCP has audit log configuration for Kube API server, OpenShift API server, OAuth API server (like OCP), but does not have audit for oauth-openshift (OAuth server). Discussed with Standa in https://redhat-internal.slack.com/archives/CS05TR7BK/p1714124297376299 , oauth-openshift needs audit too in HCP.

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

      4.11 ~ 4.16

      How reproducible:

      Always

      Steps to Reproduce:

      1. Launch HCP env.
      2. Check audit log configuration:
      $ oc get deployment -n clusters-hypershift-ci-279389 kube-apiserver openshift-apiserver openshift-oauth-apiserver oauth-openshift -o yaml | grep -e '^    name:' -e 'audit\.log'

      Actual results:

      2. It outputs oauth-openshift (OAuth server) has no audit:
          name: kube-apiserver
                - /var/log/kube-apiserver/audit.log
          name: openshift-apiserver
                - /var/log/openshift-apiserver/audit.log
          name: openshift-oauth-apiserver
                - --audit-log-path=/var/log/openshift-oauth-apiserver/audit.log
                - /var/log/openshift-oauth-apiserver/audit.log
          name: oauth-openshift

      Expected results:

      2. oauth-openshift (OAuth server) needs to have audit too.

      Additional info:

      OCP has audit for OAuth server since 4.11 AUTH-6 https://docs.openshift.com/container-platform/4.11/security/audit-log-view.html saying "You can view the logs for the OpenShift API server, Kubernetes API server, OpenShift OAuth API server, and OpenShift OAuth server".

              rhn-support-heli He Liu
              xxia-1 Xingxing Xia
              Deepak Punia Deepak Punia (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: