Skip to content

KHI v0.62.0

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Nov 00:36
517a76b

Breaking Changes ⚠️

Explicit Host Allowlist Required for Non-Loopback Access (#1296)

  • KHI now validates the HTTP Host header on all HTTP and MCP routes and rejects unlisted hosts with 403 Forbidden.
  • No action is needed if you access KHI locally via localhost, 127.0.0.1, [::1], or the explicit --host / HOST address.
  • Action required if you access KHI via a custom domain, reverse proxy, Kubernetes Ingress, or remote/Web Preview hostname: configure --allowed-hosts or the KHI_ALLOWED_HOSTS environment variable with a comma-separated list of allowed host patterns (exact hosts / host:port, subdomain wildcards such as *.proxy.example.com, prefix wildcards such as *-khi.example.com, or * to allow all valid hosts):
    khi --allowed-hosts="khi.example.com,*.proxy.example.com"
    # or
    KHI_ALLOWED_HOSTS="khi.example.com,*.proxy.example.com" khi
  • Cross-origin browser requests to HTTP and MCP (/mcp, /mcp/sse) routes are also rejected with 403 Forbidden; ensure reverse proxies forward the matching Host / same-origin headers.

Highlights ✨

String Pool Masking & Sanitized .khi Export

  • In-UI Masking with Live Preview (#1199): Added a dockable String Masking pane backed by an on-demand string pool index so you can redact sensitive identifiers (project IDs, cluster/node/Pod names, IPs, custom strings) with live preview across timelines and logs, and export masked .khi archives safely for sharing.

KHI MCP Server: Annotated Timeline Scenes, Evidence Deck & Agent Plugin

  • Annotated Timeline Scenes & Evidence Deck in render_timelines (#1198, #1253, #1256, #1257): Agents can now render Retina 2x PNG timeline diagrams with named color palettes, markers, above-box/inside spans (with optional duration), row highlights, connectors, callouts, and a synchronized bottom-docked Evidence Deck (diffExcerpts, manifestExcerpts, logExcerpts) with co-anchor badge color sync. Each render returns a short-lived PNG URL, an interactive Web UI URL (/render/mcp-timeline?sceneId=...), and an immutable sceneId supporting incremental refinement via parentSceneId.
  • Richer MCP Investigation Outputs (#1194, #1201): search_timelines now reports compressed revision state transitions, and inspection summaries align section routing with per-query log counts.
  • Built-in Agent Plugin & khi-investigation Skill (#1230): Added ready-to-use plugin configurations and the khi-investigation skill to guide structured Kubernetes/GKE incident investigation over KHI MCP.

GKE Dataplane V2 / Cilium & Managed CSM Log Support

  • Dataplane V2 Network Policy Logs (#1259): Added a dedicated inspection feature for GKE Dataplane V2 policy-action logs, linking allowed/denied traffic to source and destination Pod inbound/outbound policy timelines as well as the deciding NetworkPolicy, FQDNNetworkPolicy, and ClusterNetworkPolicy resources.
  • Cilium Log & Resource Correlation (#1260, #1261, #1262): Linked cilium-cni logs in container runtime logs to Pods, enriched cilium-agent logs with subsystem, severity level, and Pod references, and displayed CiliumEndpoint resources directly under their owning Pod timeline.
  • Managed Cloud Service Mesh (CSM) Control Plane Logs (#1187): Added inspection support for managed CSM istio_control_plane logs.

Timeline UI & Log Correlation Improvements

  • Revision changedTime Cursor Alignment (#1200): Aligned the primary timeline cursor with the selected revision's changedTime and added a secondary log timestamp cursor when they differ.
  • Hold Alt to Hide Timeline Events (#1195): Temporarily hide timeline event markers while holding Alt to inspect dense resource revision bars clearly.
  • Deep-Link Auto-Scrolling (#1254): Automatically scroll timeline and history views to the selected target on URL load.
  • Improved Container & Event Linking (#1192, #1197): Improved Pod, Container, and Node timeline correlation for modern containerd logs, audit container IDs, resource UIDs, container fieldPath, and source.host Kubernetes events.

What's Changed

New features 🎉

  • feat(mcp): align summary section routing and record per-query log counts by @kyasbal in #1194
  • feat(web): hide timeline events while holding Alt by @kyasbal in #1195
  • feat(mcp): issue short-lived HTTP GET URLs for rendered timeline PNGs by @kyasbal in #1198
  • feat(mask): add string pool masking, live preview, and masked .khi export by @kyasbal in #1199
  • feat(web): align timeline cursor with revision changedTime and display secondary log cursor by @kyasbal in #1200
  • feat(mcp): show compressed revision state transitions in search_timelines by @kyasbal in #1201
  • feat(mcp,web): add annotated timeline scenes to render_timelines by @kyasbal in #1253

Bug Fixes 🐛

  • fix(k8snode): link modern containerd logs, audit container IDs, and resource UIDs to Pod and Container timelines by @kyasbal in #1192
  • fix(k8sevent): link container fieldPath and source.host events to Container and Node timelines by @kyasbal in #1197
  • fix(web): scroll timeline and history views to selected target on URL load by @kyasbal in #1254
  • fix(server): validate Host and Origin headers on HTTP and MCP routes by @kyasbal in #1296

Refactoring ♻️

  • refactor(web): remove legacy millisecond timestamp getters and standardize on nanosecond bigint timestamps by @kyasbal in #1203
  • refactor(mcp): replace embedded template in FormatAppliedFilter with pure Go by @kyasbal in #1204

CI/CD ⚙️

  • chore(agent,ci): support Stacked PR and Merge Queue workflow on origin by @kyasbal in #1214
  • chore(go): remove unreachable functions and enforce deadcode lint by @kyasbal in #1275
  • chore(go): remove unused exported declarations and enforce AST check in codequality by @kyasbal in #1277

Development Environment 💻

  • chore(lint): enable zero-dependency unused code checks for Go and Web by @kyasbal in #1274
  • chore(go): enable unparam linter and remove dead struct fields by @kyasbal in #1276
  • chore(web): remove unused exports and orphan files and enforce TS export check by @kyasbal in #1278

Other Changes 🛠

  • feat(csm): support managed CSM control plane (istio_control_plane) logs by @K53 in #1187
  • feat(agent): add KHI agent plugin and khi-investigation skill by @kyasbal in #1230
  • feat(inspection): add callout banner form field type by @kyasbal in #1255
  • feat(ci,scripts): add Go differential coverage tool and CI reporting by @kyasbal in #1258
  • feat(ci,scripts): add Go differential mutation testing tool and CI reporting by @kyasbal in #1264
  • feat(scripts): add redundant test detection to mutation-diff by @kyasbal in #1265
  • feat(ci,scripts): unify coverage-diff into mutation-diff and redesign report by @kyasbal in #1266
  • feat(ci,scripts): add TypeScript support to unified mutation-diff by @kyasbal in #1267
  • feat(ci,scripts): unify Go and TypeScript quality checks into codequality by @kyasbal in #1268
  • chore(lint): enforce Go declaration ordering and mandatory GoDoc comments by @kyasbal in #1271
  • ci(codequality): offload differential code quality checks to Cloud Build by @kyasbal in #1272
  • feat(ci,scripts): add Go and TypeScript similarity advisories to codequality by @kyasbal in #1270
  • feat(ci,codequality): post sticky PR quality reports via check_run workflow by @kyasbal in #1273
  • feat(mcp,web): support above-box span labels and optional duration in render_timelines by @kyasbal in #1256
  • feat(dpv2policy): add Dataplane V2 network policy log feature by @kyasbal in #1259
  • feat(k8snode): link cilium-cni logs in container runtime logs to Pods by @kyasbal in #1260
  • feat(k8scontainer): enrich cilium-agent logs with subsystem, level and Pod references by @kyasbal in #1261
  • feat(k8saudit): show CiliumEndpoint under the owning Pod timeline by @kyasbal in #1262
  • feat(scripts,agents): add diff-aware pre-commit/pre-push gates and pr-quality-ci skill by @kyasbal in #1288
  • feat(cdp): extend shared CDP client for deterministic screenshots by @kyasbal in #1279
  • feat(web,storybook): add VRT readiness bridge and fix non-deterministic stories by @kyasbal in #1281
  • feat(vrt): add Storybook loader and parallel headless Chromium capture engine by @kyasbal in #1282
  • feat(vrt): add perceptual PNG diffing and GCS snapshot and report store by @kyasbal in #1283
  • perf(ci): build linux/amd64 images without QEMU in github-deploy-ondemand by @kyasbal in #1290
  • feat(ci): add Cloud Build check gate workflow compatible with Merge Queue by @kyasbal in #1289
  • feat(vrt): add comparison report, tree HTML viewer, and PR comment formatter by @kyasbal in #1284
  • feat(ci,vrt): add VRT CLI, Cloud Build triggers, and sticky PR comment workflow by @kyasbal in #1285
  • feat(mcp,web): add manifestExcerpts and co-anchor badge sync to render_timelines by @kyasbal in #1257
  • feat(ci): cancel superseded Cloud Build PR runs automatically by @kyasbal in #1291
  • fix(ci): harden JSON and nanosecond timestamp parsing in cancel-superseded script by @kyasbal in #1292
  • feat(codequality,agents): add declarative Gemini Decisions engine and Go semantic quality rules by @kyasbal in #1287
  • fix(codequality): clear inherited CODEQUALITY_* env vars in TestHookScripts by @kyasbal in #1294
  • feat(codequality,agents): add TypeScript semantic quality rules via Compiler API by @kyasbal in #1293
  • feat(codequality,test): introduce testing.Short() convention with no-short-skip guardrail by @kyasbal in #1295
  • refactor(mcp): reuse shared normalization for render_timelines maxNodes by @Ackberry in #1229
  • feat(codequality,qa): reorganize verification into make qa-[-] architecture by @kyasbal in #1297

Maintenance 🧹

  • chore(agent): add Go multiline string and Angular template @let rules by @kyasbal in #1246

Full Changelog: v0.61.1...v0.62.0