mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
52 lines
1.4 KiB
Protocol Buffer
52 lines
1.4 KiB
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
package docker.swarmkit.v1;
|
||
|
|
||
|
import "types.proto";
|
||
|
import "gogoproto/gogo.proto";
|
||
|
import "plugin/plugin.proto";
|
||
|
|
||
|
// CA defines the RPC methods for requesting certificates from a CA.
|
||
|
|
||
|
service CA {
|
||
|
rpc GetRootCACertificate(GetRootCACertificateRequest) returns (GetRootCACertificateResponse) {
|
||
|
option (docker.protobuf.plugin.tls_authorization) = { insecure: true };
|
||
|
};
|
||
|
}
|
||
|
|
||
|
service NodeCA {
|
||
|
rpc IssueNodeCertificate(IssueNodeCertificateRequest) returns (IssueNodeCertificateResponse) {
|
||
|
option (docker.protobuf.plugin.tls_authorization) = { insecure: true };
|
||
|
};
|
||
|
rpc NodeCertificateStatus(NodeCertificateStatusRequest) returns (NodeCertificateStatusResponse) {
|
||
|
option (docker.protobuf.plugin.tls_authorization) = { insecure: true };
|
||
|
};
|
||
|
}
|
||
|
|
||
|
message NodeCertificateStatusRequest {
|
||
|
string node_id = 1 [(gogoproto.customname) = "NodeID"];
|
||
|
}
|
||
|
|
||
|
message NodeCertificateStatusResponse {
|
||
|
IssuanceStatus status = 1;
|
||
|
Certificate certificate = 2;
|
||
|
}
|
||
|
|
||
|
message IssueNodeCertificateRequest {
|
||
|
NodeRole role = 1;
|
||
|
bytes csr = 2 [(gogoproto.customname) = "CSR"];
|
||
|
// Secret represents a user-provided string that is necessary for new
|
||
|
// nodes to join the cluster
|
||
|
string secret = 3;
|
||
|
}
|
||
|
|
||
|
message IssueNodeCertificateResponse {
|
||
|
string node_id = 1 [(gogoproto.customname) = "NodeID"];
|
||
|
}
|
||
|
|
||
|
message GetRootCACertificateRequest {}
|
||
|
|
||
|
message GetRootCACertificateResponse {
|
||
|
bytes certificate = 1;
|
||
|
}
|