2022-07-05 05:41:31 -04:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package join;
|
|
|
|
|
|
|
|
option go_package = "github.com/edgelesssys/constellation/joinservice/joinproto";
|
|
|
|
|
|
|
|
service API {
|
|
|
|
rpc IssueJoinTicket(IssueJoinTicketRequest) returns (IssueJoinTicketResponse);
|
2022-07-26 04:58:39 -04:00
|
|
|
rpc IssueRejoinTicket(IssueRejoinTicketRequest) returns (IssueRejoinTicketResponse);
|
2022-07-05 05:41:31 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
message IssueJoinTicketRequest {
|
|
|
|
string disk_uuid = 1;
|
2022-07-15 03:33:11 -04:00
|
|
|
bytes certificate_request = 2;
|
2022-07-05 05:41:31 -04:00
|
|
|
bool is_control_plane = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message IssueJoinTicketResponse {
|
|
|
|
bytes state_disk_key = 1;
|
2022-07-26 04:58:39 -04:00
|
|
|
bytes measurement_salt = 2;
|
|
|
|
bytes measurement_secret = 3;
|
2022-07-15 03:33:11 -04:00
|
|
|
bytes kubelet_cert = 4;
|
|
|
|
string api_server_endpoint = 5;
|
|
|
|
string token = 6;
|
|
|
|
string discovery_token_ca_cert_hash = 7;
|
|
|
|
repeated control_plane_cert_or_key control_plane_files = 8;
|
2022-07-18 06:28:02 -04:00
|
|
|
string kubernetes_version = 9;
|
2022-07-11 07:29:22 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
message control_plane_cert_or_key {
|
|
|
|
string name = 1;
|
|
|
|
bytes data = 2;
|
2022-07-05 05:41:31 -04:00
|
|
|
}
|
2022-07-26 04:58:39 -04:00
|
|
|
|
|
|
|
message IssueRejoinTicketRequest {
|
|
|
|
string disk_uuid = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message IssueRejoinTicketResponse {
|
|
|
|
bytes state_disk_key = 1;
|
|
|
|
bytes measurement_secret = 2;
|
|
|
|
}
|