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

Add missing metadata for kafka client sasl scram mechanism #511

Merged
merged 4 commits into from
Jul 10, 2024

Conversation

spulci
Copy link
Contributor

@spulci spulci commented Jul 5, 2024

What does this PR do?

Closes #510

Add missing metadata for Kafka Client SCRAM/SASL mechanism.

Note: This is my first PR in this repo: any help in the code review is greatly appreciated!

Code sections where the PR accesses files, network, docker or some external service

(example link to code section)

Checklist before merging

spulci added 3 commits July 5, 2024 15:46
…chanism classes added

- ScramSaslClient$ScramSaslClientFactory class with allDeclaredConstructors and allDeclaredMethods
- ScramLoginModule class with allDeclaredConstructors and allDeclaredMethods

Signed-off-by: Simone Pulcini <[email protected]>
@spulci spulci marked this pull request as ready for review July 5, 2024 14:42
@spulci spulci requested a review from a team as a code owner July 5, 2024 14:42
@spulci spulci requested a review from vjovanov July 5, 2024 14:42
@spulci spulci changed the title Feat/kafka client sasl scram metadata Add missing metadata for kafka client sasl scram mechanism Jul 5, 2024
@vjovanov vjovanov requested review from yawkat and removed request for vjovanov July 8, 2024 07:31
@@ -139,6 +139,16 @@
}
]
},
{
"name": "org.apache.kafka.common.security.scram.internals.ScramSaslClient$ScramSaslClientFactory",
Copy link
Member

Choose a reason for hiding this comment

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

Can we have a typeReachable condition here? This will include it for all projects that have kafka on the classpath.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm pushing a couple of typeReachable conditions to both entries I've submitted. Let me know if they are ok or more strict ones are needed (in that case any help is appreciated).

…nfig.json

added typeReachable to ScramSaslClient$ScramSaslClientFactory
added typeReachable to ScramLoginModule

Signed-off-by: Simone Pulcini <[email protected]>
@spulci spulci requested a review from vjovanov July 9, 2024 14:53
@vjovanov
Copy link
Member

vjovanov commented Jul 9, 2024

Could you please verify the checkboxes. Especially: For all tests where I am not the sole author, I have added a comment that proves I may publish them under the specified license (see the tests section from our contributing document)

@spulci
Copy link
Contributor Author

spulci commented Jul 9, 2024

Could you please verify the checkboxes. Especially: For all tests where I am not the sole author, I have added a comment that proves I may publish them under the specified license (see the tests section from our contributing document)

@vjovanov help me understand this thing. I've added a test method and I'm the only author of this method. I should add no comment, right? And then I should check the box.

I've checked the box considering the fact that I'm the sole author of the added test method offered in this PR.

For the other check, yes I've consider adding the metadata to the Apache repository but I don't know how to make a contribution on their repos.

@vjovanov
Copy link
Member

vjovanov commented Jul 9, 2024

I've checked the box considering the fact that I'm the sole author of the added test method offered in this PR.

Perfect, thank you for responding so quickly.

For the other check, yes I've consider adding the metadata to the Apache repository but I don't know how to make a contribution on their repos.

Thanks, that is OK. Ideally in those cases we should open a ticket on the repo stating that the support is needed. This allows the community to upvote the ticket.

Copy link
Member

@vjovanov vjovanov left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@vjovanov vjovanov merged commit 7bc1546 into oracle:master Jul 10, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants