question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keycloak Dev Service doesn't use the Quarkus distribution of Keycloak

See original GitHub issue

Describe the bug

The Keycloak dev service is great, and the Dev UI for auth is very helpful. #17364 is impressive work, but if the Quarkus project doesn’t use the Quarkus distribution of Keycloak, then who will?

Expected behavior

IMO (without much insight into any of the two projects) Keycloak dev mode should default to using Keycloak.X, possibly allowing a toggle to the regular distribution for anyone who gets blocked by the “preview” status.

Actual behavior

Starts regular Keycloak, which uses ~200MB more memory and double the startup time of Keycloak.X, compared to my hack to use Keycloak.X as dev service: https://github.com/Yolean/kubernetes-keycloakx/tree/master/quarkus-dev#keycloakx-for-quarkus-dev-mode

How to Reproduce?

Output of uname -a or ver

No response

Output of java -version

OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.1.0

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.6.3

Additional information

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
sberyozkincommented, Aug 20, 2021

@solsson There is a good chance Keycloak experts will help with improving it - as soon as I can get a custom realm import working with http only I’ll go ahead and finalize the PR such that it works for both WildFly and Keycloak-X containers; in meantime please keep stressing the initial DevServices/UI for Keycloak and let us know what you think (with issues, etc) - thanks

0reactions
solssoncommented, Aug 19, 2021

I suppose that assistance from the Keycloak project could be necessary here. I’ve failed to assess the status of the “preview” such as if it’s feature complete or not. However the principle of configuration at build time is a great improvement over the regular keycloak image. Some of the documented env:s there cause an additional appserver start and teardown from the entrypoint, which can delay readiness with minutes. Configuration at build time does make some “quick start” cases impractical though, and i’m not surprised if you’ve concluded that Quarkus would have to push its own downstream keycloak-x image.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dev Services and UI for OpenID Connect (OIDC) - Quarkus
This guide covers the Dev Services and UI for OpenID Connect (OIDC) Keycloak provider and explains how to support Dev Services and UI...
Read more >
Migrating to Quarkus distribution - Keycloak
The new Quarkus powered distribution leverages a simple configuration file instead, with corresponding CLI arguments and environment variables as options, ...
Read more >
Keycloak with Quarkus: Better together | Novatec
Starting with released version 17.0.0, the default Keycloak distribution is now based on Quarkus. As a result, the WildFly based ...
Read more >
Getting started with Keycloak powered by Quarkus
Check that the server started successfully: When running in development mode, Keycloak uses by default an H2 Database to store its configuration ...
Read more >
Quarkus Dev Services for OpenId Connect Keycloak provider
https://twitter.com/danieloh30https://www.linkedin.com/in/daniel-oh-083818112/# Quarkus # Keycloak #DevServices#CloudNative #Kubernetes ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found