Skip to content

Commit

Permalink
Creating omni-executor worker base structure (#3233)
Browse files Browse the repository at this point in the history
- Creating RPC API and base structure to handle native calls in the omni-executor
- Adding support for email authentication in the omni-executor
- Adding support for AuthToken authentication in the omni-executor
  • Loading branch information
silva-fj authored Jan 28, 2025
1 parent 1bd9f49 commit c5a2018
Show file tree
Hide file tree
Showing 80 changed files with 4,786 additions and 369 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ jobs:
if: needs.set-condition.outputs.rebuild_omni_executor == 'true'
uses: docker/build-push-action@v6
with:
context: tee-worker/omni-executor/
context: .
file: tee-worker/omni-executor/Dockerfile
tags: litentry/omni-executor:latest
target: executor-worker
Expand Down
7 changes: 4 additions & 3 deletions common/primitives/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ serde = { version = "1.0", default-features = false, features = ["derive", "allo
serde_json = { version = "=1.0.133", default-features = false }
strum = { version = "0.26", default-features = false }
strum_macros = { version = "0.26", default-features = false }
webpki = { version = "=0.102.0-alpha.3", git = "https://github.com/rustls/webpki", rev = "da923ed", package = "rustls-webpki", default-features = false, features = ["alloc", "ring"] }
webpki = { version = "=0.102.0-alpha.3", git = "https://github.com/rustls/webpki", rev = "da923ed", package = "rustls-webpki", default-features = false, features = ["alloc", "ring"], optional = true }
x509-cert = { version = "0.1.0", default-features = false, features = ["alloc"] }

frame-support = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2407", default-features = false }
Expand All @@ -34,13 +34,12 @@ litentry-macros = { path = "macros" }
litentry-proc-macros = { path = "proc-macros" }

[features]
default = ["std"]
default = ["std", "webpki"]
std = [
"chrono/std",
"der/std",
"hex/std",
"ring/std",
"webpki/std",
"x509-cert/std",
"serde/std",
"serde_json/std",
Expand All @@ -55,7 +54,9 @@ std = [
"sp-consensus-aura/std",
"pallet-evm/std",
"litentry-hex-utils/std",
"webpki?/std",
]
development = [
"litentry-macros/development",
]
webpki = ["dep:webpki"]
2 changes: 2 additions & 0 deletions common/primitives/core/src/teebag/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ pub use types::*;
mod tcb;
pub use tcb::*;

#[cfg(feature = "webpki")]
mod sgx_verify;
#[cfg(feature = "webpki")]
pub use sgx_verify::*;

mod quoting_enclave;
Expand Down
2 changes: 1 addition & 1 deletion parachain/pallets/teebag/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ sp-io = { workspace = true }
sp-runtime = { workspace = true }
sp-std = { workspace = true }

core-primitives = { workspace = true }
core-primitives = { workspace = true, features = ["webpki"] }

[dev-dependencies]
env_logger = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion tee-worker/common/litentry/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ sgx_tstd = { workspace = true, features = ["net", "thread"], optional = true }

itp-sgx-crypto = { workspace = true }
itp-sgx-runtime-primitives = { workspace = true }
parentchain-primitives = { workspace = true }
parentchain-primitives = { workspace = true, features = ["webpki"] }

[dev-dependencies]
base64 = { workspace = true }
Expand Down
2 changes: 2 additions & 0 deletions tee-worker/omni-executor/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ omni-executor.manifest
omni-executor.manifest.sgx
omni-executor.sig
omni-executor-worker
storage_db
test_storage_db
Loading

0 comments on commit c5a2018

Please sign in to comment.