keycloak / terraform-provider-keycloak

Terraform provider for Keycloak
https://registry.terraform.io/providers/mrparkers/keycloak/latest/docs
Apache License 2.0
648 stars 317 forks source link

Support using internal realm name on components for support with imported realms #929

Open Ernstsen opened 9 months ago

Ernstsen commented 9 months ago

Added support for components using the internal realm name.

This resolves issue #802

The issue arises as the provider assumes that realmId==parentId which is not the case for imported realms, as their parentId is the internalId generated by keycloak, which uses an UUID.

When the internal id is not set, the behavior defaults to the old one, as to not break any currently supported realms using this provider to manage their keys.