Repository navigation
feat(rules): tracing-fields keeps the fields standard.toml denies out of telemetry - #34
Draft
PiquelChips wants to merge 1 commit into
Draft
PiquelChips wants to merge 1 commit into
PiquelChips wants to merge 1 commit into
Conversation
PiquelChips
force-pushed
the
feat/rule-duplicate-items
branch
2 times, most recently
from
November 22, 2026 22:20
25d3636 to
bc0c299
Compare
…emetry When denied-fields lists names, no tracing event or span macro outside tests records a field whose name, or a dotted part of it, is one of them.
PiquelChips
force-pushed
the
feat/rule-tracing-fields
branch
from
November 22, 2026 22:20
85578d4 to
58499cb
Compare
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.
What and why
sourceorigin never records secrets, query strings, headers, paths, client IPs or user agents in telemetry (SO13). Today one runtime test (
telemetry_exports_no_secret_of_a_sign_in_and_code_exchange) and the collector's deletions enforce it, but only for the flows the test drives. The inventory adds a source check.tracing-fieldsfails on atracingevent or span macro outside tests that records a field whose name, or a dotted part of it,standard.tomldenies:trace!…error!,event!,span!and the*_span!forms, with or withouttracing::.name = value, the shorthand%name/?name, and dotted names such ashttp.user_agent. The message literal and its format arguments are not fields, nor aretarget:,parent:or a level.denied-fields, nothing is checked. A field calledpathis personal data in sourceorigin's requests, but a file path in piqueld.#[instrument], which records every argument it doesn't skip. None of the three repositories uses it; a follow-up can read it if one starts.Stacked on #33.
Testing
just check-changed feat/rule-duplicate-itemspasses.token = %token,?request.pathandwarn!(target: "audit", %token)fail. These pass: atokenonly in the message's format arguments, a span with other fields, and a#[test]. Withoutdenied-fields, nothing is checked.Measured on
git archivecopies of each repository'sorigin/main(since removed), with the inventory's list (token,secret,cookie,path,query,user_agent,ip):e99cc0e6ba17710f52%pathof a JSON error and the database file,secret = %nameof a secret's name; not personal data, and piqueld doesn't opt in07e8ba44Checklist
just readme, anddenied-fieldsin the configuration example.)Rulevariant andstandard.tomlkey; no xtask change.)just check-changedpasses.Note
Written by Claude Opus 5.5 in Claude Code (via T3 Code)