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
[Context]: add IContextValidator/SizeBoundaryValidator for inbound headers #15
Add IContextValidator to vet inbound context/header values before the manager rebuilds a context, plus a SizeBoundaryValidator that rejects empty, oversized, or malformed values.
Goal
Make header/queue ingestion safe — validate on entry, treat as untrusted surface, and never trust that headers exist.
Problem
Propagation examples accept inbound headers and immediately rebuild context. Spoofed/oversized/garbled values flow straight into BeginContext. There is no uniform validation gate, so each consumer re-implements the check (see 1.1 spoofing risk and 1.8).
Scope & Results
IContextValidator abstraction with Validate(..., out errors).
SizeBoundaryValidator: empty, over-limit, and malformed-value detection.
Optional key-set allow-list for inbound headers/keys.
Wire into the middleware/queue examples so invalid context is rejected, not started.
Activity