Skip to content

TCP listen on port 9253 on all interface addresses creates security vulnerability #542

@amshankaran

Description

@amshankaran

K8s cluster is installed on VMs/worker nodes having multiple interfaces. Couple of interfaces have external connectivity towards DC-GW. dns-node-cache (node-local-dns) listens on 9253 for prometheus. But this TCP listens on all the interfaces including external interfaces.
This makes cluster vulnerable to DoS attack.

worker-pool1-z92h78yx-stack:~ # lsof -i -n -P | grep :9253
node-cach 4720 root 8u IPv6 41286 0t0 TCP *:9253 (LISTEN)

As per prometheus plugins suggestion, if we configure an IP address, X.X.X.X:9253 it will be specific to the particular node with address X.X.X.X. In a multi-node cluster, this configuration in configmap will fail the bind with node address Y.Y.Y.Y

A configuration required to Listen on nodes InternalIP, which can solve this issue. (InternalIP:9253)

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions