From 2a6871097669a0f745407217b57f9fa2718e4bb4 Mon Sep 17 00:00:00 2001 From: Mickael Maison Date: Tue, 2 Dec 2025 16:57:54 +0100 Subject: [PATCH] MINOR: Add Security section to Connect docs --- docs/connect.html | 4 ++++ docs/toc.html | 1 + 2 files changed, 5 insertions(+) diff --git a/docs/connect.html b/docs/connect.html index 85571bf115cb3..847f55bd398a7 100644 --- a/docs/connect.html +++ b/docs/connect.html @@ -591,6 +591,10 @@
verification steps with a pre-release artifact. If the verification succeeds, you can then release the plugin normally, and operators can upgrade to the compatible version.

+

Security

+ +

It's important to understand the security concerns inherent to Connect. First, Connect allows running custom plugins. These plugins can run arbitrary code, so you must trust them before installing them in your Connect clusters. By default, the REST API is unsecured and allows anyone that can access it to start and stop connectors. You should only directly expose the REST API to trusted users, otherwise it's easy to gain arbitrary code execution on Connect workers. By default, connectors can also override the configurations of the Kafka clients that Connect uses internally. Since Kafka 4.2.0, it's recommended to set connector.client.config.override.policy to Allowlist, this will be the default from Kafka 5.0.0, and explicitly only allow configurations that you need to override. Keep in mind that configurations that can load classes such as sasl.jaas.config or sasl.login.class should only be allowed if only trusted users can access the REST API as they, by design, enable executing code on the Connect worker.

+

8.3 Connector Development Guide

This guide describes how developers can write new connectors for Kafka Connect to move data between Kafka and other systems. It briefly reviews a few key concepts and then describes how to create a simple connector.

diff --git a/docs/toc.html b/docs/toc.html index 7fecf21fae176..881c6ac695f84 100644 --- a/docs/toc.html +++ b/docs/toc.html @@ -210,6 +210,7 @@
  • Error Reporting in Connect
  • Exactly-once support
  • Plugin Discovery +
  • Security
  • 8.3 Connector Development Guide