Skip to content

Commit

Permalink
Fix missing CertPath in TLSConfig in cluster.go (#49)
Browse files Browse the repository at this point in the history
It looks like `CertPath` has been omitted from the TLS configuration when creating a broker connection.

When using client authentication with `topicctl bootstrap`, this is resulting in the following error:

```
./topicctl --cluster-config=kafka.yml bootstrap
...
ERROR local error: tls: unexpected message
```
  • Loading branch information
chipkillmar authored Oct 28, 2021
1 parent e4ae3e6 commit 4cf7238
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/config/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ func (c ClusterConfig) NewAdminClient(
TLS: admin.TLSConfig{
Enabled: c.Spec.TLS.Enabled,
CACertPath: c.absPath(c.Spec.TLS.CACertPath),
CertPath: c.absPath(c.Spec.TLS.CertPath),
KeyPath: c.absPath(c.Spec.TLS.KeyPath),
ServerName: c.Spec.TLS.ServerName,
SkipVerify: c.Spec.TLS.SkipVerify,
Expand Down

0 comments on commit 4cf7238

Please sign in to comment.