Git Product home page Git Product logo

sasl_auth's People

Contributors

chvish avatar elmaxo avatar f3c0 avatar kjellwinblad avatar starbelly avatar terry-xiaoyu avatar zmstone avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sasl_auth's Issues

Offer a port implementation

Some users may not wish to use a nif. We can write a near perfect NIF, but we're still at the mercy of libraries we're using. Thus, a port implementation of sasl_auth is surely in order, especially since ROFL performance isn't the goal here.

Cleanup Makefile for macos

The Makefile is a bit clumsy in regards to mac os. Specifically, we're assuming everyone has cyrus-sasl and krb5 installed via brew. We should probably check if brew is installed, then check if cyrus-sasl is installed via brew. If brew is not installed or cyrus-sasl is not installed via brew, don't append include and lib paths to flags.

Publishing to hex

We have a few odds and ends we want to do to do including #9, and a few issues I'm about to open. That said, I'm not sure I see a reason to wait publishing this to hex. We could publish it as an RC or pre.

To note, I thought sasl_auth was already on hex, it is not, nor is brod_gsspai.

Make instructions for how to run the tests complete

There are instructions in the README (introduced in PR #8) for how to run the test cases introduced in PR #8. These instructions are not complete. See, for example, this comment #8 (comment) and other comments for the same PR. We should either update these instructions so they are complete or replace the instructions with a reference to a script that sets everything up automatically.

krb5_get_init_creds_keytab: (-1765328230) Cannot find KDC for realm

Hi @ElMaxo

I might have done something wrong.
it'd be great if you can help me to troubleshoot this.

I'm following the steps here to setup kerberos:
http://docs.confluent.io/current/cp-docker-images/docs/tutorials/clustered-deployment-sasl.html
Succeeded in producing the 42 messages at the end of the doc.
But when I try to do enable gssapi auth in brod, I get this:

=SUPERVISOR REPORT==== 30-May-2017::17:36:58 ===
     Supervisor: {local,brod_sup}
     Context:    child_terminated
     Reason:     {{{{badmatch,{error,"krb5_get_init_creds_keytab: (-1765328230) Cannot find KDC for realm \"TEST.CONFLUENT.IO\""}},
                    [{brod_gssapi,auth,6,
                                  [{file,"src/brod_gssapi.erl"},{line,51}]},
                     {brod_sock,sasl_auth,6,
                                [{file,"src/brod_sock.erl"},{line,265}]},
                     {brod_sock,maybe_sasl_auth,6,
                                [{file,"src/brod_sock.erl"},{line,230}]},
                     {brod_sock,init,5,
                                [{file,"src/brod_sock.erl"},{line,194}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,247}]}]},
                   [{"quickstart.confluent.io",29094}]},
                  [{brod_client,start_metadata_socket,5,
                                [{file,"src/brod_client.erl"},{line,677}]},
                   {brod_client,handle_info,2,
                                [{file,"src/brod_client.erl"},{line,290}]},
                   {gen_server,try_dispatch,4,
                               [{file,"gen_server.erl"},{line,601}]},
                   {gen_server,handle_msg,5,
                               [{file,"gen_server.erl"},{line,667}]},
                   {proc_lib,init_p_do_apply,3,
                             [{file,"proc_lib.erl"},{line,247}]}]}

Here is the command I run to start a client.

CaCert = "/tmp/cp-docker-images/examples/kafka-cluster-sasl/secrets/producer-ca1-signed.crt".
KeyTab = <<"/tmp/cp-docker-images/examples/kafka-cluster-sasl/secrets/saslproducer.keytab">>.
Prin = <<"saslproducer/[email protected]">>.
brod:start_client([{"quickstart.confluent.io", 29094}], client1,
                  [{ssl, [{cacertfile, CaCert}]}, {sasl, {callback, brod_gssapi, {gssapi, KeyTab, Prin}}}]).

Make it possible to run the tests in a docker image with a single command

This is related to issue #10.

Currently, one have to set up a Kerberos server, figure out which cyrus-sasl packages that need to be installed, install Kerberos, and configure the Kerberos server correctly to run the tests. This could be a very time consuming process (especially if one is new to Kerberos). Therefore, it would be great if all these could be automated so that one can run the tests in a docker container by just executing a single command.

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.