Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 36 additions & 90 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,17 @@ exclude = [
"reference_apps",
]

# edition = "2021"
resolver = "2"
overflow-checks = true

[workspace.package]
edition = "2021"
authors = ["Sentient Enclaves Team <sentient-enclaves-team@sentient.xyz>"]
license = "Apache-2.0"
homepage = "https://github.com/sentient-agi/Sentient-Enclaves-Framework"
repository = "https://github.com/sentient-agi/Sentient-Enclaves-Framework"

[workspace.metadata]
rust-version = "1.80"

[profile.release]
strip = true
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</p>

<p align="center">
<img src="docs/png/banner.png"/>
<img src="docs/png/banner.png" alt="Sentient Enclaves Framework - Confidential Computing Infrastructure Banner"/>
</p>

Welcome to the Sentient Enclaves Framework. The framework provides end-to-end infrastructure for building confidential AI applications using TEEs.
Expand Down
8 changes: 8 additions & 0 deletions fs-monitor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
[package]
name = "fs-monitor"
version = "0.8.2"
authors = ["Sentient Enclaves Team <sentient-enclaves-team@sentient.xyz>"]
edition = "2021"
description = "Real-time inotify events monitoring server for file system changes in AWS Nitro Enclaves"
homepage = "https://github.com/sentient-agi/Sentient-Enclaves-Framework"
repository = "https://github.com/sentient-agi/Sentient-Enclaves-Framework"
license = "Apache-2.0"
keywords = ["filesystem", "monitoring", "tee", "enclave", "inotify"]
categories = ["filesystem", "os::unix-apis", "cryptography"]
publish = false

[dependencies]
inotify = "0.11.0"
Expand Down
10 changes: 10 additions & 0 deletions pf-proxy/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
[package]
name = "pf-proxy"
version = "0.8.2"
authors = ["Sentient Enclaves Team <sentient-enclaves-team@sentient.xyz>"]
edition = "2021"
description = "Transparent vsock proxies for internet-enabled applications in AWS Nitro Enclaves"
homepage = "https://github.com/sentient-agi/Sentient-Enclaves-Framework"
repository = "https://github.com/sentient-agi/Sentient-Enclaves-Framework"
license = "Apache-2.0"
keywords = ["proxy", "vsock", "tee", "enclave", "aws-nitro"]
categories = ["network-programming", "cryptography"]
publish = false

[[bin]]
name = "vsock-to-ip"
Expand Down Expand Up @@ -30,6 +38,8 @@ futures = "0.3"
thiserror = "1.0.57"
tokio = { version = "1.44", features = ["full"] }
tokio-vsock = "0.5.0"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

[target.'cfg(target_os = "linux")'.dependencies]
libc = "0.2"
5 changes: 3 additions & 2 deletions pf-proxy/src/addr_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use std::fmt::Debug;
use std::io;
use std::net::SocketAddr;
use tokio::net::TcpStream;
use tracing::warn;

pub trait AddrInfo: Debug {
fn local_addr(&self) -> Result<SocketAddr, io::Error>;
Expand Down Expand Up @@ -37,7 +38,7 @@ impl AddrInfo for TcpStream {

#[cfg(not(target_os = "linux"))]
fn get_original_dst(&self) -> Option<SocketAddr> {
println!("Non Linux system, no support for SO_ORIGINAL_DST");
warn!("Non-Linux system detected, SO_ORIGINAL_DST not supported");
None
}
}
Expand All @@ -61,7 +62,7 @@ mod linux {
);
if ret != 0 {
let e = io::Error::last_os_error();
println!("failed to read SO_ORIGINAL_DST: {:?}", e);
warn!(error = ?e, "Failed to read SO_ORIGINAL_DST");
return Err(e);
}

Expand Down
Loading