From 193f5a64945851ecf3fe52a457ec3ad7a128b754 Mon Sep 17 00:00:00 2001 From: Leechael Yim Date: Tue, 24 Dec 2024 06:20:14 +0800 Subject: [PATCH] Inspect public_logs and public_sysinfo option in Worker.Info --- tappd/rpc/proto/tappd_rpc.proto | 4 ++++ tappd/src/rpc_service.rs | 2 ++ 2 files changed, 6 insertions(+) diff --git a/tappd/rpc/proto/tappd_rpc.proto b/tappd/rpc/proto/tappd_rpc.proto index 2c62ecb..1bfc4af 100644 --- a/tappd/rpc/proto/tappd_rpc.proto +++ b/tappd/rpc/proto/tappd_rpc.proto @@ -97,6 +97,10 @@ message WorkerInfo { string tcb_info = 4; // App name string app_name = 5; + // Whether the app logs are public + bool public_logs = 6; + // Whether the app sysinfo is public + bool public_sysinfo = 7; } // The response to a WorkerInfo request diff --git a/tappd/src/rpc_service.rs b/tappd/src/rpc_service.rs index 8febb59..e8d0f12 100644 --- a/tappd/src/rpc_service.rs +++ b/tappd/src/rpc_service.rs @@ -182,6 +182,8 @@ impl WorkerRpc for ExternalRpcHandler { instance_id, app_cert: ca.pem_cert.clone(), tcb_info, + public_logs: self.state.config().public_logs, + public_sysinfo: self.state.config().public_sysinfo, }) }