Skip to content

[Standardization] K8s cluster baseline security setup (previous: KaaS Increased security setups) #415

Closed
SovereignCloudStack/standards
#376

Description

@cah-hbaum

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:

Activity

  1. added
    Container
    SCS is standardized
    SCS is opinionated
    on Sep 12, 2023
  2. cah-hbaum commented on Nov 7, 2023

    @cah-hbaum
    Author

    Some initial notes on these topics in order to create a better document later.


    external CA

    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).

  3. added
    SCS-VP10
    on Nov 7, 2023
  4. moved this from Backlog to Doing in Sovereign Cloud Stackon Nov 9, 2023
  5. cah-hbaum commented on Dec 7, 2023

    @cah-hbaum
    Author

    After discussion in the MR, this is renamed to baseline security setup.

  6. changed the title [-][Standardization] KaaS Increased security setups[/-] [+][Standardization] K8s cluster baseline security setup (previous: KaaS Increased security setups)[/+] on Dec 7, 2023
  7. artificial-intelligence commented on Jan 11, 2024

    @artificial-intelligence

    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

  8. added
    security
    on Jan 23, 2024
  9. added
    Sprint Vancouver
    on Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ContainerSCS is opinionatedSCS is standardizedSCS-VP10Sprint Vancouversecurity

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions