Skip to content

Commit fc51424

Browse files
authored
Merge pull request #191 from Dstack-TEE/rm-mr-kp
Remove the unused mr_key_provider
2 parents 79aaaca + 0d512f0 commit fc51424

File tree

12 files changed

+0
-18
lines changed

12 files changed

+0
-18
lines changed

guest-agent/rpc/proto/agent_rpc.proto

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,6 @@ message AppInfo {
189189
bytes mr_aggregated = 9;
190190
// OS Image hash
191191
bytes os_image_hash = 10;
192-
// MR Key Provider
193-
bytes mr_key_provider = 11;
194192
// Key provider info
195193
string key_provider_info = 12;
196194
// Compose hash

guest-agent/src/http_routes.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ async fn index(state: &State<AppState>) -> Result<RawHtml<String>, String> {
3939
device_id,
4040
mr_aggregated: _,
4141
os_image_hash: _,
42-
mr_key_provider: _,
4342
key_provider_info,
4443
compose_hash: _,
4544
tcb_info,

guest-agent/src/rpc_service.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ pub async fn get_info(state: &AppState, external: bool) -> Result<AppInfo> {
120120
"rtmr3": hex::encode(app_info.rtmr3),
121121
"mr_aggregated": hex::encode(app_info.mr_aggregated),
122122
"os_image_hash": hex::encode(&app_info.os_image_hash),
123-
"mr_key_provider": hex::encode(app_info.mr_key_provider),
124123
"compose_hash": hex::encode(&app_info.compose_hash),
125124
"device_id": hex::encode(&app_info.device_id),
126125
"event_log": event_log,
@@ -140,7 +139,6 @@ pub async fn get_info(state: &AppState, external: bool) -> Result<AppInfo> {
140139
device_id: app_info.device_id,
141140
mr_aggregated: app_info.mr_aggregated.to_vec(),
142141
os_image_hash: app_info.os_image_hash.clone(),
143-
mr_key_provider: app_info.mr_key_provider.to_vec(),
144142
key_provider_info: String::from_utf8(app_info.key_provider_info).unwrap_or_default(),
145143
compose_hash: app_info.compose_hash.clone(),
146144
app_cert: state.inner.demo_cert.clone(),

kms/src/main_service.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,6 @@ impl RpcHandler {
428428
mr_aggregated: app_info.mr_aggregated.to_vec(),
429429
os_image_hash: os_image_hash.clone(),
430430
mr_system: app_info.mr_system.to_vec(),
431-
mr_key_provider: app_info.mr_key_provider.to_vec(),
432431
app_id: app_info.app_id,
433432
compose_hash: app_info.compose_hash,
434433
instance_id: app_info.instance_id,

kms/src/main_service/upgrade_authority.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ pub(crate) struct BootInfo {
2323
#[serde(with = "hex_bytes")]
2424
pub mr_system: Vec<u8>,
2525
#[serde(with = "hex_bytes")]
26-
pub mr_key_provider: Vec<u8>,
27-
#[serde(with = "hex_bytes")]
2826
pub app_id: Vec<u8>,
2927
#[serde(with = "hex_bytes")]
3028
pub compose_hash: Vec<u8>,

ra-tls/src/attestation.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ impl<T> Attestation<T> {
207207
os_image_hash: self.find_event_payload("os-image-hash").unwrap_or_default(),
208208
mr_system,
209209
mr_aggregated,
210-
mr_key_provider,
211210
key_provider_info,
212211
})
213212
}
@@ -414,9 +413,6 @@ pub struct AppInfo {
414413
/// Measurement of the app image
415414
#[serde(with = "hex_bytes")]
416415
pub os_image_hash: Vec<u8>,
417-
/// Measurement of the key provider
418-
#[serde(with = "hex_bytes")]
419-
pub mr_key_provider: [u8; 32],
420416
/// Key provider info
421417
#[serde(with = "hex_bytes")]
422418
pub key_provider_info: Vec<u8>,

sdk/curl/api-tappd.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ curl --unix-socket /var/run/tappd.sock http://localhost/prpc/Tappd.Info
194194
"device_id": "<hex-encoded-device-id>",
195195
"mr_aggregated": "<hex-encoded-mr-aggregated>",
196196
"os_image_hash": "<hex-encoded-os-image-hash>",
197-
"mr_key_provider": "<hex-encoded-mr-key-provider>",
198197
"key_provider_info": "<key-provider-info-string>",
199198
"compose_hash": "<hex-encoded-compose-hash>"
200199
}

sdk/curl/api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ curl --unix-socket /var/run/dstack.sock http://dstack/Info
159159
"device_id": "<hex-encoded-device-id>",
160160
"mr_aggregated": "<hex-encoded-mr-aggregated>",
161161
"os_image_hash": "<hex-encoded-os-image-hash>",
162-
"mr_key_provider": "<hex-encoded-mr-key-provider>",
163162
"key_provider_info": "<key-provider-info-string>",
164163
"compose_hash": "<hex-encoded-compose-hash>"
165164
}

sdk/go/dstack/client.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ type InfoResponse struct {
6868
PublicSysinfo bool `json:"public_sysinfo"`
6969
DeviceID string `json:"device_id"`
7070
MrAggregated string `json:"mr_aggregated"`
71-
MrKeyProvider string `json:"mr_key_provider"`
7271
KeyProviderInfo string `json:"key_provider_info"`
7372
OsImageHash string `json:"os_image_hash"`
7473
ComposeHash string `json:"compose_hash"`

sdk/js/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ export interface InfoResponse {
4747
device_id: string
4848
mr_aggregated: string
4949
os_image_hash: string
50-
mr_key_provider: string
5150
key_provider_info: string
5251
compose_hash: string
5352
}

0 commit comments

Comments
 (0)