strimzi / strimzi-kafka-oauth

OAuth2 support for Apache Kafka® to work with many OAuth2 authorization servers
Apache License 2.0
146 stars 90 forks source link

Add connect and read timeouts for communication with authorization server #132

Closed mstruk closed 3 years ago

mstruk commented 3 years ago

In some circumstances the network glitches can result in indefinite blocking of JWKS keys refresh background job. This commit adds setting the connect and read timeouts with default value of 60 seconds for both. Use oauth.connect.timeout.seconds and oauth.read.timeout.seconds system properties, env vars or as part of listener or client jaas config to set non-default values in seconds.

Signed-off-by: Marko Strukelj marko.strukelj@gmail.com