adorsys / keycloak-config-cli

Import YAML/JSON-formatted configuration files into Keycloak - Configuration as Code for Keycloak.
https://adorsys.github.io/keycloak-config-cli/
Apache License 2.0
800 stars 146 forks source link

Keycloak 26 #1160

Closed gruenewa closed 1 week ago

gruenewa commented 1 month ago

Problem Statement

Keycloak 26 is currently not supported. Latest keycloak-config-cli version 6.1.5 prints warning Local keycloak-config-cli (6.1.5-25.0.1) and remote Keycloak (26.0.0) may not compatible.

Proposed Solution

No response

Environment

Additional information

No response

Acceptance Criteria

No response

tanadeau commented 3 weeks ago

As of 26.0.4, this is now an error:

keycloak-config-cli-1  | 2024-10-31T20:47:24.918Z ERROR 1 --- [           main] d.a.k.config.KeycloakConfigRunner        : jakarta.ws.rs.ProcessingException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "bruteForceStrategy" (class org.keycloak.representations.idm.RealmRepresentation), not marked as ignorable (143 known properties: "userFederationMappers", "rememberMe", "duplicateEmailsAllowed", "adminEventsDetailsEnabled", "users", "clientOfflineSessionMaxLifespan", "webAuthnPolicyRequireResidentKey", "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister", "components", "otpPolicyType", "accessCodeLifespanUserAction", "id", "webAuthnPolicyAttestationConveyancePreference", "enabledEventTypes", "applications", "webAuthnPolicyPasswordlessSignatureAlgorithms", "eventsListeners", "ssoSessionMaxLifespanRememberMe", "defaultDefaultClientScopes", "webAuthnPolicyPasswordlessCreateTimeout", "clientOfflineSessionIdleTimeout", "notBefore", "publicKey", "smtpServer", "clientPolicies", "resetPasswordAllowed", "webAuthnPolicyAvoidSameAuthenticatorRegister", "accessTokenLifespanForImplicitFlow", "webAuthnPolicyPasswordlessUserVerificationRequirement", "clientScopes", "internationalizationEnabled", "defaultRole", "accessTokenLifespan", "passwordCredentialGrantAllowed", "federatedUsers", "applicationScopeMappings" [truncated]])
tanadeau commented 3 weeks ago

See also https://github.com/keycloak/keycloak/issues/34284 that would make this easier after upgrading to 26.0.4 or later.

attrobit commented 2 weeks ago

In the meantime the issue on keycloak admin client is fixed. Is there anything against increasing the Keycloak version to 26?

NanineO commented 4 days ago

Great job. When will this be published in a release?

teemuteemu commented 2 days ago

I'm also looking forward for the release