Skip to content

l3montree-dev/devguard-k8s-image-inventory

Repository files navigation

devguard-k8s-image-inventory

A daemon that runs inside your Kubernetes cluster, watches all pods, generates a CycloneDX SBOM for each container image using Trivy, and reports it to DevGuard.

CI

Documentation

📖 https://docs.devguard.org/how-to-guides/integrations/k8s-image-inventory/

Installation, configuration reference, and usage examples are maintained there.

Trivy Configuration

The container image sets TRIVY_CONFIG=/etc/devguard/trivy.yaml. Mount a ConfigMap to that path to customize Trivy's behavior without changing any flags:

apiVersion: v1
kind: ConfigMap
metadata:
  name: trivy-config
data:
  trivy.yaml: |
    severity:
      - HIGH
      - CRITICAL
    skip-update: true

Then mount it in the deployment:

volumeMounts:
  - name: trivy-config
    mountPath: /etc/devguard
volumes:
  - name: trivy-config
    configMap:
      name: trivy-config

Development

go build ./...
go test ./...

License

MIT

This project is based on the sbom-operator project.

About

Syncs Kubernetes image SBOMs with DevGuard for continuous software supply chain visibility

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors