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

Fixed default securityProtocol config #215

Merged
merged 3 commits into from
Oct 24, 2023

Conversation

SergkeiM
Copy link
Contributor

@SergkeiM SergkeiM commented Aug 14, 2023

Hi @mateusjunges

When runing:

php artisan kafka:consume --topics=my-topic --consumer="\\App\\Consumers\\MyConsumer"

I takes settings from config, but securityProtocol is ommited, so you have to explicity pass it --securityProtocol=SASL_SSL.

@SergkeiM
Copy link
Contributor Author

Hi @mateusjunges did you had a chance to review this PR?

Comment on lines 57 to 59
$options = new Options(array_map(function ($value) {
return $value === '?' ? null : $value;
}, $this->options()), $this->config);
Copy link
Owner

Choose a reason for hiding this comment

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

Could you extract this into two lines? It's more readable IMO

@mateusjunges
Copy link
Owner

Sorry for the delay in reviewing this, I have a lot of things going on ATM

@mateusjunges mateusjunges changed the title Fixed default securityProtocol Fixed default securityProtocol config Oct 24, 2023
@mateusjunges mateusjunges self-assigned this Oct 24, 2023
@mateusjunges mateusjunges merged commit e97955c into mateusjunges:v1.13.x Oct 24, 2023
@SergkeiM SergkeiM deleted the bugfix/securityProtocol branch January 24, 2024 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants