Skip to content

Commit

Permalink
client: add some TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
evenh committed May 1, 2019
1 parent e465c32 commit 8aa026c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func StartClient(config *config.ClientConfig, userAgent string) {
log.Infof("Configuring connection to %s for gRPC operations", config.GetDialAddr())

// Configure connection
// TODO: Not run insecure
// TODO: Use TLS for encrypting connection (with configurable certs and a sane default)
conn, err := grpc.Dial(
config.GetDialAddr(),
grpc.WithBackoffConfig(grpc.DefaultBackoffConfig),
Expand Down
2 changes: 2 additions & 0 deletions client/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ func pingServer(client api.CertificateIssuerClient) func() {
}
}

// Listen for events from the server, indicating that a certificate has been renewed with ACME
func watchForEvents(domains []string, client api.CertificateIssuerClient) func() {
return func() {
// TODO: Automatic resubscribe when a stream dies for some reason (e.g. server goes down)
renewalStream, err := client.OnCertificateRenewal(context.Background(), &api.CertificateRenewalNotificationRequest{
DnsNames: domains,
})
Expand Down

0 comments on commit 8aa026c

Please sign in to comment.