Skip to content

Commit

Permalink
Prepare for 0.10.0 release
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Strukelj <marko.strukelj@gmail.com>
  • Loading branch information
mstruk committed Feb 4, 2022
1 parent 10d73e9 commit ab53aca
Show file tree
Hide file tree
Showing 23 changed files with 43 additions and 26 deletions.
17 changes: 17 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
Release Notes
=============

0.10.0
------

### Added connect and read timeouts for communication with authorization server

Before, when Kafka client or broker connected to the authorization server during authentication or token validation, there was no connect timeout and no read timeout applied. As a result, if a reverse proxy was in front of the authorization server or a network component glitch prevented normal connectivity, it could happen that the authentication request would stall for a long time.

In order to address this, the default connect timeout and read timeout are now both set to 60 seconds and they are configurable via `oauth.connect.timeout.seconds` and `oauth.read.timeout.seconds`.

### Added groups extraction and exposed groups info via OAuthKafkaPrincipal

Added an authentication time mechanism on the broker where a JsonPath query can be configured to extract a set of groups from a JWT token during authentication. A custom authorizer can then retrieve this information through `OAuthKafkaPrincipal` object available during the `authorize()` call.

### Added access to parsed JWT token

When writing a custom authorizer you may need access to the already parsed JWT token or a map of claims returned by the introspection endpoint. A `getJSON()` method has been added to `BearerTokenWithPayload`.

0.9.0
-----

Expand Down
2 changes: 1 addition & 1 deletion examples/consumer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>io.strimzi</groupId>
<artifactId>oauth</artifactId>
<relativePath>../../pom.xml</relativePath>
<version>1.0.0-SNAPSHOT</version>
<version>0.10.0</version>
</parent>

<artifactId>kafka-oauth-examples-consumer</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/docker/kafka-oauth-strimzi/kafka/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>io.strimzi.oauth.docker</groupId>
<artifactId>kafka-oauth-docker-strimzi</artifactId>
<relativePath>../pom.xml</relativePath>
<version>1.0.0-SNAPSHOT</version>
<version>0.10.0</version>
</parent>

<artifactId>kafka-oauth-docker-strimzi-kafka</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/docker/kafka-oauth-strimzi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>io.strimzi.oauth.docker</groupId>
<artifactId>kafka-oauth-docker-parent</artifactId>
<relativePath>../pom.xml</relativePath>
<version>1.0.0-SNAPSHOT</version>
<version>0.10.0</version>
</parent>

<artifactId>kafka-oauth-docker-strimzi</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/docker/kafka-oauth-strimzi/zookeeper/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>io.strimzi.oauth.docker</groupId>
<artifactId>kafka-oauth-docker-strimzi</artifactId>
<relativePath>../pom.xml</relativePath>
<version>1.0.0-SNAPSHOT</version>
<version>0.10.0</version>
</parent>

<artifactId>kafka-oauth-docker-strimzi-zookeeper</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions examples/docker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.strimzi.oauth.docker</groupId>
<artifactId>kafka-oauth-docker-parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>0.10.0</version>
<packaging>pom</packaging>

<properties>
Expand All @@ -15,7 +15,7 @@
<plugins.resources.version>3.1.0</plugins.resources.version>

<nimbus.jose.version>9.10</nimbus.jose.version>
<strimzi-oauth.version>1.0.0-SNAPSHOT</strimzi-oauth.version>
<strimzi-oauth.version>0.10.0</strimzi-oauth.version>
</properties>

<licenses>
Expand Down
2 changes: 1 addition & 1 deletion examples/docker/spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<groupId>io.strimzi.oauth.docker</groupId>
<artifactId>kafka-oauth-docker-spring</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>0.10.0</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
4 changes: 2 additions & 2 deletions examples/docker/strimzi-kafka-image/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
<groupId>io.strimzi.oauth.docker</groupId>
<artifactId>kafka-oauth-docker-parent</artifactId>
<relativePath>../pom.xml</relativePath>
<version>1.0.0-SNAPSHOT</version>
<version>0.10.0</version>
</parent>

<groupId>org.example</groupId>
<artifactId>kafka-oauth-docker-strimzi-kafka</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>0.10.0</version>

<packaging>pom</packaging>

Expand Down
2 changes: 1 addition & 1 deletion examples/producer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>io.strimzi</groupId>
<artifactId>oauth</artifactId>
<relativePath>../../pom.xml</relativePath>
<version>1.0.0-SNAPSHOT</version>
<version>0.10.0</version>
</parent>

<artifactId>kafka-oauth-examples-producer</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion oauth-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.strimzi</groupId>
<artifactId>oauth</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>0.10.0</version>
</parent>

<artifactId>kafka-oauth-client</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion oauth-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.strimzi</groupId>
<artifactId>oauth</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>0.10.0</version>
</parent>

<artifactId>kafka-oauth-common</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion oauth-keycloak-authorizer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.strimzi</groupId>
<artifactId>oauth</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>0.10.0</version>
</parent>

<artifactId>kafka-oauth-keycloak-authorizer</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion oauth-server-plain/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.strimzi</groupId>
<artifactId>oauth</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>0.10.0</version>
</parent>

<artifactId>kafka-oauth-server-plain</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion oauth-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.strimzi</groupId>
<artifactId>oauth</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>0.10.0</version>
</parent>

<artifactId>kafka-oauth-server</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>io.strimzi</groupId>
<artifactId>oauth</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>0.10.0</version>
<packaging>pom</packaging>

<licenses>
Expand Down
2 changes: 1 addition & 1 deletion testsuite/docker/hydra-import/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>io.strimzi.oauth.testsuite</groupId>
<artifactId>kafka-oauth-testsuite-docker-pom</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>0.10.0</version>
</parent>

<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion testsuite/docker/kafka/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>io.strimzi.oauth.testsuite</groupId>
<artifactId>kafka-oauth-testsuite-docker-pom</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>0.10.0</version>
</parent>

<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion testsuite/docker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>io.strimzi.oauth.testsuite</groupId>
<artifactId>kafka-oauth-testsuite</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>0.10.0</version>
</parent>

<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion testsuite/hydra-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>io.strimzi.oauth.testsuite</groupId>
<artifactId>kafka-oauth-testsuite</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>0.10.0</version>
</parent>

<artifactId>hydra-test</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion testsuite/keycloak-auth-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>io.strimzi.oauth.testsuite</groupId>
<artifactId>kafka-oauth-testsuite</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>0.10.0</version>
</parent>

<artifactId>keycloak-auth-tests</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion testsuite/keycloak-authz-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>io.strimzi.oauth.testsuite</groupId>
<artifactId>kafka-oauth-testsuite</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>0.10.0</version>
</parent>

<artifactId>keycloak-authz-tests</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion testsuite/keycloak-errors-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>io.strimzi.oauth.testsuite</groupId>
<artifactId>kafka-oauth-testsuite</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>0.10.0</version>
</parent>

<artifactId>keycloak-errors-tests</artifactId>
Expand Down
6 changes: 3 additions & 3 deletions testsuite/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.strimzi.oauth.testsuite</groupId>
<artifactId>kafka-oauth-testsuite</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>0.10.0</version>

<packaging>pom</packaging>

Expand Down Expand Up @@ -38,7 +38,7 @@
<version.junit>4.12</version.junit>
<arquillian.cube.version>1.18.2</arquillian.cube.version>
<spotbugs.version>3.1.12</spotbugs.version>
<strimzi-oauth.version>1.0.0-SNAPSHOT</strimzi-oauth.version>
<strimzi-oauth.version>0.10.0</strimzi-oauth.version>
<checkstyle.dir>..</checkstyle.dir>

<kafka.docker.image>quay.io/strimzi/kafka:0.23.0-kafka-2.8.0</kafka.docker.image>
Expand All @@ -63,7 +63,7 @@
<dependency>
<groupId>io.strimzi.oauth.testsuite</groupId>
<artifactId>jwt-over-plain-keycloak-authz-test</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>0.10.0</version>
</dependency>
</dependencies>
</dependencyManagement>
Expand Down

0 comments on commit ab53aca

Please sign in to comment.