-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Key Provisioning service definition (#4496)
This PR splits Key Provisioning gRPC services in 2: - Orchestrator service that just accepts new encryption keys - Key Provisioning service that can distribute encryption keys - This service will become a part of the Key Privisioning Service implementation Ref #4442
- Loading branch information
Showing
7 changed files
with
124 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# | ||
# Copyright 2023 The Project Oak Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
load("@bazel_skylib//rules:build_test.bzl", "build_test") | ||
load("@rules_proto//proto:defs.bzl", "proto_library") | ||
|
||
package( | ||
default_visibility = ["//visibility:public"], | ||
licenses = ["notice"], | ||
) | ||
|
||
proto_library( | ||
name = "key_provisioning_proto", | ||
srcs = ["key_provisioning.proto"], | ||
deps = [ | ||
"//oak_crypto/proto/v1:crypto_proto", | ||
"//proto/attestation:endorsement_proto", | ||
"//proto/attestation:evidence_proto", | ||
], | ||
) | ||
|
||
build_test( | ||
name = "build_test", | ||
targets = [ | ||
":key_provisioning_proto", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// | ||
// Copyright 2023 The Project Oak Authors | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
syntax = "proto3"; | ||
|
||
package oak.key_provisioning.v1; | ||
|
||
import "oak_crypto/proto/v1/crypto.proto"; | ||
import "proto/attestation/evidence.proto"; | ||
import "proto/attestation/endorsement.proto"; | ||
|
||
message GetGroupKeysRequest { | ||
oak.attestation.v1.Evidence evidence = 1; | ||
oak.attestation.v1.Endorsements endorsements = 2; | ||
} | ||
|
||
message GetGroupKeysResponse { | ||
// Encryption private key that was encrypted with HPKE using the encryption public key provided | ||
// in the endorsed evidence. | ||
oak.crypto.v1.EncryptedRequest encrypted_encryption_key = 1; | ||
} | ||
|
||
// Defines the Key Provisioning Service that distributes keys between enclaves. | ||
service KeyProvisioning { | ||
// Request enclave group keys from for other enclaves as part of Key Provisioning. | ||
rpc GetGroupKeys(GetGroupKeysRequest) returns (GetGroupKeysResponse) {} | ||
} |