Repository navigation
test(obs): prove the collector PII allowlist drops a non-allowlisted attribute (#668) - #848
Merged
Merged
Conversation
3 tasks
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #668
What
Adds
scripts/otel-pii-allowlist-probe.sh, a behavioural probe of the collector'stransform/pii_allowlist: run the collector's live ConfigMap in the pinned contrib image (only the exporters swapped fordebug), send one span carrying[email protected]plus the allowlisted controler.action, assert the export keeps the control and drops the probe. Result + date recorded incollector_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_leakand its value never left the collector. Deployed side verified read-only first: livekeep_keysset-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-9ed2e764acdconMac· 2026-11-08T11:41:44Zmainis green with this change on it — merge SHAbc6f6163; its ownrust run was cancelled by the next merge (concurrency), so the proof is the
later head
7d05532e(verified ancestor viagit merge-base --is-ancestor), whose rust run went green after the CDN reruns(run 42473949909). The two e2e legs that flaked on the CDN were rerun
green on this SHA before that:
imagesbuilt — the rust/ path in the diff triggered the build; firstattempt failed on the GitHub release-CDN 504s, rerun green on
bc6f6163:deploy— nothing in this diff ships in an image (a probe script, atest doc comment, a skill reference), so no deploy was owed on this SHA;
the deploy that included it (on descendant
7d05532e) succeeded and theci-namespace pods rolled to new image digests (read via
kubectl --context er-dev-ro):failures on this SHA were the GitHub release-CDN 504 outage hitting the
sccache download in setup steps (three attempts, logged 504s), not the
diff — rerun green after recovery. Filed ci: no retry around GitHub release CDN downloads — a partial 504 outage fails the whole rust gate #849 for the missing retry
around those downloads:
Donethrough the automation (GraphQLprojectItems: Done), and Prove the collector's PII allowlist actually drops a non-allowlisted attribute #668 closed COMPLETED on merge:OpenObserve-Parquet read-back the ticket's probe describes literally is
covered by the port-forward blocker tracked in skill: document the EKS 401-despite-healthy-IAM failure mode in aws-account-operations #846/The request span starts a new trace instead of continuing the caller's #660:
scripts/otel-pii-allowlist-probe.shwith its method and limits incollector_allowlist.rs's doc comment; the port-forward RBAC gap wentinto skill: document the EKS 401-despite-healthy-IAM failure mode in aws-account-operations #846's scope:
Specific to this change
Context — plan, discoveries, measurements, files
Plan
collector_allowlist.rs's doc comment. ✅make check(the doc-comment change is in a.rstest file).Discoveries
pods/portforward. Substituted: live ConfigMap run locally withdebugas 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.connection refusedat 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 logswrites container stderr to stderr —2>&1 > filecaptures nothing. Fixed mid-probe; the script uses> file 2>&1.Measurements
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).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.