Giter VIP home page Giter VIP logo

Comments (10)

jbeda avatar jbeda commented on May 18, 2024

@kseifriedredhat Totally agree -- can you point to stuff as you see it and we'll fix it up. Or send a PR.

Thanks!

from kubernetes.

 avatar commented on May 18, 2024

Just grep the source, so for example:

./kubernetes-master/cluster/saltbase/salt/kube-proxy/default:DAEMON_ARGS="$DAEMON_ARGS
--etcd_servers=http://{{ ips[0][0] }}:4001"
./kubernetes-master/cluster/saltbase/salt/kubelet/default:DAEMON_ARGS="$DAEMON_ARGS
-etcd_servers=http://{{ ips[0][0] }}:4001 -address=$HOSTNAME"
./kubernetes-master/cluster/saltbase/salt/apiserver/default:DAEMON_ARGS="$DAEMON_ARGS
-etcd_servers=http://{{ ips[0][0] }}:4001"
./kubernetes-master/cluster/saltbase/salt/controller-manager/default:DAEMON_ARGS="$DAEMON_ARGS
-etcd_servers=http://{{ ips[0][0] }}:4001"

from kubernetes.

jbeda avatar jbeda commented on May 18, 2024

Those are all intra-cluster communication. In the typical deployment none of those would be going over a WAN link. While ideally that stuff would be over TLS also, distributing key material in a secure way becomes difficult in an automated way.

I'd prioritize places where we grab resources over the internet over securing intra-cluster communication.

from kubernetes.

jbeda avatar jbeda commented on May 18, 2024

I filed #129 to track intra-cluster communication.

from kubernetes.

a-robinson avatar a-robinson commented on May 18, 2024

Is this meant to now refer to communication from the client rather than from the node components? If not, then it and #129 are covering the same thing and this should be closed.

from kubernetes.

 avatar commented on May 18, 2024

If you replace all these with TLS via #129 then yes, that would cover this. Does your documentation specifically state that the intra cluster nodes need to have a trusted network, becauce if not this should probably be given a CVE.

from kubernetes.

alex-mohr avatar alex-mohr commented on May 18, 2024

TODO: audit code for all usage of http instead of https and file separate issues for each non-benign one. E.g. apiserver to same machine etcd is fine via http.

from kubernetes.

erictune avatar erictune commented on May 18, 2024

This audit was done and reported in #129

from kubernetes.

roberthbailey avatar roberthbailey commented on May 18, 2024

I did a quick audit of the cluster/ directory to see where I could find places that we are fetching resources over the internet and found the following:

In build scripts (Makefiles / Dockerfiles):

  1. https://github.com/GoogleCloudPlatform/kubernetes/blob/master/cluster/images/hyperkube/Makefile#L6
  2. https://github.com/GoogleCloudPlatform/kubernetes/blob/master/cluster/addons/fluentd-elasticsearch/fluentd-es-image/Dockerfile#L24
  3. https://github.com/GoogleCloudPlatform/kubernetes/blob/master/cluster/addons/fluentd-elasticsearch/kibana-image/Dockerfile#L13
  4. https://github.com/GoogleCloudPlatform/kubernetes/blob/master/cluster/images/nginx/backports.list#L1

In cluster initialization scripts:

  1. https://github.com/GoogleCloudPlatform/kubernetes/blob/master/cluster/gce/configure-vm.sh#L295-L296
  2. https://github.com/GoogleCloudPlatform/kubernetes/blob/master/cluster/libvirt-coreos/util.sh#L120
  3. https://github.com/GoogleCloudPlatform/kubernetes/blob/master/cluster/rackspace/cloud-config/master-cloud-config.yaml#L121

from kubernetes.

roberthbailey avatar roberthbailey commented on May 18, 2024

The intra-cluster audit was covered in #129 and I've done an audit over cluster initialization scripts here and sent PRs to fix a couple of easy cases and filed separate bugs for the remaining occurrences. Marking this issue as fixed.

from kubernetes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.