8000 `ssl_options` require configuration even when `use_ssl` is `false` in Erlang/OTP-26 · Issue #485 · kafkaex/kafka_ex · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
ssl_options require configuration even when use_ssl is false in Erlang/OTP-26 #485
Open
@leemeichin

Description

@leemeichin

Due to the changes to the ssl module to provide safer defaults, kafka_ex will fail to connect to a broker even when use_ssl is false.

{:error, {:options, :incompatible, [verify: :verify_peer, cacerts: :undefined]}}

The issue is that the default SSL config is now set to verify_peer with cacerts (or cacertfile) defaulting to undefined, which results in an error (because the value for cacerts must be provided).

A workaround is to configure ssl_options anyway, even when SSL is ostensibly disabled:

config :kafka_ex,
  use_ssl: false,
  ssl_options: [
    verify: :verify_none
  ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0