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

Support AWS_MSK_IAM authentication #147

Closed
wants to merge 5 commits into from

Commits on Aug 18, 2021

  1. Support AWS_MSK_IAM authentication

    Adds an AWS_MSK_IAM authentication mechanism which is described here:
    * https://github.com/aws/aws-msk-iam-auth#uriencode
    
    To use the mechanism pass the following keyword arguments when
    initializing a class:
    
    ```
    security_protocol='SASL_SSL',
    sasl_mechanism='AWS_MSK_IAM',
    bootstrap_servers=[
        'b-1.cluster.x.y.kafka.region.amazonaws.com:9088',
        ...
    ],
    ```
    
    The credentials and region will be pulled using `botocore.session.Session`.
    Using the mechanism requires the `botocore` library which can be
    installed with:
    
    ```sh
    pip install botocore
    ```
    
    **TODO:**
    
    - [ ] Documentation
    - [ ] Tests
    - [ ] Refresh mechanism for temporary credentials?
    mattoberle committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    cb18e67 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ed99ae5 View commit details
    Browse the repository at this point in the history
  3. Tests AWS_MSK_IAM signature and payload generation

    The two tests in `test/test_msk.py` should ensure that the changes to
    `kafka/msk.py` do not break the authentication payload.
    
    The authentication payload was validated using a real AWS Kafka cluster
    before adding tests with the hard-coded signatures.
    mattoberle committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    7ff3237 View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2024

  1. Configuration menu
    Copy the full SHA
    9793097 View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2024

  1. Configuration menu
    Copy the full SHA
    0a9f7a6 View commit details
    Browse the repository at this point in the history