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

Empty sasl.username disables sasl.authentication #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

katin-dev
Copy link

@katin-dev katin-dev commented Jul 17, 2022

I found it very convenient to disable sasl authentication on dev machine by simple setting sasl.username into empty string.

So I have messenger config like so:

framework:
    messenger:
        reset_on_message: true
        transports:
          dsp:
              dsn: 'kafka://%env(DSP_KAFKA_HOSTS)%'
              options:
                  topic:
                      name: "%env(DSP_KAFKA_TOPIC_NAME)%"
                  kafka_conf:
                      security.protocol: 'sasl_plaintext'
                      sasl.mechanisms: 'SCRAM-SHA-256'
                      sasl.username: '%env(DSP_KAFKA_USERNAME)%'
                      sasl.password: '%env(DSP_KAFKA_PASSWORD)%'

On production server i have non-empty DSP_KAFKA_USERNAME but on local dev machine DSP_KAFKA_USERNAME='' and there is only one messenger.yaml

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.

1 participant