From fc0e1e8950f49b6f2ab59e20f883e78149061f5e Mon Sep 17 00:00:00 2001 From: stheppi Date: Tue, 2 Jan 2024 20:03:15 +0000 Subject: [PATCH] Avoid cast exception CREDENTIALS property was set as STRING and is read as a PASSWORD. This creates a runtime exception. The change moves the connector configuration to be a password. --- .../connect/gcp/storage/config/AuthModeSettings.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kafka-connect-gcp-storage/src/main/scala/io/lenses/streamreactor/connect/gcp/storage/config/AuthModeSettings.scala b/kafka-connect-gcp-storage/src/main/scala/io/lenses/streamreactor/connect/gcp/storage/config/AuthModeSettings.scala index 54d4faaba..8623040e8 100644 --- a/kafka-connect-gcp-storage/src/main/scala/io/lenses/streamreactor/connect/gcp/storage/config/AuthModeSettings.scala +++ b/kafka-connect-gcp-storage/src/main/scala/io/lenses/streamreactor/connect/gcp/storage/config/AuthModeSettings.scala @@ -74,7 +74,7 @@ trait AuthModeSettingsConfigKeys extends WithConnectorPrefix { ) .define( CREDENTIALS, - Type.STRING, + Type.PASSWORD, "", Importance.HIGH, "GCP Credentials if using 'credentials' auth mode.",