Skip to content

test(obs): prove the collector PII allowlist drops a non-allowlisted attribute (#668) - #848

Merged
athvin merged 4 commits into
mainfrom
issue/668-pii-allowlist-probe
Nov 8, 2026
Merged

athvin merged 4 commits into
mainfrom
issue/668-pii-allowlist-probe

Conversation

@athvin

@athvin athvin commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Closes #668

🚧 Claimed by an agent session — 2026-11-08T08:32:48Z, session 01a1b892-4cde-7a53-bb3e-9ed2e764acdc on Mac.
The claim is this open draft PR: closing it releases the ticket.

Post-merge is part of this pull request. The ledger below records whether
the follow-up work actually happened. /land-pr closes it.

What

Adds scripts/otel-pii-allowlist-probe.sh, a behavioural probe of the collector's transform/pii_allowlist: run the collector's live ConfigMap in the pinned contrib image (only the exporters swapped for debug), send one span carrying [email protected] plus the allowlisted control er.action, assert the export keeps the control and drops the probe. Result + date recorded in collector_allowlist.rs's doc comment, per the ticket.

Why

The four existing allowlist tests all READ the config; nothing had ever observed it drop an attribute — and this programme has twice shipped config that looked right and behaved differently (#510's rejected config served by the old pod, #615's nine-where-four dimension bill).

Proof

Probe PASS 2026-11-08: exported span carried only er.action: pii_allowlist_probe; er.probe_leak and its value never left the collector. Deployed side verified read-only first: live keep_keys set-identical to the values file (43/43), pod on the pinned 0.161.0 image, clean startup ("Everything is ready"), no config rejection, openobserve exporter healthy after the co-restart window.

Risk & rollback

Post-merge ledger

Closed by: agent · session 01a1b892-4cde-7a53-bb3e-9ed2e764acdc on Mac · 2026-11-08T11:41:44Z

Specific to this change

Context — plan, discoveries, measurements, files

Plan

  1. Verify the deployed collector's running config read-only (ConfigMap vs values file, pod image, startup logs). ✅
  2. Write the probe script: live config in a local Docker collector, exporters → debug, one span with control + probe attributes. ✅
  3. Run the probe; assert control present / probe absent. ✅ PASS
  4. Record result + date in collector_allowlist.rs's doc comment. ✅
  5. Gate: make check (the doc-comment change is in a .rs test file).

Discoveries

  • The ticket's literal probe path (port-forward to the collector, read OpenObserve Parquet) is blocked by the same read-only RBAC finding as The request span starts a new trace instead of continuing the caller's #660 — no pods/portforward. Substituted: live ConfigMap run locally with debug as the read-back; the transform processor drops before export regardless of exporter, so the behavioural claim carries. Recorded as the honest limit in the doc comment.
  • The collector's log retains ~20 lines; a burst of openobserve connection refused at 18:32–18:33 on 2026-11-07 was the two pods' co-restart window, not an outage — no recurrence in 14h and the endpoints are correctly registered.
  • docker logs writes container stderr to stderr — 2>&1 > file captures nothing. Fixed mid-probe; the script uses > file 2>&1.
  • The deployed keep_keys set is byte-for-set identical to the values file (43/43), so the four config-reading tests and the live processor are pinned to the same list.

Measurements

  • Probe: scripts/otel-pii-allowlist-probe.sh → PASS: control attribute er.action exported (1 sighting(s)); er.probe_leak and its value never left the collector. (2026-11-08, contrib:0.161.0, live ConfigMap from er-dev).
  • ConfigMap keep_keys vs values file: 43 == 43, set-equal (script inline in the transcript).

Files

  • scripts/otel-pii-allowlist-probe.sh — the probe.
  • rust/crates/er-schema/tests/collector_allowlist.rs — doc comment records the result, method, date, and the read-back substitution.

…attribute (#668)

The four collector_allowlist tests all read the config; nothing had ever
observed transform/pii_allowlist drop an attribute. Add
scripts/otel-pii-allowlist-probe.sh, which runs the collector's live
ConfigMap in the pinned contrib image with only the exporters swapped for
debug, sends one span carrying er.probe_leak plus the allowlisted control
er.action, and asserts the export keeps the control and drops the probe.

Probe result 2026-11-08: PASS. Deployed side verified read-only first: live
keep_keys set is identical to the values file (43/43), the pod runs the
pinned 0.161.0 image with a clean startup and no config rejection, and the
openobserve exporter recovered from the pods' co-restart window. Result and
method recorded in collector_allowlist.rs's doc comment, including the
honest substitution (debug exporter standing in for the OpenObserve Parquet,
which laptop port-forward RBAC does not reach).
…sage doc, wording (#668)

pr-review on the branch found the readiness checks used grep -q in a pipe
under pipefail — the SIGPIPE trap detect-paths.sh documents, bitten twice
before — and that the header's documented helm-template input path could not
work as written (multi-doc stream into safe_load). Also: PyYAML prerequisite
guard, KUBECTL_CONTEXT composing with the house ER_DEV_CONTEXT, and the
'byte-identical' claim corrected to what a YAML round-trip actually
preserves. Probe re-run after the fixes: PASS.
@athvin
athvin marked this pull request as ready for review November 8, 2026 09:01
@athvin
athvin merged commit bc6f616 into main Nov 8, 2026
77 of 113 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prove the collector's PII allowlist actually drops a non-allowlisted attribute

2 participants