GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — MINOR: Address 4.4 documentation gaps for Streams and OAuth (#23809) · coderbruis/kafka@abc2906

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • docs
    • security
      • authentication-using-sasl.md
    • streams
      • developer-guide
        • streams-rebalance-protocol.md
      • upgrade-guide.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docs/security/authentication-using-sasl.md‎

Copy file name to clipboardExpand all lines: docs/security/authentication-using-sasl.md
+6Lines changed: 6 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -485,9 +485,15 @@ Set to a positive integer value if you wish to allow up to some number of positi
485485
sasl.enabled.mechanisms=OAUTHBEARER
486486
listener.name.<listener name>.oauthbearer.sasl.server.callback.handler.class=org.apache.kafka.common.security.oauthbearer.OAuthBearerValidatorCallbackHandler
487487
listener.name.<listener name>.oauthbearer.sasl.oauthbearer.jwks.endpoint.url=https://example.com/oauth2/v1/keys
488+
listener.name.<listener name>.oauthbearer.sasl.oauthbearer.expected.audience=my-kafka-cluster
489+
listener.name.<listener name>.oauthbearer.sasl.oauthbearer.expected.issuer=https://example.com
488490
```
489491

492+
When `sasl.oauthbearer.jwks.endpoint.url` is set, the broker fails at startup unless `sasl.oauthbearer.expected.audience` and `sasl.oauthbearer.expected.issuer` are also set. To accept tokens without verifying the `aud` or `iss` claim, set `sasl.oauthbearer.allow.unverified.audience` or `sasl.oauthbearer.allow.unverified.issuer` to `true` instead. This is insecure and strongly discouraged.
493+
490494
The OAUTHBEARER broker configuration includes:
495+
* sasl.oauthbearer.allow.unverified.audience
496+
* sasl.oauthbearer.allow.unverified.issuer
491497
* sasl.oauthbearer.clock.skew.seconds
492498
* sasl.oauthbearer.expected.audience
493499
* sasl.oauthbearer.expected.issuer
Collapse file

‎docs/streams/developer-guide/streams-rebalance-protocol.md‎

Copy file name to clipboardExpand all lines: docs/streams/developer-guide/streams-rebalance-protocol.md
+2Lines changed: 2 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ The following broker configurations control the behavior of streams groups. For
125125
* [`group.streams.initial.rebalance.delay.ms`](/{version}/configuration/broker-configs#brokerconfigs_group.streams.initial.rebalance.delay.ms): The first rebalance of a new (ie, previously empty) group is delayed by this amount to allow more members to join the group.
126126
* [`group.streams.topology.description.plugin.class`](/{version}/configuration/broker-configs#brokerconfigs_group.streams.topology.description.plugin.class): The fully qualified class name of a `StreamsGroupTopologyDescriptionPlugin` implementation. When not set, the [topology description feature](/{version}/streams/developer-guide/topology-description-plugin/) is disabled.
127127
* [`group.streams.assignors`](/{version}/configuration/broker-configs#brokerconfigs_group.streams.assignors): The task assignors available to streams groups, as a list of built-in assignor names and fully qualified class names of custom `TaskAssignor` implementations. The first entry is the default assignor for groups that do not select one with `streams.assignor.name`.
128+
* [`group.streams.rack.aware.assignment.tags`](/{version}/configuration/broker-configs#brokerconfigs_group.streams.rack.aware.assignment.tags): The default list of client tag keys used to distribute standby replicas across Kafka Streams instances, when the broker-side assignor supports it.
128129

129130
## Group Configuration
130131

@@ -139,6 +140,7 @@ The following group-level configurations are available for streams groups:
139140
* [`streams.num.standby.replicas`](/{version}/configuration/group-configs#groupconfigs_streams.num.standby.replicas): The number of standby replicas for each task.
140141
* [`streams.initial.rebalance.delay.ms`](/{version}/configuration/group-configs#groupconfigs_streams.initial.rebalance.delay.ms): The first rebalance of a group is delayed by this amount to allow more members to join the group.
141142
* [`streams.assignor.name`](/{version}/configuration/group-configs#groupconfigs_streams.assignor.name): The name of the task assignor to use for this group, which must be one of the assignors registered on the broker via `group.streams.assignors`. When unset, the group uses the first entry of `group.streams.assignors`.
143+
* [`streams.rack.aware.assignment.tags`](/{version}/configuration/group-configs#groupconfigs_streams.rack.aware.assignment.tags): The list of client tag keys used to distribute standby replicas across Kafka Streams instances, when the broker-side assignor supports it.
142144

143145
### Example: Setting Group-Level Configuration
144146
```
Collapse file

‎docs/streams/upgrade-guide.md‎

Copy file name to clipboardExpand all lines: docs/streams/upgrade-guide.md
+4Lines changed: 4 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ Kafka Streams no longer emits a WARN from `KafkaStreams#cleanUp()` when the appl
7979

8080
Kafka Streams now validates the `application.server` configuration when `StreamsConfig` is created. The value must be empty or a valid endpoint from which Kafka Streams can parse both host and port, such as `host:port` or `protocol://host:port`. Invalid values that may previously have failed later during startup or assignment now fail earlier with a `ConfigException`. More details can be found in [KIP-1245](https://cwiki.apache.org/confluence/display/KAFKA/KIP-1245%3A+Enforce+%27application.server%27+%3Cserver%3E%3A%3Cport%3E+format+at+config+level).
8181

82+
`StreamPartitioner` has a new method `partitions(topic, key, value, headers, numPartitions)`, which receives the record headers. It is a default method that delegates to the existing method, which is deprecated and planned to be removed in 5.0. The built-in partitioners now pass the actual record headers to the key serializer instead of empty headers. For windowed keys written without a custom `StreamPartitioner`, a header-sensitive key serializer may therefore produce different partitions than before the upgrade, which breaks co-partitioning with data written before the upgrade. `KafkaStreams#queryMetadataForKey` also has new overloads that accept `Headers`. More details can be found in [KIP-1321](https://cwiki.apache.org/confluence/spaces/KAFKA/pages/421956773/KIP-1321+Headers+aware+StreamPartitioner).
83+
84+
Kafka Streams now supports transactional state stores, enabled with the new config `enable.transactional.statestores` (default `false`). When enabled, under exactly-once processing state stores are no longer wiped and rebuilt on error, and under either exactly-once or at-least-once processing only the writes since the last successful commit are lost and replayed through the topology on error. The new config `statestore.uncommitted.max.bytes` sets the maximum memory used to buffer uncommitted state store records; when it is exceeded, a task commit is requested. The new config `default.interactive.query.isolation.level` sets the default isolation level for interactive queries; with `READ_COMMITTED`, writes become visible to interactive queries only after they are committed. More details can be found in [KIP-892](https://cwiki.apache.org/confluence/display/KAFKA/KIP-892%3A+Transactional+Semantics+for+StateStores).
85+
8286
`org.apache.kafka.streams.CloseOptions.GroupMembershipOperation` adds a new `DEFAULT` value, which is now the default for `CloseOptions`. Under the classic protocol, `DEFAULT` keeps the existing behavior — the consumer remains in the group on close. Under the streams protocol (`group.protocol=streams`), `DEFAULT` adapts to the membership type: dynamic members leave the group on close, while static members remain in the group until session timeout. `LEAVE_GROUP` and `REMAIN_IN_GROUP` continue to force the corresponding behavior regardless of protocol. More details can be found in [KIP-1284](https://cwiki.apache.org/confluence/x/1ow8G).
8387

8488
Kafka Streams now exposes the mapped join key alongside the `KStream` record key in KStream-GlobalKTable joins, via the new `ValueJoinerWithStreamAndMappedKey` functional interface. Four new `KStream#join` and `KStream#leftJoin` overloads accept this joiner, giving users access to the join key produced by the `KeyValueMapper` in addition to the stream record's key — without having to recompute the mapped key inside the joiner. The four existing `ValueJoinerWithKey`-based overloads for KStream-GlobalKTable joins are deprecated; their runtime behavior is unchanged (`readOnlyKey` remains the `KStream` record's key) and applications continue to compile and run without modification. More details can be found in [KIP-1340](https://cwiki.apache.org/confluence/display/KAFKA/KIP-1340%3A+Expose+Both+Mapped+Key+and+Stream+Key+in+Streams-GlobalKTable+Joins).

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.