Skip to content

Identity provider URL update behavior doesn't match UI #583

Closed
@keeganwitt

Description

@keeganwitt

If you change the provider URL (for example maybe you migrated the provider URL or are moving from one provider to another), it forces the re-creation of all the identity pools using that identity provider. However, f you make this change via the Confluent Cloud console, it doesn't force this update. As an example, changing my_provider's JWKS and/or issuer URL(s) will re-create my_pool.

resource "confluent_identity_provider" "my_provider" {
  display_name = "My OIDC Provider"
  description  = "OIDC provider for workload authentication"
  issuer       = "https://example.com"
  jwks_uri     = "https://example.com/jwks"
}

resource "confluent_identity_pool" "my_pool" {
  identity_provider {
    id = resource.my_provider.id
  }
  display_name   = "My Identity Pool"
  description    = "Identity pool for workload authentication"
  identity_claim = "claims.sub"
  filter         = "claims.aud==\"confluent.cloud\"&&claims.sub == \"spiffe://example.com/ns/my-namespace/sa/my-service-account\""
}

This is because of

if d.HasChangesExcept(paramDisplayName, paramDescription) {
return diag.Errorf("error updating Identity Provider %q: only %q, %q attributes can be updated for Identity Provider", d.Id(), paramDisplayName, paramDescription)
}

and
if d.HasChangesExcept(paramDisplayName, paramDescription, paramIdentityClaim, paramFilter) {
return diag.Errorf("error updating Identity Pool %q: only %q, %q, %q, %q attributes can be updated for Identity Pool", d.Id(), paramDisplayName, paramDescription, paramIdentityClaim, paramFilter)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions