Skip to content

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

Closed

Description

@athvin

One unverified claim in the PII boundary · release mvp · estimate 0.2 eng-weeks

The collector's transform/pii_allowlist processor is configured to drop every span attribute not on a 43-entry keep_keys list. Nobody has ever observed it drop one.

For a deduplication engine whose payload is names, emails, phones and addresses, that processor is the last thing between a Pii::Never attribute and an exportable store. Four tests cover it and not one of them is behavioural:

test what it actually asserts
every_emitted_span_attribute_survives_the_collector the Rust-side names appear in the YAML list
no_forbidden_attribute_is_allowlisted the Pii::Never names do not
the_ottl_statement_carries_no_comment no # in the OTTL (this one earned its place — a # crashlooped the collector for ~25 minutes)
the_allowlist_runs_before_sampling pipeline ordering in the YAML

All four read the config file. They would all pass against a collector that silently stopped applying the processor.

Why that is not hypothetical here

This exact class of failure has already happened twice in this programme:

Both were config that looked right and behaved differently. The allowlist is the same shape of claim with a worse failure mode, because a leak is silent in the direction nobody is watching.

The probe

One OTLP span sent through a port-forward to the collector carrying a deliberately non-allowlisted attribute, then read back out of the exported Parquet:

  • send a span with an attribute like er.probe_leak = "[email protected]" plus one allowlisted attribute as a positive control — without the control, a span that never arrived at all looks identical to a span whose attribute was dropped
  • confirm the allowlisted attribute is present and er.probe_leak is absent
  • record the result, and the date, in collector_allowlist.rs's doc comment beside the honest limit it already states about SDK-added attributes

Related, same file, also unverified

collector_allowlist.rs's header already admits that busy_ns, idle_ns, thread.*, code.* and target are on the allowlist only because they were found by reading a real exported Parquet file, and that a tracing-opentelemetry bump renaming one will drop it again with no test failing. Re-measure after any bump of those pins.


Identified 2026-11-05 while separating "the code is right" from "the data is the proof". The two cited precedents were both found in live data, not in review.

Activity

  1. added
    mvp
    obs-backlog
    on Nov 6, 2026
  2. self-assigned this
    on Nov 8, 2026
  3. athvin commented on Nov 8, 2026

    @athvin
    OwnerAuthor

    Claimed — working in #848 (draft). Closing that PR releases the claim. Note: the ticket's literal probe path (port-forward to the collector) is blocked by the same read-only RBAC finding as #660 — plan is a local Docker collector running the same config + a read-only verification that the deployed collector loaded it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

mvpobs-backlog

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions