Skip to content

Commit

Permalink
feat: allow to configure TLS for gRPC servers
Browse files Browse the repository at this point in the history
Signed-off-by: Christophe de Carvalho <christophe@archipelo.co>
  • Loading branch information
zaibon committed Aug 20, 2023
1 parent 5bde39e commit efdf223
Show file tree
Hide file tree
Showing 7 changed files with 448 additions and 117 deletions.
164 changes: 125 additions & 39 deletions app/artifact-cas/internal/conf/conf.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions app/artifact-cas/internal/conf/conf.proto
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,16 @@ message Server {
string addr = 2;
google.protobuf.Duration timeout = 3;
}
message TLS {
// path to certificate and private key
string Certificate = 1;
string PrivateKey = 2;
}
message GRPC {
string network = 1;
string addr = 2;
google.protobuf.Duration timeout = 3;
TLS tlsConfig = 4;
}
// Regular HTTP endpoint
HTTP http = 1;
Expand Down
6 changes: 5 additions & 1 deletion app/controlplane/cmd/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit efdf223

Please sign in to comment.