Repository navigation
Conversation
bc4bd1b to
7f9bb20
Compare
Add support for the confluent_identity_pool Terraform resource. The resource was already present in the embedded Terraform schema and provider metadata but was not included in the provider's resource configuration. This adds: - config/confluent_identity_pool/config.go — resource configurator - External name configuration entry - Provider registration Identity Pools are used in Confluent Cloud to map external identities (e.g. mTLS client certificates) to Confluent principals via Identity Providers. Signed-off-by: mac-110 <alexander.schaefer2@swisscom.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7f9bb20 to
abf0e2c
Compare
|
is there a reason why it is still not merged? |
Run make generate for the confluent_identity_pool configuration and add an example with the datasource placeholder convention used by the other examples. Follow-up to the previous commit by mac-110. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Björn Bärtschi <linuxsatellite@gmail.com>
|
Thanks @mac-110, this is a good start. CI never ran on this PR, and the generated files were missing, so I pushed a follow-up commit: |
Add the confluent_identity_provider resource and a reference from IdentityPool.spec.forProvider.identityProvider[].id, so the provider ID no longer has to be copied by hand. Also keep the imports in config/provider.go sorted. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Björn Bärtschi <linuxsatellite@gmail.com>
|
Pushed a second follow-up commit ( |
|
Thanks @bisbeb, both commits look good to me. Adding #58 also touches |
bisbeb
left a comment
There was a problem hiding this comment.
Approving. I went through the hand-written parts (the two config/ files, external_name.go, provider.go, generated.lst, both examples) and the generated reference resolver for identityProvider[].id; CI is green including check-diff. Details in the comment below. Thanks @mac-110 for starting this.
|
Review notes (I approved above). Thanks again @mac-110, this PR started the IdentityPool work. What I checked
Tested locally against a mock of the Confluent API (provider run out of cluster, responses based on the fixtures of the Terraform provider; nothing of this is in the PR): both resources reach Ready and Synced, the pool waits for the provider and then resolves Not tested: anything against real Confluent Cloud. That includes whether Confluent accepts real issuers and JWKS URIs and what the API returns for invalid values. The examples use I'll tick |
Summary
confluent_identity_poolTerraform resourceContext
Identity Pools are used in Confluent Cloud to map external identities (e.g. mTLS client certificates) to Confluent principals via Identity Providers. This enables certificate-based authentication for external consumers without API keys.
Terraform resource reference: https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/resources/confluent_identity_pool
Changes
config/confluent_identity_pool/config.goIdentityPool, ShortGroup:confluent)config/external_name.goconfluent_identity_poolentry withIdentifierFromProviderconfig/provider.goNote
This PR only adds the resource configuration. The generated types and controller code need to be produced by running
make generateas part of the CI/release pipeline. The pattern follows existing resources (e.g.confluent_service_account,confluent_role_binding).