Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Unable to connect to Confluent using Pulumi #41

Closed
tusharshahrs opened this issue May 24, 2022 · 3 comments
Closed

Unable to connect to Confluent using Pulumi #41

tusharshahrs opened this issue May 24, 2022 · 3 comments
Assignees
Labels
kind/enhancement Improvements or new features resolution/fixed This issue was fixed
Milestone

Comments

@tusharshahrs
Copy link

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

Currently, logged in to Confluent using SSO and hence our username/password are not working to login to confluent through Pulumi. Tried creating an API key too (pair of key and secret) and used them as username and password and still getting :

error: 1 error occurred:
* login: Invalid username or password. 

Using an organization access token.

Affected area/feature

Pulumi-Service

@tusharshahrs tusharshahrs added the kind/enhancement Improvements or new features label May 24, 2022
@tusharshahrs
Copy link
Author

Currently, Pulumi only support username / password combination for this provider: confluent

@EvanBoyle EvanBoyle transferred this issue from pulumi/pulumi-cloud-requests May 24, 2022
@lukehoban
Copy link
Member

My understanding of things here.

This provider is a bridged Terraform provider based on github.com/Mongey/terraform-provider-confluentcloud.

That Terraform provider does not support username/password or API Key. See for example Mongey/terraform-provider-confluentcloud#59. This is the most requested ask in that provider.

Unfortunately - it appears fixing that issue itself is blocked on a limitation in the underlying Go SDK that that provider uses - tracked in cgroschupp/go-client-confluent-cloud#13. And that issue appears to require a transition to a fundamentally new version of the underlying Confluent v2 API.

There is a newer more official Confluent Terraform provider at https://github.com/confluentinc/terraform-provider-confluent. That provider does support API Keys (https://registry.terraform.io/providers/confluentinc/confluent/latest/docs#example-usage). We will be looking to enable that provider to be available in Pulumi as well - which may be the only available path to addressing this need given the blocking issues in upstream dependencies of the existing provider noted above.

@stack72 stack72 added the resolution/fixed This issue was fixed label Jun 5, 2022
@stack72 stack72 self-assigned this Jun 5, 2022
@stack72 stack72 added this to the 0.74 milestone Jun 5, 2022
@stack72
Copy link
Contributor

stack72 commented Jun 5, 2022

Hi all

I am going to close this issue out - we have made the "official" Confluent Cloud provider now available in the Pulumi - ecosystem

https://github.com/pulumi/pulumi-confluentcloud

You can find the packages available at:

https://www.npmjs.com/package/@pulumi/confluentcloud
https://pypi.org/project/pulumi-confluentcloud/
https://www.nuget.org/packages/Pulumi.ConfluentCloud

Unfortunately, there's no direct migration story between providers but I suggest you can use import

https://www.pulumi.com/docs/guides/adopting/import/

@stack72 stack72 closed this as completed Jun 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/enhancement Improvements or new features resolution/fixed This issue was fixed
Projects
None yet
Development

No branches or pull requests

3 participants