-
Notifications
You must be signed in to change notification settings - Fork 53
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 #198 from algamaes/algamaes/add_tls_between_mochos…
…tagent_and_mocguestagent Enable TLS communication between mochostagent and mocguestagent
- Loading branch information
Showing
15 changed files
with
1,592 additions
and
543 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
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
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
25 changes: 25 additions & 0 deletions
25
rpc/mocguestagent/admin/health/moc_mocguestagent_health.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,25 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the Apache v2.0 license. | ||
|
||
syntax = "proto3"; | ||
option go_package = "github.com/microsoft/moc/rpc/mocguestagent/admin"; | ||
package moc.mocguestagent.admin; | ||
|
||
import "google/protobuf/wrappers.proto"; | ||
import "moc_common_common.proto"; | ||
|
||
message HealthRequest{ | ||
uint32 timeoutSeconds = 1; | ||
} | ||
|
||
message HealthResponse { | ||
google.protobuf.BoolValue Result = 1; | ||
string Error = 2; | ||
HealthState State = 3; | ||
google.protobuf.BoolValue CertificateNeedsRenewal = 4; | ||
} | ||
|
||
service HealthAgent { | ||
rpc CheckHealth(HealthRequest) returns (HealthResponse) {} | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
rpc/mocguestagent/security/certificate/moc_mocguestagent_certificate.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,53 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the Apache v2.0 license. | ||
|
||
syntax = "proto3"; | ||
option go_package = "github.com/microsoft/moc/rpc/mocguestagent/security"; | ||
package moc.mocguestagent.security; | ||
import "google/protobuf/wrappers.proto"; | ||
import "google/protobuf/empty.proto"; | ||
import "moc_common_common.proto"; | ||
|
||
message CertificateRequest { | ||
repeated Certificate Certificates = 1; | ||
} | ||
|
||
message CertificateResponse { | ||
google.protobuf.BoolValue Result = 1; | ||
string Error = 2; | ||
} | ||
|
||
message Certificate { | ||
string name = 1; | ||
string id = 2; | ||
int64 notBefore = 3; | ||
int64 notAfter = 4; | ||
string certificate = 5 [(sensitive) = true]; | ||
Status status = 6; | ||
Entity entity = 7; | ||
Tags tags = 8; | ||
} | ||
|
||
message CSRRequest { | ||
repeated CertificateSigningRequest CSRs = 1; | ||
} | ||
|
||
message CertificateSigningRequest { | ||
string name = 1; | ||
string csr = 2 [(sensitive) = true]; | ||
string oldCertificate = 3 [(sensitive) = true]; | ||
Status status = 4; | ||
string caName = 5; | ||
int64 validity = 6; | ||
} | ||
|
||
message RenewCSRResponse { | ||
CertificateSigningRequest csr = 1; | ||
google.protobuf.BoolValue Result = 2; | ||
string Error = 3; | ||
} | ||
|
||
service CertificateAgent { | ||
rpc GetRenewCSR(google.protobuf.Empty) returns (RenewCSRResponse) {} | ||
rpc RotateCertificate(CertificateRequest) returns (CertificateResponse) {} | ||
} |
Oops, something went wrong.