Interview Prep/DevSecOps/Certificates, TLS and security incident response

A pentest finds Grafana reachable from the internet with `admin/admin`, and an exposed Kubernetes Dashboard

BeginnerTroubleshootingCertificates, TLS and security incident response
Answer

Likely causes → Tools were installed with Helm defaults and exposed with a LoadBalancer Service or a public Ingress for convenience.

Diagnose →

kubectl get svc -A --field-selector spec.type=LoadBalancer
kubectl get ingress -A

Check the Grafana and Dashboard access logs for logins from unknown IPs.

Fix → Take them off the public network right away (ClusterIP, internal LB, or behind an auth proxy with SSO). Change the Grafana admin password, enable SSO and disable basic login. Check the Dashboard SA's RBAC and remove the Dashboard if no one needs it. Review what was accessed.

Prevent → A policy that blocks type: LoadBalancer without an internal annotation in non-ingress namespaces, an external attack-surface scan, and no default credentials in Helm values.

All DevSecOps questions

More on Certificates, TLS and security incident response