Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate if it is ok that ServiceMonitor is deployed with TLS disabled #1009

Open
akrejcir opened this issue Jul 19, 2024 · 0 comments
Open
Labels

Comments

@akrejcir
Copy link
Collaborator

The ServiceMonitor created by the metrics operand defines an endpoint with disabled TLS.

func newServiceMonitorCR(namespace string) *promv1.ServiceMonitor {
return &promv1.ServiceMonitor{
ObjectMeta: metav1.ObjectMeta{
Namespace: namespace,
Name: rules.RuleName,
Labels: ServiceMonitorLabels(),
},
Spec: promv1.ServiceMonitorSpec{
NamespaceSelector: promv1.NamespaceSelector{
Any: true,
},
Selector: metav1.LabelSelector{
MatchLabels: map[string]string{
PrometheusLabelKey: PrometheusLabelValue,
},
},
Endpoints: []promv1.Endpoint{
{
Port: MetricsPortName,
Scheme: "https",
TLSConfig: &promv1.TLSConfig{
SafeTLSConfig: promv1.SafeTLSConfig{
InsecureSkipVerify: true,
},
},
HonorLabels: true,
},
},
},
}
}

This issue is to investigate if it is intentional, and if there are any technical reasons why we cannot enable it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant