Skip to content

Commit

Permalink
Inspect public_logs and public_sysinfo option in Worker.Info
Browse files Browse the repository at this point in the history
  • Loading branch information
Leechael committed Dec 23, 2024
1 parent 19f1704 commit 193f5a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tappd/rpc/proto/tappd_rpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions tappd/src/rpc_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
}

Expand Down

0 comments on commit 193f5a6

Please sign in to comment.