Skip to content

KAFKA-1686: Implement SASL/Kerberos.#191

Closed
harshach wants to merge 63 commits intoapache:trunkfrom
harshach:KAFKA-1686-V1
Closed

KAFKA-1686: Implement SASL/Kerberos.#191
harshach wants to merge 63 commits intoapache:trunkfrom
harshach:KAFKA-1686-V1

Conversation

@harshach
Copy link
Copy Markdown

@harshach harshach commented Sep 3, 2015

No description provided.

@harshach
Copy link
Copy Markdown
Author

harshach commented Sep 3, 2015

Anyone interested running this on vagrant , build kafka with this patch in and checkout https://github.com/harshach/kafka-vagrant . Drop the .tgz under kafka-vagrant. Vagrant up.

@asfbot
Copy link
Copy Markdown

asfbot commented Sep 3, 2015

kafka-trunk-git-pr #340 FAILURE
Looks like there's a problem with this pull request

@asfbot
Copy link
Copy Markdown

asfbot commented Sep 3, 2015

kafka-trunk-git-pr #344 FAILURE
Looks like there's a problem with this pull request

@asfbot
Copy link
Copy Markdown

asfbot commented Sep 3, 2015

kafka-trunk-git-pr #345 FAILURE
Looks like there's a problem with this pull request

@ijuma
Copy link
Copy Markdown
Member

ijuma commented Sep 4, 2015

Thanks Harsha, good to see this. In order to review this, it would be good to have a summary of the status of the PR, what areas (if any) you are still working on?

@harshach
Copy link
Copy Markdown
Author

harshach commented Sep 4, 2015

@ijuma cleaning up the code and adding sasl configs part, more unit tests.

@ijuma
Copy link
Copy Markdown
Member

ijuma commented Sep 4, 2015

Thanks.

Comment thread build.gradle Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should probably use 2.7.1, right?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This was fixed by Harsha.

@ijuma
Copy link
Copy Markdown
Member

ijuma commented Oct 16, 2015

I pushed the inter-broker tests for SASL_PLAINTEXT and SASL_SSL to harshach#5

Working on SASL_SSL tests for producer and consumer now.

Introduce LoginType and refactor KerberosName in order to make `authToLocal` rules configurable
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be a daemon thread? Otherwise it would prevent client applications from terminating.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@junrao suggested that it shouldn't be because we wait for it to terminate on shutdown. And if consumers are closed, then it won't prevent client applications from terminating. But it may cause this problem when consumers are not closed, so I am tempted to change it back to a daemon thread. What are your thoughts Jun?

ijuma added 8 commits October 18, 2015 14:45
* apache/trunk: (21 commits)
  KAFKA-2665: Add images to code github
  KAFKA-2397: add leave group request to force coordinator trigger rebalance
  KAFKA-2515: Handle oversized messages properly in new consumer
  KAFKA-2484: Add schema projection utilities
  KAFKA-2594: Add InMemoryLRUCacheStore as a preliminary method for bounding in-memory stores
  KAFKA-2419 - Fix to prevent background thread from getting created when not required
  KAFKA-2120: cleaning follow-up
  KAFKA-2487: change kafka.examples.Consumer to use the new java consumer
  MINOR: set up temp directories properly in StreamTaskTest
  KAFKA-2295; Support dynamically loaded classes from context class loader
  KAFKA-2654: optimize unnecessary poll(0) away in StreamTask
  TRIVIAL: add @throws ConsumerWakeupException in KafkaConsumer
  KAFKA-2536: topics tool should allow users to alter topic configuration
  KAFKA-2650: Change ConfigCommand --deleted-config option to align wit…
  KAFKA-2593: Key value stores can use specified serializers and deserializers
  KAFKA-2603: Add timeout arg to ConsoleConsumer for new consumer
  MINOR: ignore wakeups when committing offsets on consumer close
  KAFKA-2632: move fetchable check ahead in handleFetchResponse
  MINOR: flush record collector after local state flush
  KAFKA-2527; System Test for Quotas in Ducktape
  ...
…d fix bug in `ClientUtils.createChannelBuilder`
…ocols

Include improvements from `SaslIntegrationTest` and remove duplicated code.
* apache/trunk:
  MINOR: Fixed README examples on running specific tests.
  KAFKA-2639: Refactoring of ZkUtils
@ijuma
Copy link
Copy Markdown
Member

ijuma commented Oct 19, 2015

@harshach, PR 6 is ready harshach#6:

  • Merged trunk and fixed conflicts
  • Refactored producer and consumer tests to reduce duplication and to also test SASL_SSL (fixed an important, but small bug with SASL_SSL in the process)
  • Fixed issue where interestOps was not being turned off when it should be
  • Document authenticate in SaslClientAuthenticator and SaslServerAuthenticator
  • Make it possible to configure serviceName via KafkaConfg

./gradlew test passed on my laptop.

We need to move fast in order to get this into 0.9.0.0, so I'd appreciate it if you could merge this into your branch so that Jun can review it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@harshach, this is not actually used at the moment. Can you please point me to where it should be used and I can quickly address it?

@junrao
Copy link
Copy Markdown
Contributor

junrao commented Oct 19, 2015

@harshach : PR #6 from @ijuma looks good to me. Do you want to merge that into your branch? Once you do that, I think we can probably just commit the patch as it is and address other issues, if any, in followup jiras.

* apache/trunk:
  HOTFIX: check logic of KAFKA-2515 should be on buffer.limit()
  MINOR: Capture stderr in ConsumerPerformanceService.
  KAFKA-2669; Fix LogCleaner.awaitCleaned for LogCleanerIntegrationTest
  KAFKA-2656; Remove hardcoded default key and truststores
  MINOR: Reduce logging level for controller connection failures from `error` to `warn`
ijuma added 2 commits October 20, 2015 16:50
This seems to be necessary for our tests to pass consistently.
`Sasl*ConsumerTest` already tests similar scenarios.
asfgit pushed a commit that referenced this pull request Oct 20, 2015
This PR implements SASL/Kerberos which was originally submitted by harshach as #191.

I've been submitting PRs to Harsha's branch with fixes and improvements and he has integrated all, but the most recent one. I'm creating this PR so that the Jenkins can run the tests on the branch (they pass locally).

Author: Ismael Juma <ismael@juma.me.uk>
Author: Sriharsha Chintalapani <harsha@hortonworks.com>
Author: Harsha <harshach@users.noreply.github.com>

Reviewers: Ismael Juma <ismael@juma.me.uk>, Rajini Sivaram <rajinisivaram@googlemail.com>, Parth Brahmbhatt <brahmbhatt.parth@gmail.com>, Jun Rao <junrao@gmail.com>

Closes #334 from ijuma/KAFKA-1686-V1
@harshach
Copy link
Copy Markdown
Author

@ijuma can you open a PR against this branch so that I can merge it in

Merge trunk, refactor consumer/producer tests and other fixes and improvements
@ijuma
Copy link
Copy Markdown
Member

ijuma commented Oct 21, 2015

Thanks for merging the PR to your branch Harsha. Since Jun merged the SASL PR via #334 (which is exactly the same as this one now), would you mind closing this one please?

Thanks for your work on this. We'll probably need a follow-up to tweak some things and some more tests (particularly ducktape ones) but we're most of the way there.

@harshach harshach closed this Oct 21, 2015
jsancio pushed a commit to jsancio/kafka that referenced this pull request Aug 6, 2019
…fault was changed (apache#191)

The default is now to disable ACLs. Updated system test to override.

Reviewers: Stanislav Kozlovski <stanislav_kozlovski@outlook.com>
patrik-marton pushed a commit to patrik-marton/kafka that referenced this pull request Mar 11, 2025
davide-armand pushed a commit to aiven/kafka that referenced this pull request Dec 1, 2025
A file related to a single batch might be split into several blocks by the selected
KeyAlignmentStrategy. In case of FixedBlockAlignment, if the file is
bigger than the block size, it will be split into two or more files.
With these changes it's now possible to re-assemble all the records
related to that batch.
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.

7 participants