You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature] Interpolate intermediate resource status changes using Cloud Asset Inventory when Data Access logs are disabled #957
Is your feature request related to a problem? Please describe
In standard GKE configurations, Cloud Audit Data Access logs (k8s.io subresource status.patch / status.update) are disabled by default due to high log volume and ingestion cost.
Without Data Access logs:
KHI only receives Admin Activity logs (e.g., pods.create, pods.delete, and user spec updates).
Intermediate status transitions driven by controllers or kubelet (such as Pod Pending -> Running -> Succeeded, container readiness changes, and IP allocations) are missing from the timeline.
The timeline shows abrupt jumps (e.g., directly from creation to deletion).
Describe the solution you'd like
Use Cloud Asset Inventory history to interpolate missing intermediate status transitions:
Correlate and Deduplicate:
Compare CAI historical snapshots with existing audit logs using resource names and timestamp matching (delta ~100ms).
Deduplicate snapshots that match existing audit log events to avoid double-counting.
Synthetic Intermediate Revisions:
For intermediate status changes recorded in CAI but missing from audit logs, inject synthetic revisions into the timeline.
Mark the principal as Cloud Asset Inventory (or system:cai-inferred).
Populate the status subfields (phase, conditions, containerStatuses) and full resource body.
Describe alternatives you've considered
Requiring users to enable Data Access audit logs: Prohibitively expensive and generates excessive log volume for large clusters.
Overlaying CAI as a completely separate timeline track: Fragmented user experience compared to an integrated, unified resource timeline.
Acceptance Criteria
Even when Data Access audit logs are disabled, Pod phase transitions (Pending -> Running -> Succeeded/Failed) and container statuses appear on the timeline.
Snapshots matching existing audit logs are deduplicated.
Synthetic revisions clearly attribute their source to Cloud Asset Inventory.
Activity