Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-3395

Fix kibana packaging in order for it to be properly scanned by prod sec

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Critical Critical
    • Logging 5.8.0
    • None
    • Log Storage
    • None
    • 3
    • False
    • None
    • False
    • NEW
    • VERIFIED
    • Log Storage - Sprint 233, Log Storage - Sprint 234, Log Storage - Sprint 235, Log Storage - Sprint 236, Log Storage - Sprint 237, Log Storage - Sprint 238

      Summary

      Kibana image needs to be properly scanned using prodsec tooling at build time. This comes from a higher company directive. The current image is missed in scanning because it is missing a dependency lock file. Additionally it packages a number of dependencies that may only be required by development.

      Acceptance Criteria

      This task would resolve that by:

      • Adding a yarn.lock file to the repo
      • Updating container.yaml to identify the dependency manager to be yarn

      Challenges

      • Kibana only builds and runs using node 10.x
      • The build targets only work locally with 10.15.x
      • The only node version available to us is 10.40.0 which is incompatible with the build targets
      • The Dockerfile must install node 10 directly and will also need yarn, which may require a "2 stage" setup

      Notes

      One approach is to try to build from the actual Kibana src by:

      • Updating the package.json to explicitly use the versions int the rh-manifest.txt
      • If the above succeeds we may need to establish a kibana GH repo and abandon origin-aggregated-logging

      Sample of projects using "2 stage" approach to make yarn available:

              rojacob@redhat.com Robert Jacob
              jcantril@redhat.com Jeffrey Cantrill
              Giriyamma Karagere Ramaswamy Giriyamma Karagere Ramaswamy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: