关于
KBOM - Kubernetes Bill of Materials
系统与基础设施实测星标增长
- 24小时
- -1
- 7天
- -1
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文KBOM - Kubernetes Bill of Materials
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.
探索相关项目
加载中…