Skip to content

Commit 51aeffc

Browse files
authored
feat(ocsf): create openshell-ocsf crate — standalone OCSF event types, formatters, and tracing layers (#489)
feat(ocsf): create openshell-ocsf crate with OCSF v1.7.0 event types, formatters, and tracing layers
1 parent dac6cd9 commit 51aeffc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+20740
-0
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ python/openshell/_proto/*_pb2.pyi linguist-generated
88

99
# Generated Rust protobuf code (excludes hand-written mod.rs)
1010
crates/openshell-core/src/proto/openshell.*.rs linguist-generated
11+
12+
# Vendored OCSF schemas fetched from schema.ocsf.io
13+
crates/openshell-ocsf/schemas/** linguist-generated

Cargo.lock

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/openshell-ocsf/Cargo.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
[package]
5+
name = "openshell-ocsf"
6+
description = "OCSF v1.7.0 event types, formatters, and tracing layers for OpenShell sandbox logging"
7+
version.workspace = true
8+
edition.workspace = true
9+
rust-version.workspace = true
10+
license.workspace = true
11+
repository.workspace = true
12+
13+
[dependencies]
14+
chrono = { version = "0.4", features = ["serde"] }
15+
serde = { workspace = true }
16+
serde_json = { workspace = true }
17+
serde_repr = "0.1"
18+
tracing = { workspace = true }
19+
tracing-subscriber = { workspace = true }
20+
21+
[dev-dependencies]
22+
tracing-subscriber = { workspace = true, features = ["env-filter", "json"] }
23+
24+
[lints]
25+
workspace = true

crates/openshell-ocsf/schemas/ocsf/README.md

Lines changed: 53 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/openshell-ocsf/schemas/ocsf/v1.7.0/VERSION

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)