Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions confidential-data-hub/hub/protos/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ message SecureMountResponse {
string mount_path = 1;
}

message GetPublicKeyRequest {
string KeyId = 1;
}

message GetPublicKeyResponse {
bytes PublicKeyPem = 1;
}

service SealedSecretService {
rpc UnsealSecret(UnsealSecretInput) returns (UnsealSecretOutput) {};
}
Expand All @@ -54,3 +62,7 @@ service KeyProviderService {
service SecureMountService {
rpc SecureMount(SecureMountRequest) returns (SecureMountResponse) {};
}

service GetPublicKeyService {
rpc GetPublicKey(GetPublicKeyRequest) returns (GetPublicKeyResponse) {};
}
3 changes: 3 additions & 0 deletions confidential-data-hub/hub/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ pub trait DataHub {
async fn get_resource(&self, uri: String) -> Result<Vec<u8>>;

async fn secure_mount(&self, storage: Storage) -> Result<String>;

/// Get the public key due to the `key_id`.
async fn get_public_key(&self, key_id: &str) -> Result<Vec<u8>>;
}
Loading