You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(telemetry): close tuple privacy bypass, reject array headers in TS propagation, and validate digests in TRACE finalization #101
In agentrust-io/agentrust-telemetry on main, four privacy, propagation, and TRACE-finalization parity bugs exist across the Python (src/agentrust_telemetry/) and TypeScript (packages/typescript/src/) SDKs:
In src/agentrust_telemetry/validation.py:67-76, _prohibited_paths walks dict and list values but does not walk tuple values (or reject tuple in _ensure_json_compatible), allowing prohibited keys (prompt, messages, api_key, authorization, etc.) nested inside a Python tuple to bypass the metadata-only privacy check.
In packages/typescript/src/propagation.ts:23-24, value() silently selects found[0] when a carrier header is an array (["attacker-run-id", "trusted-run-id"]), whereas Python extract_context (src/agentrust_telemetry/propagation.py:74-86) rejects non-string header values with PropagationError.
TypeScript trace-finalizer.ts coerces non-string bundle_digest fields via String(...) and neither SDK validates digest format before signing:
In packages/typescript/src/trace-finalizer.ts:81-82, String(value!.algorithm) and String(value!.value) coerce non-string or undefined values into "undefined:undefined" instead of rejecting malformed bundle_digest objects, and TraceConfiguration.build_digest in both Python (src/agentrust_telemetry/trace_adapter.py) and TypeScript (trace-finalizer.ts) is only checked for truthiness rather than ^sha(256:[0-9a-f]{64}|384:[0-9a-f]{96})$.
Duplicate JSON keys are accepted when loading JSON files in validation.py and conformance/runner/validate.py:
src/agentrust_telemetry/validation.py and conformance/runner/validate.py use plain json.loads(...) without rejecting duplicate object keys.
Expected behavior
Traverse or reject tuple containers in src/agentrust_telemetry/validation.py so prohibited keys inside tuples can never bypass the metadata-only privacy check.
Reject array-valued and non-string carrier headers in TypeScript extractContext (packages/typescript/src/propagation.ts) with PropagationError, matching Python extract_context.
Validate build_digest and bundle_digest (algorithm and value) against canonical sha256 / sha384 lowercase hex digest syntax in both Python trace_adapter.py and TypeScript trace-finalizer.ts before signing.
Reject duplicate JSON keys when parsing JSON documents in validation.py.
Activity
github-actions commentedon Oct 23, 2026
🟡 Contributor Check: MEDIUM
Automated check by AgenTrust Contributor Check.
fix(telemetry): close tuple privacy bypass, reject array AgenTrust he…
fix(telemetry): close tuple privacy bypass, reject array AgenTrust he…
fix(telemetry): close tuple privacy bypass, reject array AgenTrust he…