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(kafka): Add support for SASL auth to Kafka #14487

Merged
merged 4 commits into from
Oct 15, 2024

Conversation

benclive
Copy link
Contributor

@benclive benclive commented Oct 15, 2024

What this PR does / why we need it:

Adds support for SASL authentication to Kafka.

Special notes for your reviewer:

  • I had to refactor some of the client code into its own package due to import cycles (client test in kafka package imports testkafka which imports kafka for the config) so this change ended up being larger than I expected.

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • Title matches the required conventional commits format, see here
    • Note that Promtail is considered to be feature complete, and future development for logs collection will be in Grafana Alloy. As such, feat PRs are unlikely to be accepted unless a case can be made for the feature actually being a bug fix to existing behavior.

@benclive benclive requested a review from a team as a code owner October 15, 2024 10:54
@@ -54,6 +45,9 @@ type Config struct {
DialTimeout time.Duration `yaml:"dial_timeout"`
WriteTimeout time.Duration `yaml:"write_timeout"`

SASLUsername string `yaml:"sasl_username"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't you regen the doc ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I have a pre-commit check set up which normally does it for me on git push but I had to skip it this time and rely on CI!

Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions github-actions bot added the type/docs Issues related to technical documentation; the Docs Squad uses this label across many repositories label Oct 15, 2024
@benclive benclive merged commit e2a209c into main Oct 15, 2024
61 checks passed
@benclive benclive deleted the add-config-for-sasl-auth-kafka branch October 15, 2024 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L type/docs Issues related to technical documentation; the Docs Squad uses this label across many repositories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants