Repository navigation
Kafka: SASL (PLAIN, SCRAM, MSK IAM), snappy/lz4/zstd, read_committed - #6336
Open
shai-almog wants to merge 12 commits into
Open
shai-almog wants to merge 12 commits into
shai-almog wants to merge 12 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Credentials come only from the URL authority, not a path holding @. A SCRAM JAAS line without a mechanism is refused rather than sent as PLAIN. JAAS options are tokenized. SCRAM refuses mandatory extensions. One fetch shares a 128 MiB inflation budget and a batch is capped at 64 MiB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Any whitespace separates JAAS tokens, so a SCRAM module followed by a tab or line break is still recognised and never falls back to PLAIN. A session under 2 s re-authenticates at half its life. The aborted-transaction count a broker sends is checked against the bytes that follow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
✅ Continuous Quality ReportTest & Coverage
Static Analysis
Generated automatically by the PR CI workflow. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Kafka decompressors carried their own ByteSink beside com.codename1.backend.ByteSink. They now write into the shared one, and what they need on top of it -- the 64 MiB ceiling, the LZ77 back-reference copy and the bounds-checked little-endian reads -- is a static helper, Inflate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ackend The presentation readers brought a Snappy block decoder into core (com.codename1.impl.office.Snappy). It is now @SharedWithBackend, and the Kafka decoder keeps only what is Kafka's: the xerial stream framing and a ceiling that counts the batch's earlier blocks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Compared 301 screenshots: 301 matched. Benchmark ResultsDetailed Performance Metrics
|
Collaborator
Author
|
Compared 368 screenshots: 368 matched. |
…droid currency Every guide and javadoc example compiles on its own, live charts scale their text with the slide like the painted chart, words wider than their measured box are fitted, the presentation package gets its package-info, and the currency test asks Android for a malformed code, since ICU accepts any well-formed one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…oes not decide it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…from its own, current base Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In BorderLayout.CENTER the show stretched to the whole phone and centred the slide, while the figure is cropped to the show's preferred height from its top: the three slide figures were identical black rectangles. NORTH sizes the show to the slide. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… strip's font The renderer leaves the graphics on the last scaled slide font, so the number after a slide of small table text was drawn a pixel high. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the gaps that kept the backend's Kafka transport out of production: it had no SASL, so it could not reach Confluent Cloud, Amazon MSK or Azure Event Hubs, and a consumer failed on any topic written with snappy, lz4 or zstd.
What changed
PLAIN,SCRAM-SHA-256,SCRAM-SHA-512andAWS_MSK_IAM(newKafkaSasl). Configured through Spring Boot's keys (spring.kafka.security.protocol,spring.kafka.properties.sasl.mechanism,spring.kafka.properties.sasl.jaas.config),cn1.messaging.kafka.sasl.*, or credentials in the URL.SASL_SSL/SSLturn TLS on. Re-authenticates beforeconnections.max.reauth.msends the session (KIP-368). Refused credentials fail at once with the broker's reason, instead of being retried and reported as "no partitions".read_committed:spring.kafka.consumer.isolation-level=read_committeddrops the records of aborted transactions. Control batches are skipped in both isolation levels, and the offset always moves past them.Backend-Messaging.asciidocand theKafkaTransportclass docs.Not included: sending inside a Kafka transaction. The transactional outbox already covers the database-plus-message case.
Testing
read_committed, and offset advancement.read_committedreturned exactly the committed records.AWS_MSK_IAMhas not been run against a live MSK cluster.vm/JavaAPI, and Vale is clean on the doc.🤖 Generated with Claude Code