Skip to content

Add option to set AWS profile in SASL config #338

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

Merged
merged 3 commits into from
Mar 14, 2025

Conversation

mostafa
Copy link
Owner

@mostafa mostafa commented Mar 7, 2025

This PR adds a parameter to SASLConfig called awsProfile to fix #337, which can be used to set a custom AWS profile to authenticate against AWS IAM instead of the default one.

@mostafa mostafa requested a review from Copilot March 7, 2025 15:51
Copy link

sonarqubecloud bot commented Mar 7, 2025

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

PR Overview

This PR adds a new parameter, awsProfile, to the SASLConfig interface to allow users to specify a custom AWS profile for SASL authentication with AWS IAM, addressing issue #337. In addition, the documentation has been updated throughout the repo to include the new parameter and to adjust various API doc index references.

Reviewed Changes

File Description
README.md Added a new FAQ entry describing the use of awsProfile and the AWS_PROFILE environment var
api-docs/docs/interfaces/SASLConfig.md Introduced awsProfile in the interface listing with documentation details
Other api-docs/documents (ConnectionConfig.md, Connection.md, etc.) Updated index.d.ts reference links to reflect revised line numbers

Copilot reviewed 27 out of 27 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (3)

api-docs/docs/interfaces/SASLConfig.md:8

  • [nitpick] Consider updating the anchor link to match the camelCase property name exactly (e.g. '#awsProfile') for consistency with the code.
+- [awsProfile](SASLConfig.md#awsprofile)

README.md:532

  • [nitpick] To enhance clarity, consider specifying which setting takes precedence if both AWS_PROFILE and the awsProfile option are provided.
+    You can use the `AWS_PROFILE` environment variable to specify the profile name or use the `awsProfile` option in the `SASLConfig` [object](api-docs/docs/interfaces/SASLConfig.md).

api-docs/docs/interfaces/ConnectionConfig.md:19

  • [nitpick] Verify that the updated index.d.ts line reference accurately reflects the current definition location to avoid broken documentation links.
+[index.d.ts:218](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L218)

@mostafa mostafa merged commit 8f7a070 into main Mar 14, 2025
3 of 4 checks passed
@mostafa mostafa deleted the add-aws-profile-to-sasl-config branch March 14, 2025 12:42
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.

Connecting to MSK Kafka clusters in different accounts during the same k6 test
1 participant