Skip to content

Commit ab7c676

Browse files
committed
Prepare for 0.13.0 release
Signed-off-by: Marko Strukelj <marko.strukelj@gmail.com>
1 parent 1aad01c commit ab7c676

File tree

29 files changed

+80
-33
lines changed

29 files changed

+80
-33
lines changed

.travis/build.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ elif [[ "$arch" != 'ppc64le' ]]; then
6969
EXIT=$?
7070
exitIfError
7171

72+
clearDockerEnv
73+
mvn -e -V -B clean install -f testsuite -Pkafka-3_3_2
74+
EXIT=$?
75+
exitIfError
76+
7277
# Excluded by default to not exceed Travis job timeout
7378
if [ "$SKIP_DISABLED" == "false" ]; then
7479

75-
clearDockerEnv
76-
mvn -e -V -B clean install -f testsuite -Pkafka-3_3_2
77-
EXIT=$?
78-
exitIfError
79-
8080
clearDockerEnv
8181
mvn -e -V -B clean install -f testsuite -Pkafka-3_2_3 -DfailIfNoTests=false -Dtest=\!KeycloakKRaftAuthorizationTests
8282
EXIT=$?

RELEASE_NOTES.md

+47
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,53 @@ Release Notes
44
0.13.0
55
------
66

7+
### KeycloakRBACAuthorizer has been superseded by KeycloakAuthorizer and works in both Zookeeper and KRaft mode
8+
9+
While `KeycloakRBACAuthorizer` can still be used in Zookeeper mode, for the future you should migrate your configuration to use `KeycloakAuthorizer`:
10+
11+
In your `server.properties` use:
12+
```
13+
authorizer.class.name=io.strimzi.kafka.oauth.server.authorizer.KeycloakAuthorizer
14+
```
15+
16+
As part of supporting KRaft mode the grants mapping logic has changed slightly. Rather than using the access token as a unit of grant, the user id is now used.
17+
This results in better sharing of the grants between sessions of the same user, and should also reduce the number of grants held in cache, and the number of refresh requests to the Keycloak server.
18+
19+
Due to these changes additional configuration options have been added:
20+
* `strimzi.authorization.grants.max.idle.time.seconds` specifies the time after which an idle grant in the cache can be garbage collected
21+
* `strimzi.authorization.grants.gc.period.seconds` specifies an interval in which cleaning of stale grants from grants cache is performed
22+
23+
Also, as a result the option `strimzi.authorization.reuse.grants` now defaults to `true`, and no longer to `false`.
24+
25+
See [PR 188](https://github.com/strimzi/strimzi-kafka-oauth/pull/188)
26+
27+
### Option `strimzi.oauth.metric.reporters` added to supersede `metric.reporters` in OAuth metric
28+
29+
Due to integration difficulties of OAuth metrics with Kafka metrics system the OAuth has to instantiate its own copy of metric reporters.
30+
It turns out that some metric reporters don't work correctly when instantiated multiple times. To address that, we no longer use Kafka's `metric.reporters` configuration.
31+
32+
If `strimzi.oauth.metric.reporters` is not set OAuth metrics will still instantiate a default `org.apache.kafka.common.metrics.JmxReporter` if any OAuth metrics are enabled.
33+
In order to install some other metric reporter in addition to `JmxReporter` both have to be listed.
34+
Also, the suggested way to configure it on the Kafka broker is to set it as an env variable, rather than a property in `server.properties` file:
35+
```
36+
export OAUTH_ENABLE_METRICS=true
37+
export STRIMZI_OAUTH_METRIC_REPORTERS=org.apache.kafka.common.metrics.JmxReporter,org.some.package.SomeReporter
38+
bin/kafka-server-start.sh config/server.properties
39+
```
40+
41+
See [PR 193](https://github.com/strimzi/strimzi-kafka-oauth/pull/193)
42+
43+
### Principal extraction from nested username claim was added
44+
45+
It is now possible to use JsonPath query to target nested attributes when extracting a principal.
46+
For example:
47+
```
48+
oauth.username.claim="['user.info'].['user.id']"
49+
oauth.fallback.username.claim="['user.info'].['client.id']"
50+
```
51+
52+
See [PR 194](https://github.com/strimzi/strimzi-kafka-oauth/pull/194)
53+
754
### Fixed json-path handling of null
855

956
This change introduces a backwards incompatible change in how queries using `equals` or `not equals` comparison to `null` are handled.

examples/consumer/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>io.strimzi</groupId>
88
<artifactId>oauth</artifactId>
99
<relativePath>../../pom.xml</relativePath>
10-
<version>1.0.0-SNAPSHOT</version>
10+
<version>0.13.0</version>
1111
</parent>
1212

1313
<artifactId>kafka-oauth-examples-consumer</artifactId>

examples/docker/kafka-oauth-strimzi/kafka/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>io.strimzi.oauth.docker</groupId>
88
<artifactId>kafka-oauth-docker-strimzi</artifactId>
99
<relativePath>../pom.xml</relativePath>
10-
<version>1.0.0-SNAPSHOT</version>
10+
<version>0.13.0</version>
1111
</parent>
1212

1313
<artifactId>kafka-oauth-docker-strimzi-kafka</artifactId>

examples/docker/kafka-oauth-strimzi/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>io.strimzi.oauth.docker</groupId>
88
<artifactId>kafka-oauth-docker-parent</artifactId>
99
<relativePath>../pom.xml</relativePath>
10-
<version>1.0.0-SNAPSHOT</version>
10+
<version>0.13.0</version>
1111
</parent>
1212

1313
<artifactId>kafka-oauth-docker-strimzi</artifactId>

examples/docker/kafka-oauth-strimzi/zookeeper/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>io.strimzi.oauth.docker</groupId>
88
<artifactId>kafka-oauth-docker-strimzi</artifactId>
99
<relativePath>../pom.xml</relativePath>
10-
<version>1.0.0-SNAPSHOT</version>
10+
<version>0.13.0</version>
1111
</parent>
1212

1313
<artifactId>kafka-oauth-docker-strimzi-zookeeper</artifactId>

examples/docker/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.strimzi.oauth.docker</groupId>
88
<artifactId>kafka-oauth-docker-parent</artifactId>
9-
<version>1.0.0-SNAPSHOT</version>
9+
<version>0.13.0</version>
1010
<packaging>pom</packaging>
1111

1212
<properties>

examples/docker/spring/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<groupId>io.strimzi.oauth.docker</groupId>
1515
<artifactId>kafka-oauth-docker-spring</artifactId>
16-
<version>1.0.0-SNAPSHOT</version>
16+
<version>0.13.0</version>
1717

1818
<properties>
1919
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

examples/docker/strimzi-kafka-image/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
<groupId>io.strimzi.oauth.docker</groupId>
88
<artifactId>kafka-oauth-docker-parent</artifactId>
99
<relativePath>../pom.xml</relativePath>
10-
<version>1.0.0-SNAPSHOT</version>
10+
<version>0.13.0</version>
1111
</parent>
1212

1313
<groupId>org.example</groupId>
1414
<artifactId>kafka-oauth-docker-strimzi-kafka</artifactId>
15-
<version>1.0.0-SNAPSHOT</version>
15+
<version>0.13.0</version>
1616

1717
<packaging>pom</packaging>
1818

examples/producer/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>io.strimzi</groupId>
88
<artifactId>oauth</artifactId>
99
<relativePath>../../pom.xml</relativePath>
10-
<version>1.0.0-SNAPSHOT</version>
10+
<version>0.13.0</version>
1111
</parent>
1212

1313
<artifactId>kafka-oauth-examples-producer</artifactId>

oauth-client/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>io.strimzi</groupId>
88
<artifactId>oauth</artifactId>
9-
<version>1.0.0-SNAPSHOT</version>
9+
<version>0.13.0</version>
1010
</parent>
1111

1212
<artifactId>kafka-oauth-client</artifactId>

oauth-common/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>io.strimzi</groupId>
88
<artifactId>oauth</artifactId>
9-
<version>1.0.0-SNAPSHOT</version>
9+
<version>0.13.0</version>
1010
</parent>
1111

1212
<artifactId>kafka-oauth-common</artifactId>

oauth-keycloak-authorizer/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>io.strimzi</groupId>
88
<artifactId>oauth</artifactId>
9-
<version>1.0.0-SNAPSHOT</version>
9+
<version>0.13.0</version>
1010
</parent>
1111

1212
<artifactId>kafka-oauth-keycloak-authorizer</artifactId>

oauth-server-plain/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>io.strimzi</groupId>
88
<artifactId>oauth</artifactId>
9-
<version>1.0.0-SNAPSHOT</version>
9+
<version>0.13.0</version>
1010
</parent>
1111

1212
<artifactId>kafka-oauth-server-plain</artifactId>

oauth-server/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>io.strimzi</groupId>
88
<artifactId>oauth</artifactId>
9-
<version>1.0.0-SNAPSHOT</version>
9+
<version>0.13.0</version>
1010
</parent>
1111

1212
<artifactId>kafka-oauth-server</artifactId>

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>io.strimzi</groupId>
77
<artifactId>oauth</artifactId>
8-
<version>1.0.0-SNAPSHOT</version>
8+
<version>0.13.0</version>
99
<packaging>pom</packaging>
1010

1111
<licenses>

testsuite/common/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>io.strimzi.oauth.testsuite</groupId>
99
<artifactId>kafka-oauth-testsuite</artifactId>
10-
<version>1.0.0-SNAPSHOT</version>
10+
<version>0.13.0</version>
1111
</parent>
1212

1313
<artifactId>common</artifactId>

testsuite/docker/hydra-import/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>io.strimzi.oauth.testsuite</groupId>
99
<artifactId>kafka-oauth-testsuite-docker-pom</artifactId>
10-
<version>1.0.0-SNAPSHOT</version>
10+
<version>0.13.0</version>
1111
</parent>
1212

1313
<packaging>pom</packaging>

testsuite/docker/kafka/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>io.strimzi.oauth.testsuite</groupId>
99
<artifactId>kafka-oauth-testsuite-docker-pom</artifactId>
10-
<version>1.0.0-SNAPSHOT</version>
10+
<version>0.13.0</version>
1111
</parent>
1212

1313
<packaging>pom</packaging>

testsuite/docker/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>io.strimzi.oauth.testsuite</groupId>
99
<artifactId>kafka-oauth-testsuite</artifactId>
10-
<version>1.0.0-SNAPSHOT</version>
10+
<version>0.13.0</version>
1111
</parent>
1212

1313
<packaging>pom</packaging>

testsuite/hydra-test/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>io.strimzi.oauth.testsuite</groupId>
99
<artifactId>kafka-oauth-testsuite</artifactId>
10-
<version>1.0.0-SNAPSHOT</version>
10+
<version>0.13.0</version>
1111
</parent>
1212

1313
<artifactId>hydra-test</artifactId>

testsuite/keycloak-auth-tests/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>io.strimzi.oauth.testsuite</groupId>
99
<artifactId>kafka-oauth-testsuite</artifactId>
10-
<version>1.0.0-SNAPSHOT</version>
10+
<version>0.13.0</version>
1111
</parent>
1212

1313
<artifactId>keycloak-auth-tests</artifactId>

testsuite/keycloak-authz-kraft-tests/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>io.strimzi.oauth.testsuite</groupId>
99
<artifactId>kafka-oauth-testsuite</artifactId>
10-
<version>1.0.0-SNAPSHOT</version>
10+
<version>0.13.0</version>
1111
</parent>
1212

1313
<artifactId>keycloak-authz-kraft-tests</artifactId>

testsuite/keycloak-authz-tests/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>io.strimzi.oauth.testsuite</groupId>
99
<artifactId>kafka-oauth-testsuite</artifactId>
10-
<version>1.0.0-SNAPSHOT</version>
10+
<version>0.13.0</version>
1111
</parent>
1212

1313
<artifactId>keycloak-authz-tests</artifactId>

testsuite/keycloak-authz-zk-tests/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>io.strimzi.oauth.testsuite</groupId>
99
<artifactId>kafka-oauth-testsuite</artifactId>
10-
<version>1.0.0-SNAPSHOT</version>
10+
<version>0.13.0</version>
1111
</parent>
1212

1313
<artifactId>keycloak-authz-zk-tests</artifactId>

testsuite/keycloak-errors-tests/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>io.strimzi.oauth.testsuite</groupId>
99
<artifactId>kafka-oauth-testsuite</artifactId>
10-
<version>1.0.0-SNAPSHOT</version>
10+
<version>0.13.0</version>
1111
</parent>
1212

1313
<artifactId>keycloak-errors-tests</artifactId>

testsuite/mock-oauth-server/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>io.strimzi.oauth.testsuite</groupId>
99
<artifactId>kafka-oauth-testsuite</artifactId>
10-
<version>1.0.0-SNAPSHOT</version>
10+
<version>0.13.0</version>
1111
</parent>
1212

1313
<artifactId>mock-oauth-server</artifactId>

testsuite/mockoauth-tests/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>io.strimzi.oauth.testsuite</groupId>
99
<artifactId>kafka-oauth-testsuite</artifactId>
10-
<version>1.0.0-SNAPSHOT</version>
10+
<version>0.13.0</version>
1111
</parent>
1212

1313
<artifactId>mockoauth-tests</artifactId>

testsuite/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.strimzi.oauth.testsuite</groupId>
88
<artifactId>kafka-oauth-testsuite</artifactId>
9-
<version>1.0.0-SNAPSHOT</version>
9+
<version>0.13.0</version>
1010

1111
<packaging>pom</packaging>
1212

0 commit comments

Comments
 (0)