This pull request addresses issue #2232 by adding an AWS_MSK_IAM authentication mechanism.
A detailed description of the authentication scheme is available here:
I understand that kafka-python may not be the appropriate place to put a vendor-specific authentication mechanism.
If that's the case maybe it's better suited as a plug-in?
The library doesn't support auth extensions at the moment but it doesn't look like a huge lift to get there.
To use the mechanism pass the following keyword arguments when
initializing a class:
The credentials and region will be pulled using botocore.session.Session.
Using the mechanism requires the botocore library which can be
installed with:
This pull request addresses issue #2232 by adding an
AWS_MSK_IAM
authentication mechanism. A detailed description of the authentication scheme is available here:To use the mechanism pass the following keyword arguments when initializing a class:
The credentials and region will be pulled using
botocore.session.Session
. Using the mechanism requires thebotocore
library which can be installed with:TODO:
This change is![Reviewable](https://reviewable.io/review_button.svg)