You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ContainerIssues or pull requests relevant for Team 2: Container Infra and ToolingSCS is opinionatedSCS has the courage to take decisions in its implementation choices to provide a clear focusSCS is standardizedSCS is standardizedSCS-VP10Related to tender lot SCS-VP10Sprint VancouverSprint Vancouver (2024, cwk 06+07)securityIssues or pull requests that are security-relevant
This issue was created to provide a discussion ground for possible future standards. It is derived from #181 and on of the points not assigned any issue yet.
The following topics/ideas should be discussed and maybe extended:
external CA
protected kubeAPI
security patching for nodes (?)
Definition of Done:
Conclusions are reached about all discussion topics
protected kubeAPI
Theres more to this than just protecting the kubeAPI, if a high security setup should be achieved. The API itself as well as the underlying kubelet and several other components need to be secured, otherwise a setup could include security risks unknown to its user(s).
Some general sources can be found here:
The general advice from these pages can be summed up as follows:
secure endpoints with TLS
use authentication and authorization; important, since some components just expose themselves with anonymous requests automatically allowed
control container runtime privileges
secure default ports from external access
Protocol
Port Range
Purpose
TCP
6443-
Kubernetes API Server
TCP
2379-2380
etcd server client API
TCP
10250
Kubelet API
TCP
10251
kube-scheduler
TCP
10252
kube-controller-manager
TCP
10255
Read-Only Kubelet API
Protocol
Port Range
Purpose
TCP
10250
Kubelet API
TCP
10255
Read-Only Kubelet API
TCP
30000-32767
NodePort Services
security patching for nodes
Depends on what exactly was meant here. Generally, security patches should applied regularly as fast as possible. Personally, I can't imagine a scenario, where only a small portion of nodes of a cluster should be updated (instead of just the whole cluster).
So in the PR there was some generic criticism, that this is not possible to implement in unmentioned specific scenarios for unspecified reasons and I was asked to put my reply into this issue instead of the PR, which I'm doing via this message:
I think for this kind of criticism to be valid, it needs to be precise and concrete to be able to be taken into account.
So it might very well be that there are valid scenarios for which this baseline security causes issues.
But I think they need to be spelled out exactly and it must be shown why exactly this is a problem, so we can either work on improving the situation for these deployments to have better security or exclude these specific scenarios from this standard, for precise reasons.
ContainerIssues or pull requests relevant for Team 2: Container Infra and ToolingSCS is opinionatedSCS has the courage to take decisions in its implementation choices to provide a clear focusSCS is standardizedSCS is standardizedSCS-VP10Related to tender lot SCS-VP10Sprint VancouverSprint Vancouver (2024, cwk 06+07)securityIssues or pull requests that are security-relevant
Activity
cah-hbaum commentedon Nov 7, 2023
Some initial notes on these topics in order to create a better document later.
external CA
Increase in complexity but more control due to (probable) self-management of CA as well as CSRs.
protected kubeAPI
Theres more to this than just protecting the
kubeAPI, if a high security setup should be achieved. The API itself as well as the underlyingkubeletand several other components need to be secured, otherwise a setup could include security risks unknown to its user(s).Some general sources can be found here:
The general advice from these pages can be summed up as follows:
security patching for nodes
Depends on what exactly was meant here. Generally, security patches should applied regularly as fast as possible. Personally, I can't imagine a scenario, where only a small portion of nodes of a cluster should be updated (instead of just the whole cluster).
cah-hbaum commentedon Dec 7, 2023
After discussion in the MR, this is renamed to baseline security setup.
[-][Standardization] KaaS Increased security setups[/-][+][Standardization] K8s cluster baseline security setup (previous: KaaS Increased security setups)[/+]artificial-intelligence commentedon Jan 11, 2024
So in the PR there was some generic criticism, that this is not possible to implement in unmentioned specific scenarios for unspecified reasons and I was asked to put my reply into this issue instead of the PR, which I'm doing via this message:
I think for this kind of criticism to be valid, it needs to be precise and concrete to be able to be taken into account.
So it might very well be that there are valid scenarios for which this baseline security causes issues.
But I think they need to be spelled out exactly and it must be shown why exactly this is a problem, so we can either work on improving the situation for these deployments to have better security or exclude these specific scenarios from this standard, for precise reasons.
HTH