terraform-provider-kafka-connect icon indicating copy to clipboard operation
terraform-provider-kafka-connect copied to clipboard

How to use provider to configure connectors in Confluent Cloud cluster directly?

Open askoriy opened this issue 4 years ago • 3 comments

All guides of using kafka connect say to run ./bin/connect-standalone providing connect-standalone.properties and then connect using url = "http://localhost:8083". However, I noticed that for configuring connectors via GUI interface Confluent Cloud provides API endpoint: https://confluent.cloud/api/accounts/{{ env_id }}/clusters/{{ cluster_id }} The format of API is the same, however the difference is that Confluent Cloud API uses JWT token authorization, but terraform sends Authorization: Basic header. So Terraform can't authorize.

Is it possible to add JWT authorization so the provider could work directly with Confluent Cloud?

If I wrong please explain the way how to use the provider with Confluent Cloud?

askoriy avatar Nov 23 '20 19:11 askoriy

I think supporting arbitrary headers is probably a good idea.

Mongey avatar Dec 14 '20 14:12 Mongey

We would love this feature as we've just started using your excellent confluent cloud provided and are looking as work arounds for connecting the SQL cdc connector into it

Marcus-James-Adams avatar Dec 20 '20 11:12 Marcus-James-Adams

This seems directly related to #41.

FWIW, I have a PR against the underlying Kafka Connect client library that adds the ability for it to pass along arbitrary headers (which I think would be a prerequisite for this work, unless we swap out or reimplement the underlying client lib).

benweint avatar Jun 02 '22 04:06 benweint