blockuseofnodeportservices

package
v0.0.0-...-44dad58 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

README

Block use of NodePort services [MTB-PL1-BC-HI-1]

Profile Applicability:

1

Type:

Behavioral Check

Category:

Host Isolation

Description:

Tenants should not be able to create services of type NodePort.

Rationale:

NodePorts configure host ports that cannot be secured using Kubernetes network policies and require upstream firewalls. Also, multiple tenants cannot use the same host port numbers.

Audit:

Create a deployment and an associated service exposing a NodePort. The service creation must fail.

Remediation:

Use a policy engine such as OPA/Gatekeeper or Kyverno to block NodePort Services. You can use the policies present here.

namespaceRequired:

1

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL