I am trying to write a custom source connector for kafka connect and it is requiring for me to write a simple plain kafka producer inside it (that has no relevance with any of the connector properties).The requirement is to send messages about bad records that I encounter and send it to another topic using a plain producer.
So in order to start the producer I need the bootstrapserver config that was originally used to start the connect worker.
Is it possible to dynamically read the connect-worker config inside a connector?