asterinas / trustflow-teeapps

TeeApps contain a general framework for developing TEE applications and various application implementations used in federated AI/BI.
Apache License 2.0
12 stars 3 forks source link

How do we develop a new teeapps component? #7

Open bronzeMe opened 8 months ago

bronzeMe commented 8 months ago

If I want to develop a new TeeApps component, from the web frontend to the TeeApps backend, what steps would I approximately need to follow?

zheyang0825 commented 8 months ago

Could you describe your needs in more detail? For example, in what scenarios do you require the addition of new component?

bronzeMe commented 8 months ago

For example, currently, teeapps provides xgb_train component, similarly, we want to add a new train component to support lightgbm

zhongtianq commented 8 months ago

Currently, our access control engine, Capsule Manager, limits the range of available components. Furthermore, the development of new components presents challenges for our users, requiring modifications to multiple protobuf and cpp files. Efforts are underway to streamline this process, and we aim to introduce a simplified version no later than September. Before that, we will support different tee platforms(tdx, csv) first.

bronzeMe commented 8 months ago

We found that this tutorial instructs developers on how to add a new MPC component, but there appears to be no documentation on how to add a TEE component. Could you please clarify what the differences are between adding a TEE component and an MPC component?

zhongtianq commented 8 months ago

The architecture of TEE apps is built on C++ and operates independently of Secretflow, meaning that the implement of its component and the execution process are distinct from applications running on Secretflow. Although the definition of the component is universal.

bronzeMe commented 8 months ago

Got it, so if we want to add a new TEE apps component, what steps would we approximately need to go through, and could you provide a tutorial for this process?

zhongtianq commented 8 months ago

Teeapps needs to obtaining data keys from our access control engine(Capsule Manager), and currently it limits the range of available components. We will remove this restriction in future versions, and then provide a tutorial on how to add apps.

Chrisdehe commented 8 months ago

@bronzeMe Hey,more in-depth communication can be added through technical support WeChat (secretflow02) Good wishes!