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
Commit 8a20212
Browse filesBrowse the repository at this point in the historyBrowse files
feat(observability): correlate HTTP receipts, OCSF and request traces (#5214)
* feat(observability): correlate HTTP receipts, audit records and traces
Closes#5393
Refs #5210
Signed-off-by: Alex Fournier <afournier@nvidia.com>
* fix(observability): narrow receipt validation and simplify tests
Signed-off-by: Alex Fournier <afournier@nvidia.com>
* refactor(observability): preserve per-control HTTP audit records
Correlate original control records at emission with a request-scoped ID and sequence. Remove primary-record aggregation and broad response-head validation while retaining protected receipts and request tracing.
Signed-off-by: Alex Fournier <afournier@nvidia.com>
* fix(observability): preserve HTTP correlation through relay failures
Avoid parsing queries solely for correlation. Carry request attribution through terminal errors and policy reloads, and clear HTTP scope at WebSocket upgrade.
Preserve per-control audit records while reporting bounded stage outcomes and filtering receipt trailers consistently. Remove JSON receipt additions and the unused correlation setter.
Signed-off-by: Alex Fournier <afournier@nvidia.com>
* fix(observability): finish stage results and isolate correlation fixtures
Signed-off-by: Alex Fournier <afournier@nvidia.com>
* fix(observability): report handled middleware stage failures
Signed-off-by: Alex Fournier <afournier@nvidia.com>
* fix(observability): complete proxy request correlation paths
Signed-off-by: Alex Fournier <afournier@nvidia.com>
---------
Signed-off-by: Alex Fournier <afournier@nvidia.com>
Copy file name to clipboardExpand all lines: AGENTS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,7 +153,7 @@ ocsf_emit!(event);
153
153
154
154
-`crate::ocsf_ctx()` returns the process-wide `EventContext`. It is always available (falls back to defaults in tests).
155
155
-`ocsf_emit!()` is non-blocking and cannot panic. It stores the event in a thread-local and emits via `tracing::info!()`.
156
-
- In `openshell-supervisor-network`, emit with `crate::telemetry::egress_emit!` instead, or `crate::telemetry::emit_decision` for the records of one decision, so denied HTTP decisions get a deny span. Clippy rejects `ocsf_emit!` there.
156
+
- In `openshell-supervisor-network`, the inspected request scope automatically correlates all OCSF records at emission, including findings, and uses the request span without creating a denial-only span. Emit through `crate::telemetry::egress_emit!` or `crate::telemetry::emit_decision`; Clippy rejects direct `ocsf_emit!` calls there.
157
157
- The shorthand layer and JSONL layer extract the event from the thread-local. The shorthand format is derived automatically from the builder fields.
158
158
- For security findings, **dual-emit**: one domain event (e.g., `SshActivityBuilder`) AND one `DetectionFindingBuilder` for the same incident.
159
159
- Never log secrets, credentials, or query parameters in OCSF messages. The OCSF JSONL file may be shipped to external systems.
0 commit comments