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

Is python library available for IAM authentication for MSK? #65

Closed
ams45 opened this issue May 2, 2022 · 4 comments
Closed

Is python library available for IAM authentication for MSK? #65

ams45 opened this issue May 2, 2022 · 4 comments

Comments

@ams45
Copy link

ams45 commented May 2, 2022

Is python library available for IAM authentication for MSK?

I wanted to try to write kafka producer using python with IAM role authentication.
Does anyone know if any API/sdk is available in python?

@OneCricketeer
Copy link

Related #10

@grsubramanian
Copy link
Contributor

Closing as duplicate of #10 .

@van4oza
Copy link

van4oza commented Feb 2, 2023

kafka-python + SASL auth MSK worker for me

producer = KafkaProducer(
    bootstrap_servers=SASL_SERVERS,
    value_serializer=lambda v: json.dumps(v).encode('utf-8'),
    api_version=(2,8,1),
    security_protocol='SASL_SSL',
    sasl_mechanism='SCRAM-SHA-512',
    sasl_plain_username=os.getenv('KAFKA_USER'),
    sasl_plain_password=os.getenv('KAFKA_PASS'),
    retries=1
)

@aidan-melen
Copy link

kafka-python + SASL auth MSK worker for me

producer = KafkaProducer(
    bootstrap_servers=SASL_SERVERS,
    value_serializer=lambda v: json.dumps(v).encode('utf-8'),
    api_version=(2,8,1),
    security_protocol='SASL_SSL',
    sasl_mechanism='SCRAM-SHA-512',
    sasl_plain_username=os.getenv('KAFKA_USER'),
    sasl_plain_password=os.getenv('KAFKA_PASS'),
    retries=1
)

I think the OP is more interested in SASL/IAM support

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

No branches or pull requests

5 participants