monitor: enable TLS for kata-monitor #2777
All Vouch review confidence checks passed
Residual risk 0.28 = Change Risk (0.71) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.71 · 495 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.371
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.071
Real PR Conversation Timeline
1 comments
"Review active on #2777"
general
weight: 0.35
ngopalak-redhat
<!--
If this is a bug fix, make sure your description includes "Fixes: #xxxx", or
Please provide the following information:
-->
- Description of the problem which is fixed/What is the use case
Update kata-monitor deployment to use HTTPS (port 8443) with TLS certificates managed by OpenShift's service-ca controller. This aligns with upstream https://github.com/kata-containers/kata-containers/pull/13257, which adds --tls-cert-file and --tls-key-file flags to kata-monitor binary.
- What I did
- Test Results
Environment
TLS configuration verified on monitor pod
Command args — listening on HTTPS port 8443 with TLS cert/key flags:
``
[
"/usr/bin/kata-monitor",
"--listen-address=:8443",
"--log-level=debug",
"--runtime-endpoint=/run/crio/crio.sock",
"--tls-cert-file=/etc/kata-monitor/certs/tls.crt",
"--tls-key-file=/etc/kata-monitor/certs/tls.key",
"--tls-min-version=VersionTLS12",
"--log-level=debug",
"--runtime-endpoint=/run/crio/crio.sock",
"--tls-cert-file=/etc/kata-monitor/certs/tls.crt",
"--tls-key-file=/etc/kata-monitor/certs/tls.key",
"--tls-min-version=VersionTLS12",
"--log-level=debug",
"--runtime-endpoint=/run/crio/crio.sock",
"--tls-cert-file=/etc/kata-monitor/certs/tls.crt",
"--tls-key-file=/etc/kata-monitor/certs/tls.key",
"--tls-min-version=VersionTLS12",
"--tls-cipher-suites=TLS_AES_128_GCM_SHA256,TLS_AES_256_GCM_SHA384,..."
]
{
"mountPath": "/etc/kata-monitor/certs/",
"name": "kata-monitor-certs",
"readOnly": true
}
{
"name": "kata-monitor-certs",
"secret": {
"secretName": "kata-monitor-certs",
"items": [
{ "key": "tls.crt", "path": "tls.crt" },
{ "key": "tls.key", "path": "tls.key" }
]
}
}
$ TOKEN=$(oc create token prometheus-k8s -n openshift-monitoring)
$ oc run monitor-test --rm -i --restart=Never \
-n openshift-sandboxed-containers-operator \
--image=registry.access.redhat.com/ubi9/ubi-minimal:latest \
-- curl -sk -H "Authorization: Bearer $TOKEN" \
https://metrics.openshift-sandboxed-containers-operator.svc:8443/metrics
HELP kata_monitor_go_gc_duration_seconds A summary of the wall-time pause...
TYPE kata_monitor_go_gc_duration_seconds summary
kata_monitor_go_gc_duration_seconds{quantile="0"} 3.1142e-05
kata_monitor_go_gc_duration_seconds{quantile="0.25"} 4.7252e-05
...
HELP kata_monitor_go_goroutines Number of goroutines that currently exist.
TYPE kata_monitor_go_goroutines gauge
kata_monitor_go_goroutines 14
HELP kata_monitor_go_info Information about the Go environment.
TYPE kata_monitor_go_info gauge
kata_monitor_go_info{version="go1.26.7 (Red Hat 1.26.7-1.el9_8)"} 1
...
``
- Description for the changelog
TBD
<!--
Write a short (one line) summary that describes the changes in this
pull request for inclusion in the changelog:
-->
Closes: KATA-5872