2023-03-15 19:00:52 +03:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
2024-01-08 20:24:52 +03:00
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
2023-03-15 19:00:52 +03:00
|
|
|
|
2016-08-19 18:03:53 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2018-06-04 17:19:26 +03:00
|
|
|
option go_package = "github.com/hashicorp/vault/vault";
|
|
|
|
|
|
|
|
import "helper/forwarding/types.proto";
|
2016-08-19 18:03:53 +03:00
|
|
|
|
|
|
|
package vault;
|
|
|
|
|
2017-05-24 22:06:56 +03:00
|
|
|
message EchoRequest {
|
|
|
|
string message = 1;
|
2017-10-23 21:59:37 +03:00
|
|
|
// ClusterAddr is used to send up a standby node's address to the active
|
|
|
|
// node upon heartbeat
|
2017-05-24 22:06:56 +03:00
|
|
|
string cluster_addr = 2;
|
2017-10-23 21:59:37 +03:00
|
|
|
// ClusterAddrs is used to send up a list of cluster addresses to a dr
|
|
|
|
// primary from a dr secondary
|
|
|
|
repeated string cluster_addrs = 3;
|
2019-06-20 22:14:58 +03:00
|
|
|
|
|
|
|
uint64 raft_applied_index = 4;
|
|
|
|
string raft_node_id = 5;
|
2020-07-10 01:11:37 +03:00
|
|
|
NodeInformation node_info = 6;
|
2021-03-03 21:59:50 +03:00
|
|
|
uint64 raft_term = 7;
|
|
|
|
string raft_desired_suffrage = 8;
|
2022-05-20 23:49:11 +03:00
|
|
|
string raft_upgrade_version = 9;
|
|
|
|
string raft_redundancy_zone = 10;
|
|
|
|
string sdk_version = 11;
|
2017-05-24 22:06:56 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
message EchoReply {
|
|
|
|
string message = 1;
|
|
|
|
repeated string cluster_addrs = 2;
|
2018-01-18 06:17:47 +03:00
|
|
|
uint32 replication_state = 3;
|
2019-06-20 22:14:58 +03:00
|
|
|
uint64 raft_applied_index = 4;
|
|
|
|
string raft_node_id = 5;
|
2020-07-10 01:11:37 +03:00
|
|
|
NodeInformation node_info = 6;
|
|
|
|
}
|
|
|
|
|
|
|
|
message NodeInformation {
|
|
|
|
string cluster_addr = 1;
|
|
|
|
string api_addr = 2;
|
|
|
|
string mode = 3;
|
|
|
|
string node_id = 4;
|
|
|
|
uint32 replication_state = 5;
|
2021-11-30 22:49:58 +03:00
|
|
|
string hostname = 6;
|
2017-05-24 22:06:56 +03:00
|
|
|
}
|
|
|
|
|
2018-09-18 06:03:00 +03:00
|
|
|
message ClientKey {
|
|
|
|
string type = 1;
|
|
|
|
bytes x = 2;
|
|
|
|
bytes y = 3;
|
|
|
|
bytes d = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message PerfStandbyElectionInput {}
|
|
|
|
message PerfStandbyElectionResponse {
|
|
|
|
string id = 1;
|
|
|
|
string cluster_id = 2;
|
|
|
|
string primary_cluster_addr = 3;
|
|
|
|
bytes ca_cert = 4;
|
|
|
|
bytes client_cert = 5;
|
|
|
|
ClientKey client_key = 6;
|
|
|
|
}
|
|
|
|
|
2016-08-19 18:49:25 +03:00
|
|
|
service RequestForwarding {
|
2017-01-07 01:08:43 +03:00
|
|
|
rpc ForwardRequest(forwarding.Request) returns (forwarding.Response) {}
|
2017-05-24 22:06:56 +03:00
|
|
|
rpc Echo(EchoRequest) returns (EchoReply) {}
|
2018-09-18 06:03:00 +03:00
|
|
|
rpc PerformanceStandbyElectionRequest(PerfStandbyElectionInput) returns (stream PerfStandbyElectionResponse) {}
|
2016-08-19 18:03:53 +03:00
|
|
|
}
|