Kubernetes operator that brings Quay/Clair security metadata to clusters. Watches pods, queries registries for vulnerabilities, exposes findings via ImageManifestVuln CRDs.
| Task | Command |
|---|---|
| Build | make build |
| Run locally | make run |
| Install CRDs | make installcrds |
| Run tests | go test -v ./... |
| Regenerate code | make codegen |
cmd/security-labeller/ # Entrypoint
labeller/ # Core controller (informers, reconciliation)
secscan/ # Registry client for vulnerability data
image/ # Container image ID parsing
apis/secscan/v1alpha1/ # CRD types
generated/ # Auto-generated clients (do not edit)
bundle/ # OLM deployment manifests
- Labeller watches Pod events via informers
- Parses container image IDs from running pods
- Queries registry's
.well-known/app-capabilitiesendpoint - Fetches vulnerability data from Clair via manifest-security API
- Creates/updates
ImageManifestVulnresources - Garbage collects orphaned manifests on pod deletion
For specific topics, see:
- @agent_docs/architecture.md - Component details, CRD structure, configuration
- @agent_docs/development.md - Building, testing, code generation
- @agent_docs/deployment.md - OLM deployment, container builds