Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.24-openshift-4.21 AS builder
FROM registry.redhat.io/ubi9/ubi-minimal:latest

WORKDIR /app

Expand Down
12 changes: 12 additions & 0 deletions csv.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
var csvColumns = []string{
"IP", "Port", "Protocol", "Service", "Pod Name", "Namespace", "Component Name", "Component Maintainer",
"Process", "TLS Ciphers", "TLS Version", "Status", "Reason", "Listen Address",
"TLS 1.3 Supported", "ML-KEM Supported", "ML-KEM KEMs", "All KEMs",
"Ingress Configured Profile", "Ingress Configured MinVersion", "Ingress MinVersion Compliance", "Ingress Configured Ciphers", "Ingress Cipher Compliance",
"API Configured Profile", "API Configured MinVersion", "API MinVersion Compliance", "API Configured Ciphers", "API Cipher Compliance",
"Kubelet Configured MinVersion", "Kubelet MinVersion Compliance", "Kubelet Configured Ciphers", "Kubelet Cipher Compliance",
Expand Down Expand Up @@ -125,6 +126,10 @@ func writeCSVOutput(results ScanResults, filename string) error {
"Status": statusStr,
"Reason": stringOrNA(portResult.Reason),
"Listen Address": stringOrNA(portResult.ListenAddress),
"TLS 1.3 Supported": boolToYesNo(portResult.TLS13Supported),
"ML-KEM Supported": boolToYesNo(portResult.MLKEMSupported),
"ML-KEM KEMs": joinOrNA(portResult.MLKEMCiphers),
"All KEMs": joinOrNA(portResult.AllKEMs),
"Ingress Configured Profile": ingressProfile,
"Ingress Configured MinVersion": ingressMinVersion,
"Ingress MinVersion Compliance": "N/A",
Expand Down Expand Up @@ -232,6 +237,13 @@ func stringOrNA(s string) string {
return s
}

func boolToYesNo(b bool) string {
if b {
return "Yes"
}
return "No"
}

func joinOrNA(slice []string) string {
if len(slice) == 0 {
return "N/A"
Expand Down
Loading