Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions v2/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,20 @@ message LogEntry {
string timestamp = 4;
map<string, string> fields = 5;
}

/*
* TLS certificate bundle sent from Core to a component during setup.
* All fields are DER-encoded binary.
*
* component_cert_der - the component's signed server certificate.
* ca_cert_der - the CA certificate; used by the component to verify
* Core's client certificate chain during mTLS.
* core_client_cert_der - Core's client certificate; stored by the component
* and used to pin the exact cert Core must present on
* every subsequent gRPC connection.
*/
message CertBundle {
bytes component_cert_der = 1;
bytes ca_cert_der = 2;
bytes core_client_cert_der = 3;
}
2 changes: 1 addition & 1 deletion v2/gateway.proto
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,5 @@ service Gateway {
service GatewaySetup {
rpc Start(google.protobuf.Empty) returns (stream defguard.common.v2.LogEntry);
rpc GetCsr(defguard.common.v2.CertificateInfo) returns (defguard.common.v2.DerPayload);
rpc SendCert(defguard.common.v2.DerPayload) returns (google.protobuf.Empty);
rpc SendCert(defguard.common.v2.CertBundle) returns (google.protobuf.Empty);
}
2 changes: 1 addition & 1 deletion v2/proxy.proto
Original file line number Diff line number Diff line change
Expand Up @@ -226,5 +226,5 @@ service Proxy {
service ProxySetup {
rpc Start(google.protobuf.Empty) returns (stream defguard.common.v2.LogEntry);
rpc GetCsr(defguard.common.v2.CertificateInfo) returns (defguard.common.v2.DerPayload);
rpc SendCert(defguard.common.v2.DerPayload) returns (google.protobuf.Empty);
rpc SendCert(defguard.common.v2.CertBundle) returns (google.protobuf.Empty);
}
Loading