A tester can deploy workloads to a Kubernetes namespace but has no access to the worker nodes, and the client forbids rebuilding the application image. A service listens only on localhost inside its pod. Which approach BEST scans that service?
Show the answer
Correct answerC. Add a scanning sidecar container to the application's pod
AWhy not this: Localhost-only listeners are not reachable from outside the pod, so an external scan never sees the service.
BWhy not this: SAST inspects source code statically; it does not probe the running service and needs no pod access.
CWhy this is right: A sidecar shares the pod's network namespace, reaching localhost services without changing the image or needing node access.
DWhy not this: The tester has no node access, so a host-based scan on the worker node is not possible.
A sidecar container shares the pod's network namespace, so it can reach localhost-only services without touching the image or the node. An external TCP scan cannot reach a localhost listener, and SAST analyses code rather than the running service.