Files
cairnobs/hack/windows-fixture
jcoffey-dev b7f99b49f2 Take grpc to 1.83.2 across the nine modules that carry it
GHSA-2v4p-qf9q-27wj is a panic in gRPC-Go's xDS routing interceptor: a
request arriving with neither `:authority` nor `Host` indexes an empty
slice, the per-RPC goroutine does not recover, and the process dies.
High, and nine alerts, because nine go.mod files pin the same version --
eight directly, terraform indirectly.

Nothing here was reachable. The interceptor is installed by
`xds.NewGRPCServer`, which this repo never calls: the one production
server is `grpc.NewServer(grpc.Creds(...))` in ingest/internal/grpcserver
and the only other is a plain one in a searchclient test. That is also
why security-scan has been green throughout -- govulncheck reports on
reachability and found nothing on 1.83.1, while Dependabot reports on
version ranges and found nine. Both were right.

Taken anyway: it is a patch release, and the next advisory in this
dependency may well land somewhere we do reach.

`go mod tidy` carried the indirect requirements grpc 1.83.2 asks for --
x/net, x/text, x/sys and friends. No CI job builds or tests Go here, so
all nine modules were built locally and api, ingest and enterprise
tested with -count=1, since a cached pass would not have exercised the
new version.

The dependabot.yml is the other half. There was no config, so nothing
opened a PR against any of this. Go majors stay out of the group, being
import path changes rather than bumps.
2026-09-10 09:01:27 -07:00
..
2026-08-21 20:53:32 -07:00

windows-fixture

Sends synthetic Windows Event Log-shaped PushBatchRequests directly to ingest's gRPC endpoint, bypassing the actual Windows agent entirely.

What this does and doesn't test

Tests: can the pipeline (ingest → ClickHouse → search → api → web) correctly handle Windows-shaped data — the winevt.* attributes, the record_id join between SQL and full-text search, Windows severity levels mapping onto the right column values? This is exactly what's automatable without a Windows host, and it's genuinely exercised: five realistic, well-known Windows events (failed/successful logon, a service state change, an application crash, an unexpected reboot) with real EventIDs and providers.

Does not test: whether the real Windows agent's EvtSubscribe/ETW integration actually works, whether Windows service registration succeeds, whether ETW session creation/provider enabling works. Those are fundamentally different questions — they need a real or virtualized Windows host, and nothing here pretends otherwise. See /docs/phase-1-runbook.md for exactly which is which.

Running

Requires the docker-compose stack up (ingest reachable, dev certs generated):

cd hack/windows-fixture
go run . --count 5
sent 5 synthetic Windows-shaped records, ingest accepted 5
  [SEVERITY_WARN] An account failed to log on. (event_id=4625 provider=Microsoft-Windows-Security-Auditing)
  ...

Then confirm both query paths see it:

curl -s -X POST http://localhost:8080/query -H 'Content-Type: application/json' \
  -d '{"query": "SELECT host, severity, message, attributes['"'"'winevt.event_id'"'"'] AS event_id FROM logs WHERE host = '"'"'WIN-FIXTURE-01'"'"' ORDER BY timestamp DESC"}'

curl -s -X POST http://localhost:8080/query -H 'Content-Type: application/json' \
  -d '{"query": "notepad"}'

Flags: --addr (default localhost:4317), --ca/--cert/--key (default to ../dev-certs/out/{ca,client,client-key}.pem), --count (default 5, cycles through the fixed event list if higher).