You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
0 commit comments