-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #324 from microsoft/user/jirenugo/aks-ee
Adding structures for key service
- Loading branch information
Showing
9 changed files
with
1,038 additions
and
231 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
67 changes: 67 additions & 0 deletions
67
rpc/nodeagent/security/keyvault/key/moc_nodeagent_key.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,67 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the Apache v2.0 license. | ||
|
||
syntax = "proto3"; | ||
option go_package = "github.com/microsoft/moc/rpc/nodeagent/security"; | ||
package moc.nodeagent.security; | ||
|
||
import "google/protobuf/wrappers.proto"; | ||
import "moc_common_common.proto"; | ||
import "moc_common_security.proto"; | ||
import "google/protobuf/timestamp.proto"; | ||
|
||
|
||
message KeyRequest { | ||
repeated Key Keys = 1; | ||
Operation OperationType = 2; | ||
} | ||
|
||
message KeyResponse { | ||
repeated Key Keys = 1; | ||
google.protobuf.BoolValue Result = 2; | ||
string Error = 3; | ||
} | ||
|
||
message KeyOperationRequest { | ||
Key key = 1; | ||
string Data = 2 [(sensitive) = true]; | ||
Algorithm algorithm = 3; | ||
SignVerifyParams SignVerifyParams = 4; | ||
ProviderAccessOperation OperationType = 5; | ||
} | ||
|
||
message KeyOperationResponse { | ||
string Data = 1 [(sensitive) = true]; | ||
google.protobuf.BoolValue Result = 2; | ||
string Error = 3; | ||
Key key = 4; | ||
} | ||
|
||
message Key { | ||
string name = 1; | ||
string id = 2; | ||
string locationName = 3; | ||
// Public Key Value | ||
bytes publicKey = 4 [(sensitive) = true]; | ||
JsonWebKeyType type = 5; | ||
string vaultName = 6; | ||
Status status = 7; | ||
KeySize size = 8; | ||
JsonWebKeyCurveName curve = 9; | ||
repeated KeyOperation keyOps = 10; | ||
Tags tags = 11; | ||
Entity entity = 12; | ||
|
||
int64 keyRotationFrequencyInSeconds = 13; | ||
uint32 keyVersion = 14; | ||
google.protobuf.Timestamp creationTime = 15; | ||
|
||
// Private Key Value and wrapping information | ||
bytes privateKey = 16 [(sensitive) = true]; | ||
PrivateKeyWrappingInfo privateKeyWrappingInfo = 17; | ||
} | ||
|
||
service KeyAgent { | ||
rpc Invoke(KeyRequest) returns (KeyResponse) {} | ||
rpc Operate(KeyOperationRequest) returns (KeyOperationResponse) {} | ||
} |
Oops, something went wrong.