The existing comments did not match the service definition (they look like copy paste from another service). I also added a little bit more comments for the fields in the request and response. Signed-off-by: Tomasz Zurkowski <zurkowski@google.com> Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
25 lines
677 B
Protocol Buffer
25 lines
677 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package securityapi;
|
|
|
|
option go_package = "github.com/talos-systems/talos/pkg/machinery/api/security";
|
|
|
|
// The security service definition.
|
|
service SecurityService {
|
|
rpc Certificate(CertificateRequest) returns (CertificateResponse);
|
|
}
|
|
|
|
// The request message containing the certificate signing request.
|
|
message CertificateRequest {
|
|
// Certificate Signing Request in PEM format.
|
|
bytes csr = 1;
|
|
}
|
|
|
|
// The response message containing signed certificate.
|
|
message CertificateResponse {
|
|
// Certificate of the CA that signed the requested certificate in PEM format.
|
|
bytes ca = 1;
|
|
// Signed X.509 requested certificate in PEM format.
|
|
bytes crt = 2;
|
|
}
|