// This assembly is included in the following assemblies:
//
// assembly-deployment-configuration-kafka-connect.adoc
// assembly-deployment-configuration-kafka-connect-s2i.adoc

// Save the context of the assembly that is including this one.
// This is necessary for including assemblies in assemblies.
// See also the complementary step on the last line of this file.

[id='assembly-kafka-connect-external-configuration-{context}']

= Using external configuration and secrets

Kafka Connect connectors are configured using an HTTP REST interface.
The connector configuration is passed to Kafka Connect as part of an HTTP request and stored within Kafka itself.

Some parts of the configuration of a Kafka Connect connector can be externalized using ConfigMaps or Secrets.
You can then reference the configuration values in HTTP REST commands (this keeps the configuration separate and more secure, if needed).
This method applies especially to confidential data, such as usernames, passwords, or certificates.

ConfigMaps and Secrets are standard {ProductPlatformName} resources used for storing of configurations and confidential data.

include::con-kafka-connect-external-configuration.adoc[leveloffset=+1]

include::proc-kafka-connect-mounting-secrets-as-environment-variables.adoc[leveloffset=+1]

include::proc-kafka-connect-mounting-volumes.adoc[leveloffset=+1]
