mrparkers / terraform-provider-keycloak

Terraform provider for Keycloak
https://registry.terraform.io/providers/mrparkers/keycloak/latest/docs
MIT License
592 stars 291 forks source link

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

Open Ernstsen opened 5 months ago

Ernstsen commented 5 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.