GithubHelp home page GithubHelp logo

Comments (7)

ramonpin avatar ramonpin commented on July 22, 2024 1

@aravindanck our intention is to have support for the SASL_PLAINTEXT with GSSAPI at least. We probably will need to make several consecutive PRs to other erlang/kafka's ecosystem proyects used by this module.

from broadway_kafka.

ramonpin avatar ramonpin commented on July 22, 2024 1

Sorry guys some problems in other areas of the application leave me no time for this.

@aravindanck great work from your side. Where you able to make it work with brod_gssapi library?

Hoping to contribute soon.

from broadway_kafka.

ramonpin avatar ramonpin commented on July 22, 2024

From source code 'brod_client.ex':

  defp validate_option(:sasl, :undefined),
    do: {:ok, :undefined}

  defp validate_option(:sasl, value) do
    with {mechanism, username, password}
         when mechanism in [:plain, :scram_sha_256, :scram_sha_512] and
                is_binary(username) and
                is_binary(password) <- value do
      {:ok, value}
    else
      _value -> validation_error(:sasl, "a tuple of SASL mechanism, username and password", value)
    end
  end

I can try to make a PR adding the validation needed for the callback related tuple to that function but don't know if you expect any other problems down the stream.

from broadway_kafka.

josevalim avatar josevalim commented on July 22, 2024

A PR is welcome. We can either stop validating it or validate this additional value. Both approaches are fine!

from broadway_kafka.

aravindanck avatar aravindanck commented on July 22, 2024

We're also looking to have this option as part of Broadway Kafka. Just curious @ramonpin - which SASL mechanism are you trying to support?

from broadway_kafka.

aravindanck avatar aravindanck commented on July 22, 2024

@ramonpin Is there a PR for this one already? If not, are you planning to raise one soon?

from broadway_kafka.

aravindanck avatar aravindanck commented on July 22, 2024

@ramonpin It should work for brod_gssapi library, as the validation check enables you to work with any SASL callback module. I tried this with a callback module built for a different SASL mechanism

from broadway_kafka.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.