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

Default security context is only applied to deployments

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 4.19
    • HyperShift
    • None
    • None
    • Proposed
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Default security context is only applied to deployments. For example the FeatureGateGenerationJob doesn't have a default security policy, so it may run as root.

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

          

      How reproducible:

      Always

      Steps to Reproduce:

      1. Deploy 4.19
      2. Look at the pod that the FeatureGateGenerationJob created

      Actual results:

      the spec for the pod does not contain a securityContext

      Expected results:

      the spec should contain a runAsUser in the securityContext

      Additional info:

          

              Unassigned Unassigned
              szepesit Tibor Szepesi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: