Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: Unrecognized field "bruteForceStrategy"` #1203

Open
Writtscher opened this issue Nov 20, 2024 · 14 comments
Open

Issue: Unrecognized field "bruteForceStrategy"` #1203

Writtscher opened this issue Nov 20, 2024 · 14 comments
Labels

Comments

@Writtscher
Copy link

Current Behavior

We have updated our keycloak to the latest version 26.0.5. Now our configuration job in our pipeline fails with:

jakarta.ws.rs.ProcessingException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "bruteForceStrategy"

We are using v6.1.5/keycloak-config-cli-25.0.1. When is it planned to release a new version that fixes that issue?

Expected Behavior

No jakarta.ws.rs.ProcessingException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "bruteForceStrategy" error.

Steps To Reproduce

No response

Environment

  • Keycloak Version: [26.0.5]
  • keycloak-config-cli Version: [6.1.5/keycloak-config-cli-25.0.1]
  • Java Version: [21]

Anything else?

No response

@Writtscher Writtscher added the bug label Nov 20, 2024
@ma1uta
Copy link
Contributor

ma1uta commented Nov 21, 2024

Should be fixed with #1162.

@Writtscher
Copy link
Author

Thank you @ma1uta

Do you have any idea when it is planned to be released?

@ma1uta
Copy link
Contributor

ma1uta commented Nov 22, 2024

Unfortunately, no.

@service-github-lifetrust

We are also waiting for the new release. Who can give us an idea on when to expect the new jar?
Thanks

@patrickmichalina
Copy link

Awaiting the docker release myself

@ValentinLorand
Copy link

Waiting for the release, currently blocked in my Keycloak upgrade :)

@Writtscher
Copy link
Author

@ValentinLorand You can use the edge version for now and move to the released version when it is released.

@ValentinLorand
Copy link

ValentinLorand commented Nov 27, 2024

It works correctly by extracting the jar from the edge version of the docker image, thanks.

@kbelosevic
Copy link

What is the docker image or path of this edge version?

@service-github-lifetrust

@kbelosevic here it is:
https://hub.docker.com/r/adorsys/keycloak-config-cli/tags

I just did the following:

docker run --rm -it --entrypoint bash adorsys/keycloak-config-cli:edge
Then just docker cp <container-name>:/app/keycloak-config-cli.jar /tmp

After that you will have the latest .jar in the /tmp directory.

I don't really understand what is blocking the official release though...

@ErwanDL
Copy link

ErwanDL commented Dec 6, 2024

Still seeing this today with the image adorsys/keycloak-config-cli:6.2.1-26, against a 26.0.2 Keycloak instance:

Error message: HTTP 400 Bad Request{"error":"Unrecognized field \"bruteForceStrategy\" (class org.keycloak.representations.idm.RealmRepresentation), no t marked as ignorable (143 known properties: \"userFederationMappers\", \"rememberMe\", \"duplicateEmailsAllowed\", \"adminEventsDetailsEnabled\", \"users\", \"clientOfflineSessionMaxLifespan\", \"webAuthnPolicyRequireResidentKey\", \"webAuthnPolicyPasswordlessAvoidSameAu thenticatorRegister\", \"components\", \"otpPolicyType\", \"accessCodeLifespanUserAction\", \"id\", \"webAuthnPolicyAttestationConveyancePreference\", \"enabledEventTypes\", \"applications\", \"webAuthnPolicyPasswordlessSignatureAlgorithms\", \"eventsListeners\", \"ssoSes sionMaxLifespanRememberMe\", \"defaultDefaultClientScopes\", \"webAuthnPolicyPasswordlessCreateTimeout\", \"clientOfflineSessionIdleTimeout\", \"notBefore\", \"publicKey\", \"smtpServer\", \"clientPolicies\", \"resetPasswordAllowed\", \"webAuthnPolicyAvoidSameAuthenticato rRegister\", \"accessTokenLifespanForImplicitFlow\", \"webAuthnPolicyPasswordlessUserVerificationRequirement\", \"clientScopes\", \"internationalizationEnabled\", \"defaultRole\", \"accessTokenLifespan\", \"passwordCredentialGrantAllowed\", \"federatedUsers\", \"applicati onScopeMappings\" [truncated]])\n at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 1283] (through reference chain: org.keycloak.representations.idm.RealmRepresentation[\"bruteForceStrategy\"])"}

@tim-koehler
Copy link

@ErwanDL I had the same issue when using keycloak-config-cli-26.0.5 in combination with the keycloak-admin-client in version 26.0.0. Upgrading the keycloak-admin-client to 26.0.3 solved it for me.

@ErwanDL
Copy link

ErwanDL commented Dec 6, 2024

@tim-koehler I'm not sure how to upgrade keycloak-admin-client specifically but upgrading my entire Keycloak instance to 25.0.5 has solved this issue indeed, thank you. Getting some new errors (500s and 404s) when running keycloak-config-cli now, but hey it's still progress 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants