-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcolumnar.cluster_management.proto
More file actions
108 lines (92 loc) · 3.98 KB
/
columnar.cluster_management.proto
File metadata and controls
108 lines (92 loc) · 3.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
syntax = "proto3";
import "columnar.execution_context.proto";
import "columnar.serialization.proto";
import "google/protobuf/duration.proto";
package fit.columnar;
option java_package = "fit.columnar";
option java_multiple_files = true;
option go_package = "github.com/couchbaselabs/transactions-fit-performer/protocol/clustermanagement";
option csharp_namespace = "Couchbase.Grpc.Protocol.Columnar";
// Requests the performer use the SDK to create a connection to a Columnar cluster.
message ClusterNewInstanceRequest {
message Options {
message SecurityOptions {
optional bool trust_only_capella = 1;
// trustOnlyPemFile is not exposed, as it will not work well with Docker-based FIT
optional string trust_only_pem_string = 3;
optional bool trust_only_platform = 4;
optional bool disable_server_certificate_verification = 5;
repeated string cipher_suites = 6;
}
message TimeoutOptions {
google.protobuf.Duration connect_timeout = 1;
google.protobuf.Duration dispatch_timeout = 2;
google.protobuf.Duration query_timeout = 3;
}
optional Deserializer deserializer = 1;
optional SecurityOptions security = 2;
optional TimeoutOptions timeout = 3;
optional int32 max_retries = 4;
}
message Credential {
message UsernameAndPassword {
string username = 1;
string password = 2;
}
// Authenticates using a JSON Web Token (JWT).
// The SDK sets an "Authorization: Bearer <jwt>" header on every HTTP request.
message JwtAuth {
string jwt = 1;
}
// Authenticates using a client certificate (mTLS).
// The SDK authenticates the client during the TLS handshake.
message CertificateAuth {
// PEM-encoded X509 client certificate
string cert = 1;
// PEM-encoded private key
string key = 2;
}
oneof type {
UsernameAndPassword username_and_password = 1;
JwtAuth jwt_auth = 2;
CertificateAuth certificate_auth = 3;
}
}
// The id to use for this connection.
string cluster_connection_id = 1;
// Details of the cluster connection.
// As with all fields (see rule 1 in README.md), the performer should
// pass all fields directly to the SDK without manipulation. E.g. it should not prepend couchbase:// to
// cluster_connection_string or similar.
string connection_string = 2;
Credential credential = 3;
optional Options options = 4;
// Can apply SDK tunables that can't be represented generically in GRPC.
//
// One example is for performance testing, where we may want to experiment with various approaches in say the Java SDK.
// So one run may send "com.couchbase.executorMaxThreadCount"="10", and the next set it to "20".
//
// Interpretation of the tunables, and how to apply them inside the SDK, is completely SDK-dependent.
//
// The intent is that the tunables be associated with the cluster connection.
//
// Generally performers can ignore this field unless they are explicitly planning on using it.
map<string, string> tunables = 5;
ExecutionContext execution_context = 6;
}
// The performer should close a previously-opened Columnar Cluster instance. In the RFC this is `cluster.close()`.
// It can safely assume that if that instance does not exist, then this is a driver bug - it does not have to handle this.
message ClusterCloseRequest {
ExecutionContextClusterLevel execution_context = 1;
}
// The performer should close all Columnar Cluster objects it has open. In the RFC this is `cluster.close()`.
message CloseAllColumnarClustersRequest {
ExecutionContext execution_context = 1;
}
// Requests the performer to update the credential on an existing cluster connection.
// Per the EA RFC, `cluster.credential(newCredential)` replaces the credential used for subsequent requests.
// The new credential must be the same type as the old one (e.g. JWT -> JWT, cert -> cert).
message SetCredentialRequest {
ExecutionContextClusterLevel execution_context = 1;
ClusterNewInstanceRequest.Credential credential = 2;
}