Skip to content

[Feature] Interpolate intermediate resource status changes using Cloud Asset Inventory when Data Access logs are disabled #957

Open

Description

@kyasbal

Depends on #955.

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:

  1. 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.
  2. 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

  1. added
    type:feature
    area:backend-parser
    on Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:backend-parsertype:feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions