terraform-provider-keycloak icon indicating copy to clipboard operation
terraform-provider-keycloak copied to clipboard

Keycloak version >= 24 support?

Open sventorben opened this issue 1 year ago • 8 comments

I'm reaching out to see if there are any plans to update the Keycloak Terraform provider for Keycloak version 24 support.

Many of us are eager to take advantage of the new features in version >= 24 and integrate them into our Terraform workflows. Could you share if this is on the roadmap, and if so, any expected timelines? Also, if there's a way for the community to stay updated on progress or plans, that would be great to know.

Appreciate all the work you do on this provider. It's been incredibly helpful for our projects.

sventorben avatar Mar 26 '24 10:03 sventorben

Now that the user profile is pretty much mandatory, the 'keycloak_realm_user_profile' resource type is essential to setup any managed attributes beyond the default. Right now with 24.0.3, when I try to use this, it complains that you can't remove username or email... in other words, it seems to try to do a POST perhaps to the Admin REST API instead of a PUT to update the existing profile. Profile is an oddity as there is just a single resource, pre-existing now, so an import should/could be assumed.

bradhead avatar May 01 '24 16:05 bradhead

also it's missing the new multivalued flag for user profile attributes in KC24.

ofairfoul avatar May 27 '24 20:05 ofairfoul

Hello everyone,

if not done already please participate in the latest survey from the Keycloak team https://www.keycloak.org/2024/06/realm-config-manamagemtn-tools-survey. This could give this provider the needed gravity.

ghost avatar Jun 28 '24 07:06 ghost

@sventorben have you used this provider with keycloak version > =23.0.0 ? We are pushing towards updating keycloak to newer versions (we are at the moment at 22.0.0 testing it at the moment with 23.0.0) and not sure if this provider works with higher versions than this, or if it will support the latest keycloak versions.

marijapopovikj-casumo avatar Jul 24 '24 09:07 marijapopovikj-casumo

@sventorben have you used this provider with keycloak version > =23.0.0 ? We are pushing towards updating keycloak to newer versions (we are at the moment at 22.0.0 testing it at the moment with 23.0.0) and not sure if this provider works with higher versions than this, or if it will support the latest keycloak versions.

Yes we do use it with KC 24.0.5. It is not supporting the latest features though.

sventorben avatar Jul 24 '24 09:07 sventorben

@sventorben have you tried to run the tests of this repo (as desrcibed in the README) with different keycloak versions? When I've tried to execute them I got couple of failing even with the default versions specified
21.0.1, 20.0.5 , 19.0.2.
Like this one

resource_keycloak_custom_user_federation_test.go 
  Error: custom user federation provider with id custom is not installed on the server
       
         with keycloak_custom_user_federation.custom,
         on terraform_plugin_test.tf line 6, in resource "keycloak_custom_user_federation" "custom":
          6: resource "keycloak_custom_user_federation" "custom" {
}

marijapopovikj-casumo avatar Jul 24 '24 10:07 marijapopovikj-casumo

No, we didn't execute any of the tests. I am not really familiar with Go programming and use the provider more like a pre-packages artifact and not trying to develop it or extend it. There was not really a need for me to execute the tests.

sventorben avatar Jul 25 '24 06:07 sventorben

There is promising PR https://github.com/mrparkers/terraform-provider-keycloak/pull/987 it would be awesome to have it, as we're stopped as well.

mkyc avatar Aug 01 '24 08:08 mkyc

According to the current README, the major version 24 and newer ones are now supported.

Supported Versions

This provider will officially support the latest three major versions of Keycloak, although older versions may still work.

The following versions are used when running acceptance tests in CI:

  • 26.3.2 (latest)
  • 26.2.5
  • 26.1.4
  • 26.0.8
  • 25.0.6
  • 24.0.5
  • 23.0.7
  • 22.0.5

According to the timestamps, this issue (and the comments above) was created before this project was taken over to be a part of the Keycloak project in November 2024.

I.e., I believe this can be closed 🙂

RafaelWO avatar Sep 03 '25 07:09 RafaelWO

Thanks for noting @RafaelWO !

sschu avatar Sep 03 '25 09:09 sschu