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

[release-4.10] Add support for BUILDAH_QUIET environment variable

    XMLWordPrintable

Details

    • Moderate
    • Sprint 223
    • 1
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:
      Previously we had a bug opened for "Reduce buildah log level for default build log level [NEEDINFO]":

      https://bugzilla.redhat.com/show_bug.cgi?id=1996883

      We suggested customer using secrets, however, customer confirmed that they are using secrets as per:
      https://docs.openshift.com/container-platform/4.8/cicd/builds/creating-build-inputs.html#builds-input-secrets-configmaps_creating-build-inputs

      But not able to use "--quiet" build argument since they are using openshift s2i config:

      strategy:
      type: Source
      sourceStrategy:
      from:
      kind: ImageStreamTag
      namespace: xxxxxxx
      name: 's2i-xxxxxx-xxxxxxx:v1.0.0'

      Actual results:
      Under this setting, the secret as well as every other openshift secret are printed.

      Expected results:
      Sensitive information (ENV) should not appear in build logs

      Additional info:
      Maybe pass the --quiet option via the buildconfig fir s2i?

      — Additional comment from taxu@redhat.com on 2022-07-01 03:42:46 UTC —

      Hi Build team,

      I see that the target release for this bug is 4.11.0

      Please let us know where to add the LOG_LEVEL for s2i and/or passing "--quiet" options once the fix is deployed.

      Kind regards,

      Tao Xu

      — Additional comment from aos-team-art-private@redhat.com on 2022-07-13 06:44:30 UTC —

      Elliott changed bug status from MODIFIED to ON_QA.
      This bug is expected to ship in the next 4.12 release.

      — Additional comment from rdlugyhe@redhat.com on 2022-07-26 20:34:06 UTC —

      Please approve the updated Doc Text.

      — Additional comment from cdaley@redhat.com on 2022-07-26 20:49:05 UTC —

      Approved

      — Additional comment from jitsingh@redhat.com on 2022-07-27 04:48:18 UTC —

      verified

      — Additional comment from oarribas@redhat.com on 2022-08-15 12:11:23 UTC —

      @Corey, I can see this BZ now verified for 4.12. Can this be backported to previous OCP versions?

      — Additional comment from cdaley@redhat.com on 2022-08-15 13:57:02 UTC —

      What version are you interested in getting it backported to?

      — Additional comment from oarribas@redhat.com on 2022-08-15 15:46:10 UTC —

      @Corey, I can see only 4.10 and 4.11 as "Full Support" in [1], so at least to those versions.

      Attachments

        Issue Links

          Activity

            People

              cdaley Corey Daley
              cdaley Corey Daley
              Jitendar Singh Jitendar Singh
              Rolfe Dlugy-Hegwer Rolfe Dlugy-Hegwer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: