Skip to content

Scram Config API in Admin Client [KIP-554] <- various changes#4306

Merged
Emanuele Sabellico (emasab) merged 28 commits intofeature/userscram-AdminClientfrom
feature/userscram-AdminClient-changes
Jul 6, 2023
Merged

Scram Config API in Admin Client [KIP-554] <- various changes#4306
Emanuele Sabellico (emasab) merged 28 commits intofeature/userscram-AdminClientfrom
feature/userscram-AdminClient-changes

Conversation

@emasab
Copy link
Copy Markdown
Contributor

@emasab Emanuele Sabellico (emasab) commented Jun 5, 2023

I've included a set of commits with some changes, mainly code style, naming.
There's also the support for COMPACT BYTES, as passing a string would exclude the NULL byte from being used as salt or password.
Other things:

  • random initialization if salt isn't provided
  • Doxygen style documentation
  • ifdefs to configure without OpenSSL
  • always return an error using the queue for async functions
  • use const when necessary
  • allow multiple upserts and deletes for the same user as in Java. For example two upserts with the same user and SHA-256 or SHA-512 as scram mechanism

other places where it's listed
remove return values from admin
functions
always return from async functions through
the queue
contains pointers.
Renamed rd_kafka_UserScramCredentialAlterationResultElement
to rd_kafka_AlterUserScramCredentials_result_response
following admin api conventions
create random salt if not provided,
move hmac so sasl isn't required,
allow multiple alterations for the same
user as in Java,
example taking parameters from command
line
use compact bytes for serialization
@emasab Emanuele Sabellico (emasab) force-pushed the feature/userscram-AdminClient-changes branch from 2825037 to 9fc8788 Compare June 5, 2023 17:20
Copy link
Copy Markdown
Contributor

@milindl Milind L (milindl) left a comment

Choose a reason for hiding this comment

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

Thank you for this change.

Comment thread examples/user_scram.c Outdated
Comment thread examples/user_scram.c Outdated
Comment thread examples/user_scram.c Outdated
Comment thread examples/user_scram.c Outdated
Comment thread examples/user_scram.c Outdated
Comment thread tests/0081-admin.c Outdated
Comment thread tests/0081-admin.c Outdated
Comment thread tests/0081-admin.c Outdated
Comment thread tests/0081-admin.c
Comment thread tests/0081-admin.c Outdated
Comment thread src/rdkafka_admin.c
@emasab Emanuele Sabellico (emasab) force-pushed the feature/userscram-AdminClient-changes branch from 211e4e4 to 1c72fc2 Compare July 4, 2023 11:33
@emasab Emanuele Sabellico (emasab) merged commit 2c3cfc7 into feature/userscram-AdminClient Jul 6, 2023
@emasab Emanuele Sabellico (emasab) deleted the feature/userscram-AdminClient-changes branch July 6, 2023 11:25
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.

2 participants