Skip to content

fix #58: Honor pod labels for identifiying a component#59

Open
jcantrill wants to merge 3 commits into
openshift:mainfrom
jcantrill:issue58
Open

fix #58: Honor pod labels for identifiying a component#59
jcantrill wants to merge 3 commits into
openshift:mainfrom
jcantrill:issue58

Conversation

@jcantrill
Copy link
Copy Markdown

@jcantrill jcantrill commented May 8, 2026

This PR:

@openshift-ci openshift-ci Bot requested a review from richardsonnick May 8, 2026 15:44
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 8, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: jcantrill
Once this PR has been reviewed and has the lgtm label, please assign smith-xyz for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot requested a review from smith-xyz May 8, 2026 15:44
@jcantrill
Copy link
Copy Markdown
Author

The produced output when setting component filter to 'cluster-logging-operator,eventrouter,log-file-metric-exporter,vector'. It matched the pod being tested and produced results but the component name still looks off

{
  "timestamp": "2026-05-08T15:34:06Z",
  "total_ips": 1,
  "scanned_ips": 1,
  "ip_results": [
    {
      "ip": "10.129.0.44",
      "status": "scanned",
      "open_ports": [
        8443
      ],
      "port_results": [
        {
          "port": 8443,
          "protocol": "tcp",
          "state": "open",
          "service": "ssl/tls",
          "tls_versions": [
            "TLSv1.3"
          ],
          "tls_ciphers": [
            "TLS_AES_256_GCM_SHA384",
            "TLS_CHACHA20_POLY1305_SHA256",
            "TLS_AES_128_GCM_SHA256"
          ],
          "tls_key_exchange": {
            "forward_secrecy": {
              "supported": true,
              "ecdhe": [
                "TLS_AES_256_GCM_SHA384",
                "TLS_CHACHA20_POLY1305_SHA256",
                "TLS_AES_128_GCM_SHA256"
              ],
              "kems": [
                "X25519MLKEM768"
              ]
            }
          },
          "status": "OK",
          "reason": "TLS scan successful",
          "api_server_tls_config_compliance": {
            "configured_profile": "Default",
            "version": true,
            "ciphers": true
          },
          "tls13_supported": true,
          "mlkem_supported": true,
          "mlkem_kems": [
            "X25519MLKEM768"
          ],
          "all_kems": [
            "X25519MLKEM768"
          ],
          "tls_readiness": {
            "tls13_offered": true,
            "tls12_only": false,
            "pqc_capable": true,
            "mlkem_kems": [
              "X25519MLKEM768"
            ],
            "all_kems": [
              "X25519MLKEM768"
            ],
            "notes": "Endpoint offers TLS 1.3 and ML-KEM — ready for Modern profile"
          }
        }
      ],
      "openshift_component": {
        "component": "origin-cluster-logging-operator:log8967_tls_scanner",
        "source_location": "internal-registry",
        "maintainer_component": "user",
        "is_bundle": false
      },
      "pod": {
        "Name": "cluster-logging-operator-84b79df75f-55t5f",
        "Namespace": "openshift-logging",
        "Image": "image-registry.openshift-image-registry.svc:5000/openshift/origin-cluster-logging-operator:log8967_tls_scanner",
        "IPs": [
          "10.129.0.44"
        ],
        "Containers": [
          "cluster-logging-operator"
        ]
      }
    }
  ],
  "tls_security_config": {
    "api_server": {
      "type": "Default",
      "min_tls_version": "VersionTLS12",
      "ciphers": [
        "TLS_AES_128_GCM_SHA256",
        "TLS_AES_256_GCM_SHA384",
        "TLS_CHACHA20_POLY1305_SHA256",
        "ECDHE-ECDSA-AES128-GCM-SHA256",
        "ECDHE-RSA-AES128-GCM-SHA256",
        "ECDHE-ECDSA-AES256-GCM-SHA384",
        "ECDHE-RSA-AES256-GCM-SHA384",
        "ECDHE-ECDSA-CHACHA20-POLY1305",
        "ECDHE-RSA-CHACHA20-POLY1305"
      ]
    }
  }
}

@jcantrill
Copy link
Copy Markdown
Author

/retest

@jcantrill
Copy link
Copy Markdown
Author

Added another commit to resolve component name discrepency which produced:

{
  "timestamp": "2026-05-08T19:23:35Z",
  "total_ips": 3,
  "scanned_ips": 3,
  "ip_results": [
    {
      "ip": "10.129.0.48",
      "status": "scanned",
      "open_ports": [
        8443
      ],
      "port_results": [
        {
          "port": 8443,
          "protocol": "tcp",
          "state": "open",
          "service": "ssl/tls",
          "tls_versions": [
            "TLSv1.3"
          ],
          "tls_ciphers": [
            "TLS_AES_256_GCM_SHA384",
            "TLS_CHACHA20_POLY1305_SHA256",
            "TLS_AES_128_GCM_SHA256"
          ],
          "tls_key_exchange": {
            "forward_secrecy": {
              "supported": true,
              "ecdhe": [
                "TLS_AES_256_GCM_SHA384",
                "TLS_CHACHA20_POLY1305_SHA256",
                "TLS_AES_128_GCM_SHA256"
              ],
              "kems": [
                "X25519MLKEM768"
              ]
            }
          },
          "status": "OK",
          "reason": "TLS scan successful",
          "api_server_tls_config_compliance": {
            "configured_profile": "Default",
            "version": true,
            "ciphers": true
          },
          "tls13_supported": true,
          "mlkem_supported": true,
          "mlkem_kems": [
            "X25519MLKEM768"
          ],
          "all_kems": [
            "X25519MLKEM768"
          ],
          "tls_readiness": {
            "tls13_offered": true,
            "tls12_only": false,
            "pqc_capable": true,
            "mlkem_kems": [
              "X25519MLKEM768"
            ],
            "all_kems": [
              "X25519MLKEM768"
            ],
            "notes": "Endpoint offers TLS 1.3 and ML-KEM — ready for Modern profile"
          }
        }
      ],
      "openshift_component": {
        "component": "cluster-logging-operator",
        "source_location": "internal-registry",
        "maintainer_component": "user",
        "is_bundle": false
      },
      "pod": {
        "Name": "cluster-logging-operator-7b89dd4967-frzh4",
        "Namespace": "openshift-logging",
        "Image": "image-registry.openshift-image-registry.svc:5000/openshift/origin-cluster-logging-operator:log8967_tls_scanner",
        "IPs": [
          "10.129.0.48"
        ],
        "Containers": [
          "cluster-logging-operator"
        ]
      }
    },
    {
      "ip": "10.129.0.53",
      "status": "scanned",
      "open_ports": [
        2112
      ],
      "port_results": [
        {
          "port": 2112,
          "protocol": "tcp",
          "state": "open",
          "service": "ssl/tls",
          "tls_versions": [
            "TLSv1.2",
            "TLSv1.3"
          ],
          "tls_ciphers": [
            "ECDHE-RSA-AES256-GCM-SHA384",
            "ECDHE-RSA-CHACHA20-POLY1305",
            "ECDHE-RSA-AES128-GCM-SHA256",
            "TLS_AES_256_GCM_SHA384",
            "TLS_CHACHA20_POLY1305_SHA256",
            "TLS_AES_128_GCM_SHA256"
          ],
          "tls_key_exchange": {
            "forward_secrecy": {
              "supported": true,
              "ecdhe": [
                "TLS_AES_256_GCM_SHA384",
                "TLS_CHACHA20_POLY1305_SHA256",
                "ECDHE-RSA-AES256-GCM-SHA384",
                "ECDHE-RSA-CHACHA20-POLY1305",
                "TLS_AES_128_GCM_SHA256",
                "ECDHE-RSA-AES128-GCM-SHA256"
              ],
              "kems": [
                "X25519MLKEM768"
              ]
            }
          },
          "status": "OK",
          "reason": "TLS scan successful",
          "api_server_tls_config_compliance": {
            "configured_profile": "Default",
            "version": true,
            "ciphers": true
          },
          "tls13_supported": true,
          "mlkem_supported": true,
          "mlkem_kems": [
            "X25519MLKEM768"
          ],
          "all_kems": [
            "X25519MLKEM768"
          ],
          "tls_readiness": {
            "tls13_offered": true,
            "tls12_only": false,
            "pqc_capable": true,
            "mlkem_kems": [
              "X25519MLKEM768"
            ],
            "all_kems": [
              "X25519MLKEM768"
            ],
            "notes": "Endpoint offers TLS 1.3 and ML-KEM — ready for Modern profile"
          }
        }
      ],
      "openshift_component": {
        "component": "logfilesmetricexporter",
        "source_location": "quay.io",
        "maintainer_component": "redhat",
        "is_bundle": false
      },
      "pod": {
        "Name": "logfilesmetricexporter-tzlr8",
        "Namespace": "openshift-logging",
        "Image": "quay.io/openshift-logging/log-file-metric-exporter:latest",
        "IPs": [
          "10.129.0.53"
        ],
        "Containers": [
          "logfilesmetricexporter"
        ]
      }
    },
    {
      "ip": "10.128.0.105",
      "status": "scanned",
      "open_ports": [
        2112
      ],
      "port_results": [
        {
          "port": 2112,
          "protocol": "tcp",
          "state": "open",
          "service": "ssl/tls",
          "tls_versions": [
            "TLSv1.2",
            "TLSv1.3"
          ],
          "tls_ciphers": [
            "ECDHE-RSA-AES256-GCM-SHA384",
            "ECDHE-RSA-CHACHA20-POLY1305",
            "ECDHE-RSA-AES128-GCM-SHA256",
            "TLS_AES_256_GCM_SHA384",
            "TLS_CHACHA20_POLY1305_SHA256",
            "TLS_AES_128_GCM_SHA256"
          ],
          "tls_key_exchange": {
            "forward_secrecy": {
              "supported": true,
              "ecdhe": [
                "TLS_AES_256_GCM_SHA384",
                "TLS_CHACHA20_POLY1305_SHA256",
                "ECDHE-RSA-AES256-GCM-SHA384",
                "ECDHE-RSA-CHACHA20-POLY1305",
                "TLS_AES_128_GCM_SHA256",
                "ECDHE-RSA-AES128-GCM-SHA256"
              ],
              "kems": [
                "X25519MLKEM768"
              ]
            }
          },
          "status": "OK",
          "reason": "TLS scan successful",
          "api_server_tls_config_compliance": {
            "configured_profile": "Default",
            "version": true,
            "ciphers": true
          },
          "tls13_supported": true,
          "mlkem_supported": true,
          "mlkem_kems": [
            "X25519MLKEM768"
          ],
          "all_kems": [
            "X25519MLKEM768"
          ],
          "tls_readiness": {
            "tls13_offered": true,
            "tls12_only": false,
            "pqc_capable": true,
            "mlkem_kems": [
              "X25519MLKEM768"
            ],
            "all_kems": [
              "X25519MLKEM768"
            ],
            "notes": "Endpoint offers TLS 1.3 and ML-KEM — ready for Modern profile"
          }
        }
      ],
      "openshift_component": {
        "component": "logfilesmetricexporter",
        "source_location": "quay.io",
        "maintainer_component": "redhat",
        "is_bundle": false
      },
      "pod": {
        "Name": "logfilesmetricexporter-xp6kq",
        "Namespace": "openshift-logging",
        "Image": "quay.io/openshift-logging/log-file-metric-exporter:latest",
        "IPs": [
          "10.128.0.105"
        ],
        "Containers": [
          "logfilesmetricexporter"
        ]
      }
    }
  ],
  "tls_security_config": {
    "api_server": {
      "type": "Default",
      "min_tls_version": "VersionTLS12",
      "ciphers": [
        "TLS_AES_128_GCM_SHA256",
        "TLS_AES_256_GCM_SHA384",
        "TLS_CHACHA20_POLY1305_SHA256",
        "ECDHE-ECDSA-AES128-GCM-SHA256",
        "ECDHE-RSA-AES128-GCM-SHA256",
        "ECDHE-ECDSA-AES256-GCM-SHA384",
        "ECDHE-RSA-AES256-GCM-SHA384",
        "ECDHE-ECDSA-CHACHA20-POLY1305",
        "ECDHE-RSA-CHACHA20-POLY1305"
      ]
    }
  }
}

@smith-xyz
Copy link
Copy Markdown
Contributor

/rebase

@openshift-ci openshift-ci Bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 14, 2026
@openshift-ci openshift-ci Bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 14, 2026
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 14, 2026

@jcantrill: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/default-tls af27cf2 link false /test default-tls

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@jcantrill
Copy link
Copy Markdown
Author

/retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scanner does identify 'component' using the existing order of precedence

2 participants