provide-telemetry
2026-03-29
Security hardening: secret detection, input guards, SecurityConfig, W3C size limits
26 files · 914+ · 193-
SecurityConfig dataclass with attribute and depth limits
2 files changed
config.pyNew SecurityConfig dataclass: max_attr_count, max_attr_value_length, max_depth limits for sanitizationCONFIGURATION.mdConfiguration reference updated with SecurityConfig fields
- SecurityConfig dataclass added to config.py with configurable limits: max_attr_count (max number of attributes per event), max_attr_value_length (truncation threshold), and max_depth (nested object depth limit for sanitization). Wired through the sanitize processor.
harden
behavioral
1 file
config.py
ASIA-prefix AWS key detection and max_depth in PII sanitizer
2 files changed
pii.pyAdded ASIA prefix to AWS temporary credential detection; max_depth enforcement through sanitize processorprocessors.pySanitize processor passes max_depth from SecurityConfig
- AWS key pattern detection in the PII sanitizer extended to cover ASIA-prefixed temporary session credentials (was only detecting AKIA permanent keys). max_depth from SecurityConfig now enforced through the sanitize processor, capping recursive sanitization of nested log event structures.
harden
behavioral
2 files
pii.pyprocessors.py
W3C context protocol size guards
1 file changed
propagation.pySize guards on traceparent and tracestate header extraction to reject oversized values before parsing
- W3C traceparent and tracestate header extraction now rejects values exceeding protocol size limits before parsing. Prevents DoS via oversized context propagation headers.
harden
behavioral
1 file
propagation.py
Input hardening test suite
4 files changed
test_input_hardening.py463-line test suite: input poisoning, secret detection, protocol resilience, depth limit enforcementtest_pii_mutations.py104-line PII mutation tests including ASIA prefix coveragetest_extract_w3c_field_wiring.py85-line W3C field wiring tests for protocol size guard pathstest_hardening_properties.py42-line property tests for hardening invariants
- Added 463-line input hardening test suite covering: input poisoning (malicious log values, oversized payloads), secret detection (AKIA/ASIA AWS keys, generic token patterns), protocol resilience (oversized W3C headers, malformed traceparent), and depth limit enforcement. PII mutation tests kill survivors from ASIA detection. Property tests verify hardening invariants across arbitrary inputs.
qualify
internal
3 files
test_input_hardening.pytest_pii_mutations.pytest_extract_w3c_field_wiring.py
Switch to tag-based releases; remove release-please
5 files changed
release-please.ymlrelease-please workflow removed (tag-based releases used instead).release-please-config.jsonrelease-please config removed.release-please-manifest.jsonrelease-please manifest removedrelease.ymlRelease workflow updated for tag-based triggerci-python.ymlMutation gates depend on quality jobs; fail-fast on quality matrix; broken mutation-pr jobs removed (full gate already runs)
Security dependency upgrades
1 file changed
uv.lockcryptography 46.0.5 → 46.0.6; requests 2.32.5 → 2.33.0