Repository navigation
Commit ef9e9ec
committed
fix(ocsf): emit schema-conformant OCSF 1.8 events
Native events failed the official OCSF 1.8.0 validator: HTTP Activity
emitted is_src_dst_assignment_known, sandbox Process Activity events had
no actor, connection_info lacked direction_id, and SSH Activity events
named no endpoint. Schema tests missed these because they checked only
top-level, non-profile attributes.
Add a connection direction enum, require an actor on Process Activity
and an endpoint on SSH Activity at compile time, name the supervisor's
SSH server with svc_name and its socket path, set hostname on domain
endpoints, and make schema validation recurse into nested objects,
reject undefined attributes, and honour declared profiles.
Keep it fixed with a Podman e2e test that validates the supervisor's
real JSONL, schemas compiled into test binaries so archived runs need no
source files, a production-like fallback context for producer tests,
and documented schema update steps. Top-level container stays unchanged
pending a decision on NVIDIA#4283. The schema downgrade is unchanged.
Closes NVIDIA#4283
Signed-off-by: Adel Zaalouk <[email protected]>1 parent b58e24c commit ef9e9ec
28 files changed
Lines changed: 1520 additions & 136 deletions
File tree
- crates
- openshell-ocsf
- schemas/ocsf
- v1.8.0/objects
- src
- builders
- enums
- events
- format
- objects
- validation
- tests
- openshell-sandbox/src
- openshell-supervisor-network/src/policy_dns
- openshell-supervisor-process/src
- e2e/rust
- tests
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
254 | 255 | | |
255 | 256 | | |
256 | 257 | | |
257 | | - | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| 289 | + | |
| 290 | + | |
289 | 291 | | |
290 | 292 | | |
291 | 293 | | |
| |||
0 commit comments