Commit Graph

61 Commits

Author SHA1 Message Date
fb38352e1b
enhance proto based on new DB capabilities 2025-04-23 03:18:32 +03:00
b5289f1f5b DTPM: upload files as stream and directory support (#2)
archive directory to upload
bincode serialize files to seal and save
zstd compression for tar archive
tests with fixtures

Reviewed-on: #2
Co-authored-by: Noor <noormohammedb@protonmail.com>
Co-committed-by: Noor <noormohammedb@protonmail.com>
2025-04-21 14:40:59 +00:00
3024c00b8e
Update ListAppContractsReq to include as_operator field and uuid 2025-03-22 03:15:07 +05:30
70e83dd0e9
add hostname to VmUpdateReq 2025-03-21 21:32:33 +02:00
a874749fd5
Add Default trait to EnvironmentEntry and ChildProcess structs 2025-03-19 20:30:44 +05:30
5e3d6c2c7c
Refactor dtpm.proto to import common.proto and simplify GetConfig request message 2025-03-19 17:33:27 +05:30
cf0c9a2c0d
Add serde serialization/deserialization attributes to app_proto and general_proto types 2025-03-18 23:51:55 +05:30
e434b70a57
Refactor proto packages and add shared common.proto
seperated non vm related services into general protofile
shared common proto for types like Empty
rename proto packages
top level crate export for convenient imports
2025-03-18 22:58:22 +05:30
be4e41db05
Migrated SNP proto file and its From impls into its snp module and updated build configuration for snp proto 2025-03-17 20:33:01 +05:30
099f0a0488
Add app_name field to AppContract and NewAppReq messages; update AppDeployConfig struct 2025-03-14 09:44:03 +00:00
d6ffc0d4cb
Add ListAllAppContracts RPC to BrainAppCli for super admin commands 2025-03-12 20:11:47 +00:00
a9dcfbe9fe
Add AppNodeFilters and AppNodeListResp messages; implement ListAppNodes and GetOneAppNode RPCs in BrainAppCli 2025-03-12 20:04:15 +00:00
8230e1f831
Rename CreateApp RPC to DeployApp in BrainAppCli and add new fields to AppDeployConfig for hours and private_package 2025-03-12 20:57:26 +05:30
a734b392b7
rename price_per_unit to node_unit_price in AppDeployConfig and update conversion implementations 2025-03-11 17:46:26 +05:30
dc1e2dd0cd
Minor change
new price field in register app node and rename operator_pubkey to operator_wallet
2025-03-08 23:54:48 +00:00
b8f37dec18
Add hratls_pubkey and public_package_mr_enclave fields to NewAppReq, AppDeployConfig and AppContract 2025-03-06 17:38:36 +05:30
aefd292807
Add public_package field to NewAppReq and AppDeployConfig with default serde handling 2025-03-06 16:32:06 +05:30
9ba3bc3186
Add hratls_pubkey to NewAppReq and AppDeployConfig; adjust field indices 2025-03-06 00:59:58 +00:00
a6baa4059d
refactor AppNodeResources fields for clarity and consistency 2025-02-21 10:42:14 +00:00
2507356cae
minor change 2025-02-20 01:37:01 +05:30
54abe74d42
admin pubkey in DelAppReq for authendicate and serde default for AppDeployConfig fields 2025-02-18 20:56:03 +05:30
99c3c83ed3
Rename owner_wallet to admin_pubkey in AppContract and related structures; add price_per_unit and locked_nano fields 2025-02-18 16:28:00 +05:30
e835424049
refactor error handling with thiserror in dtpm module 2025-02-18 13:59:14 +05:30
987bbfd8ec
minor fix
default for owner_wallet in AppDeployConfig
2025-02-17 12:43:04 +05:30
ee592c71d6
Refactor proto file structure to move brain and dtpm modules under sgx for better organization 2025-02-13 17:28:09 +05:30
f2bc29149e
Daemon authendication
Refactor DaemonMessageApp to use DaemonAuth for authentication and update related RPC method
2025-02-11 10:33:46 +00:00
606c0ad395
Rename admin_pubkey to owner_wallet in AppContract and related structures for clarity 2025-02-11 13:20:37 +05:30
65bfa113a4
Rename RegisterNode RPC to RegisterAppNode for consistency in BrainAppDaemon service 2025-02-10 19:03:49 +05:30
fce5788493
Implement From trait for DaemonMessageApp to facilitate conversions from String, NewAppRes, and AppNodeResources 2025-02-07 01:10:12 +05:30
df3a4631dd
Cleanup
Remove unused proto files and related references from the project
2025-02-06 14:57:50 +05:30
21d4747821
Add methods to DtpmConfig for loading configuration from a path and encoding file contents in base64 2025-02-05 17:34:56 +05:30
e9e4f1414a
wip on refactoring dtpm proto and type 2025-02-05 10:13:33 +00:00
7f431e7180
minor fix
fix typo in daemon message
comment out uuid and node_pubkey fields in list contract
2025-02-05 12:02:06 +05:30
42443b8162
Implement From trait for MappedPort to facilitate conversions between tuple and brain::MappedPort 2025-02-04 12:39:46 +00:00
6e7a337709
complete refactor of brain proto format 2025-02-04 16:50:52 +05:30
7c9f66a739
Update daemon.proto to replace container_id with uuid and modify DeleteContainer response type 2025-02-03 17:30:36 +05:30
6e1b185383
Implement From trait for MappedPort to facilitate conversions between tuple and pb_shared::MappedPort 2025-01-30 20:14:33 +05:30
a2899ba5a2
Update proto messages and Rust types for brain integration
removed uuid type and change it a simple string
improved some grpc response type
fix some typos
2025-01-30 18:23:29 +05:30
3e783b11ba
refactor brain message and daemon message
inspiring from snp proto
container contract message
register node message
2025-01-29 17:30:02 +05:30
9650183150
Brain Integration
add BrainSgxDaemon service and update ListContainers RPC in DaemonService
2025-01-28 13:03:41 +05:30
78c8429994
add Default trait implementation to Uuid and Resource structs 2025-01-27 10:48:54 +00:00
73eac4cb04
complete refactor pb types derive prost to impl From trait
changed FileEntry protobuff type into simple one
2025-01-27 15:04:41 +05:30
b162dd99c0
add container_id field to ContainerFilters and update DeleteContainer RPC signature 2025-01-24 20:27:39 +05:30
bb553f08af
add mapped_ports field to NewContainerRes message 2025-01-24 11:49:22 +00:00
d942cede1e
fix missing admin pub key in container 2025-01-24 11:26:44 +00:00
3cb47a47e8
comment out ContainerLog RPC in daemon.proto 2025-01-24 08:42:26 +00:00
f8133925f4
fix: included Uuid type in shared 2025-01-23 19:50:48 +05:30
28497eeb99
Major refactor on types and protofile
detailed daemon container management proto
modularised all protobuff rust types
2025-01-23 16:58:36 +05:30
ff7c5ade50
uuid for container 2025-01-23 14:49:41 +05:30
f4e1159efc
fix fields visibility
Make fields public in Resource struct for accessibility
2025-01-21 12:20:35 +00:00