Skip to content

kind probe red since 2026-11-10: KeyError 'token_hash' after the credential-omission fix #1106

Closed

Description

@athvin

kind has failed every scheduled run since 2026-11-10 — green through
11-09, so seven consecutive red days. Not a required check, which is why it
went unnoticed.

Rescoped. This issue originally covered drift (core) as well. That half
is diagnosed and now owned by #1107: the er-alerts SNS email
subscription has never been confirmed, AWS deleted the pending subscription
about three days after the alarms were created, and
tf-drift-classify.sh correctly reported it as real drift. The drift gate
was working; only kind is actually broken.

Diagnosis — a sixth cause

kind probe (executor e2e) fails; kind probe assertions (fixtures) passes.

check_kind: phase 1: the green path
KeyError: 'token_hash'

scripts/check_kind.sh:293 asserts

assert t["token_hash"] is None, "the fallback token hash is nulled at finish"

against GET /v1/orgs/{org}/datasets/{ds}/jobs/{id}/tasks. But 7cad4ad
("fix(api): omit internal credentials from public task listings", #1075,
2026-11-09) reprojected that handler through
er_entities::task_instance::TaskInstanceWire, which does not carry
token_hash at all — and added a test asserting "the public task list must
omit the internal token_hash field"
.

So a deliberate security fix removed the field, and the probe still subscripts
it. The dates match exactly: the API change landed 11-09, the probe went red
11-10.

The fix, and why it is not just .get()

Swapping to t.get("token_hash") is None would stop the crash and assert
nothing — the key is now always absent, so the condition can never fail.
That is a guard whose precondition always holds.

The assertion worth having at this layer is the security property the wire
projection now guarantees, end-to-end through a real cluster rather than at the
handler:

assert "token_hash" not in t, "the public task listing must not expose the internal token hash"

That has a real failure mode — re-exposing the field through TaskInstanceWire
— which the Rust test covers at the handler level and this covers against a
live API. The original intent ("nulled at finish") is already covered by
rust/crates/er-server/tests/pg_task_instances.rs.

Reading this job's log

The failure is not at the tail. The probe's log is flooded with repeating
OTLP span export batch failed / BatchSpanProcessor.ExportError against
otel-collector.observability.svc.cluster.local:4318 — expected noise in a
kind cluster with no collector. Grep for check_kind: or KeyError; piping to
tail shows only the noise and makes this look like a telemetry problem.

Verifying a fix

kind.yml's probe is if: github.event_name != 'pull_request', so a pull
request cannot run it. Exercise it on the branch before merging:

gh workflow run kind.yml --ref <branch>

Activity

  1. added
    ci-backlog
    on Nov 17, 2026
  2. changed the title [-]kind red 7 days, drift (core) red 5 days — both unticketed push-only gates[/-] [+]kind probe red since 2026-11-10: KeyError 'token_hash' after the credential-omission fix[/+] on Nov 17, 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

    ci-backlog

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions