Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: As a user, I want to support sasl_config in kafka-logger plugin, so that we can send logs to brokers that enable authentication #8046

Closed
starsz opened this issue Oct 9, 2022 · 3 comments · Fixed by #8050
Assignees
Labels
enhancement New feature or request

Comments

@starsz
Copy link
Contributor

starsz commented Oct 9, 2022

Description

Hello,

Now I found "lua-resty-kafka" lib had supported set sasl_config in the client.
docs: https://github.com/doujiang24/lua-resty-kafka#new

So I want to support set sasl_config in kafka-logger plugin, then we can send logs to brokers that enable authentication.
Like:

{
    "kafka-logger":{
        "brokers":[
            {
                "host":"127.0.0.1",
                "port":9092,
                "sasl_config":{
                    "mechanism":"PLAIN",
                    "user":"USERNAME",
                    "password":"PASSWORD"
                }
            }
        ],
        "kafka_topic":"test2",
        "key":"key1",
        "batch_max_size":1,
        "name":"kafka logger"
    }
}
@starsz starsz self-assigned this Oct 9, 2022
@starsz starsz added the enhancement New feature or request label Oct 9, 2022
@guitu168
Copy link
Contributor

guitu168 commented Oct 9, 2022

great work!

@tzssangglass
Copy link
Member

tzssangglass commented Oct 9, 2022

Would you be willing to work with this developer on this #7782 if you wish?

@starsz
Copy link
Contributor Author

starsz commented Oct 9, 2022

Would you be willing to work with this developer on this #7782 if you wish?

OK. I can create PR based on this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants