Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
genschema
command
cmd/genschema writes the wire contract artifacts: schema/agent-report.v1.schema.json (generated from internal/wire's structs) and schema/check-ids.json (sorted ids of every implemented check, vendored by the platform to guard catalog coverage).
|
cmd/genschema writes the wire contract artifacts: schema/agent-report.v1.schema.json (generated from internal/wire's structs) and schema/check-ids.json (sorted ids of every implemented check, vendored by the platform to guard catalog coverage). |
|
kubegauge-agent
command
Package main implements kubegauge-agent: a push-only outbound agent — scan on a timer, POST the AgentReport to the KubeGauge API, poll for on-demand scan commands.
|
Package main implements kubegauge-agent: a push-only outbound agent — scan on a timer, POST the AgentReport to the KubeGauge API, poll for on-demand scan commands. |
|
internal
|
|
|
checks
backupdr.go implements KG-DR-001 (Backup & Disaster Recovery): whether the cluster runs a recognized backup/DR solution as a Deployment.
|
backupdr.go implements KG-DR-001 (Backup & Disaster Recovery): whether the cluster runs a recognized backup/DR solution as a Deployment. |
|
kube
client.go builds the in-cluster Kubernetes clientset for the KubeGauge agent.
|
client.go builds the in-cluster Kubernetes clientset for the KubeGauge agent. |
|
netpoleval
Package netpoleval implements the M5 NetworkPolicy semantics engine (PLAN-FASE-2.md §8): given the cluster's NetworkPolicies and Namespaces, it answers "is flow A→B on port/protocol allowed or denied, and which policy is responsible?" following upstream semantics (https://kubernetes.io/docs/concepts/services-networking/network-policies/):
|
Package netpoleval implements the M5 NetworkPolicy semantics engine (PLAN-FASE-2.md §8): given the cluster's NetworkPolicies and Namespaces, it answers "is flow A→B on port/protocol allowed or denied, and which policy is responsible?" following upstream semantics (https://kubernetes.io/docs/concepts/services-networking/network-policies/): |
|
push
Package push implements the agent's outbound loop: scan → gzip POST /v1/ingest, plus the ~30s GET /v1/agent/commands poll (heartbeat + on-demand scans).
|
Package push implements the agent's outbound loop: scan → gzip POST /v1/ingest, plus the ~30s GET /v1/agent/commands poll (heartbeat + on-demand scans). |
|
report
cluster.go implements the distribution heuristic (B5) used when building wire.KubernetesInfo.
|
cluster.go implements the distribution heuristic (B5) used when building wire.KubernetesInfo. |
|
snapshot
imagevulns.go defines the image-vulnerability enrichment types carried by a Snapshot.
|
imagevulns.go defines the image-vulnerability enrichment types carried by a Snapshot. |
|
trivy
cache.go is the trivy result cache: parsed ImageScanResults stored per image key (digest when known, ref otherwise) under --trivy-cache-dir, so repeat scans skip the (slow) trivy exec while the 24h TTL keeps results fresher than the daily CVE DB updates.
|
cache.go is the trivy result cache: parsed ImageScanResults stored per image key (digest when known, ref otherwise) under --trivy-cache-dir, so repeat scans skip the (slow) trivy exec while the 24h TTL keeps results fresher than the daily CVE DB updates. |
|
wire
gen.go generates the versioned JSON Schema for AgentReport from the Go structs — the single source of truth for what leaves the cluster.
|
gen.go generates the versioned JSON Schema for AgentReport from the Go structs — the single source of truth for what leaves the cluster. |
Click to show internal directories.
Click to hide internal directories.