Skip to content

Commit e751ef7

Browse files
committed
Add a hook to verify the regions in a TEE. It's not a trigger because that would stream results
1 parent 3b32049 commit e751ef7

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ syntax = "proto3";
33
package capabilities.compute.confidentialworkflow.v1alpha;
44

55
import "tools/generator/v1alpha/cre_metadata.proto";
6+
import "google/protobuf/empty.proto";
67

78
message SecretIdentifier {
89
string key = 1;
@@ -31,6 +32,8 @@ message WorkflowExecution {
3132
// org_id is the organization identifier for the workflow owner.
3233
// Used by the enclave when fetching secrets from VaultDON with org-based ownership.
3334
string org_id = 7;
35+
// regions that the workflow is allowed to run in.
36+
repeated string regions = 8;
3437
}
3538

3639
// ConfidentialWorkflowRequest is the input provided to the confidential workflows capability.
@@ -46,11 +49,16 @@ message ConfidentialWorkflowResponse {
4649
bytes execution_result = 1;
4750
}
4851

52+
message VerifyRegionsResponse {
53+
repeated string regions = 1;
54+
}
55+
4956
service Client {
5057
option (tools.generator.v1alpha.capability) = {
5158
mode: MODE_DON
5259
capability_id: "confidential-workflows@1.0.0-alpha"
5360
};
5461

5562
rpc Execute(ConfidentialWorkflowRequest) returns (ConfidentialWorkflowResponse);
63+
rpc GetRegions(com.google.protobuf.Empty) returns (VerifyRegionsResponse);
5664
}

cre/go/installer/pkg/embedded_gen.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)