Skip to content
Projets

À propos

KBOM - Kubernetes Bill of Materials

Systèmes et infrastructure

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
-1
in 7 days
-1
in 15 days
-1
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

KBOM - Kubernetes Bill of Materials

GitHub release (latest by date) License OpenSSF Best Practices

The Kubernetes Bill of Materials (KBOM) standard provides insight into container orchestration tools widely used across the industry.

As a first draft, we have created a rough specification which should fall in line with other Bill of Materials (BOM) standards.

The KBOM project provides an initial specification in JSON and has been constructed for extensibility across various cloud service providers (CSPs) as well as DIY Kubernetes.

Getting Started

Download KBOM

If you prefer to download the binary, you can do so from the releases page.

Installation

brew install rad-security/tap/kbom

or

make build

Usage

KBOM generate generates a KBOM file for your Kubernetes cluster

kbom generate [flags]

Optional flags include:

Flags:
      --cluster-name string   Cluster name to use instead of the detected one
  -f, --format string         Format (json, yaml, cyclonedx-json, cyclonedx-xml) (default "json")
  -h, --help                  help for generate
  -p, --out-path string       Path to write KBOM file to. Works only with --output=file (default ".")
  -o, --output string         Output (stdout, file) (default "stdout")
  -q, --quiet                 Quiet - do not print progress to stderr
      --short                 Short - only include metadata, nodes, images and resources counters

Progress is printed to stderr, so it does not interfere with the KBOM written to stdout.

Add-ons

kbom detects well-known cluster add-ons and their versions from the images running in the cluster, e.g. the CNI plugin (AWS VPC CNI, Cilium, Calico, ...), CoreDNS, kube-proxy, CSI drivers, ingress controllers, service meshes, cert-manager, Karpenter and Flux or Argo CD. They are listed in cluster.components.addons (and as components in CycloneDX output), and the CNI version is reported as cluster.cni_version. The full list is in internal/addons/addons.go.

Vulnerability scanning

CycloneDX output includes a CPE and a purl (pkg:golang/k8s.io/kubernetes) for Kubernetes, and CPEs for add-ons listed in the NVD, so scanners can match known vulnerabilities directly from a KBOM:

kbom generate --short -f cyclonedx-json > kbom.json
grype sbom:kbom.json

Schema

The high level object model can be found here.

Supported Kubernetes Versions

We have tested kbom with all versions newer than v1.19, and can confirm that it is fully compatible with each of these versions. This means that you can use our tool with confidence, knowing that it has been thoroughly tested with.

Supported Cloud Providers

We have tested our tool with all of the main cloud providers, including Azure, AWS, and Google Cloud. Of course it's possible to generate kbom file for any K8s cluster, but please have in mind that in some cases not all metadata entries will be set.

Contributing

KBOM is Apache 2.0 licensed and accepts contributions via GitHub pull requests. See the CONTRIBUTING file for details.

Explorer des projets similaires

Chargement…