Uploaded image for project: 'OpenJDK'
  1. OpenJDK
  2. OPENJDK-4110

use the COPY command instead of the ADD command violation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • container
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      The customer is getting violations for "using the COPY command instead of the ADD command" from the base image  ([ubi9/openjdk)|https://catalog.redhat.com/en/software/containers/ubi9/openjdk-17/61ee7c26ed74b2ffb22b07f6?image=68c2fd32ded12cfee68625ed ]
      The reason they enable this policy is that ADD can expose the build process to external malicious files, increasing the attack surface. Additionally, COPY is generally faster and more efficient as it avoids unnecessary processing like archive extraction. 

      This is one of the customer's security compliance rules for NIST 800 -190.

              jdowland@redhat.com Jonathan Dowland
              shanna_chan Pui Chan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: