Uploaded image for project: 'Red Hat Advanced Cluster Security'
  1. Red Hat Advanced Cluster Security
  2. ROX-29182

Reduce logging level for token verifier CA files

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • False

      USER PROBLEM

      We are loading CA files provided by the cluster. Defined paths include kubernetes paths and openshift paths. That means - it is expected that some paths are not available.

      The logging level is defined as Error. And we are logging errors like this on GKE clusters:

      auth/m2m: 2025/05/05 19:57:04.279093 verifier.go:129: Error: Failed to read CA file for token verifier {"path": "/var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt", "error": "open /var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt: no such file or directory"}
      auth/m2m: 2025/05/05 19:57:04.279407 verifier.go:129: Error: Failed to read CA file for token verifier {"path": "/etc/pki/injected-ca-trust/tls-ca-bundle.pem", "error": "open /etc/pki/injected-ca-trust/tls-ca-bundle.pem: no such file or directory"}
      

      This can be confusing for customers who are operating our application.

      MORE INFO

      FIX

      • change log level to warning or info for the log that outputs information about unavailable CA file
      • keep the log level at Error for line that output information that adding of Cert to pool failed (justification: if a file exists and this action fails, that means the file is corrupted or there are other problems, and user action is required).

              Unassigned Unassigned
              rh-ee-mtodorov Mladen Todorovic
              ACS Sensor & Ecosystem
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: