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.

Import realm at startup

See original GitHub issue

Description

Similar to the Wildfly distribution, we should also allow importing a realm at startup like when using keycloak.import in Wildfly distribution.

IMO, we should not allow this in production but only when running the start-dev command and for development/testing purposes.

That said, perhaps we could have a --import-realm option.

Discussion

No response

Motivation

Improve developer experience by allowing importing realms at startup. Especially when running in a container.

Details

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
MikeShinercommented, Mar 25, 2022

Really disappointed to see this wasn’t included in 17.0.1. It’s a requirement of our business, especially coming from older versions. Pre-baking realm into the images will have to do for now.

5reactions
overheadhuntercommented, Feb 21, 2022

As concluded in duplicate discussion #10216, this is vital for production environments (i.e. for start) in order to deploy preconfigured realms as end-users can not be expected to set up a realm matching the application’s needs. Using deployment descriptors for k8s/compose/openshift/… is basically the norm today and are expected to set up everything without needing admins to log into each service individually in order to integrate them. See also https://github.com/keycloak/keycloak/issues/10216#issuecomment-1042937867.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keycloak 17 docker container : How to export/import realm ...
There is option --import-realm for start command. See Importing a Realm during Startup in Importing and Exporting Realms - Keycloak.
Read more >
Keycloak 17.0.1 Import Realm on Docker ... - Stack Overflow
1 that can be done at starting up a docker container (with docker-compose). I want to be able to do this in "start"...
Read more >
How to import/export Realm in Keycloak - Opcito
A step-by-step guide to export/import Realm in Keycloak. ... Import and export in Keycloak are triggered at server boot time, and parameters ...
Read more >
How to export and import Realms in Keycloak - Mastertheboss
In order to export a Realm you can either use the Admin Console of Keycloak or the script kc.sh available in the bin...
Read more >
Keycloak in Docker #2 – How to import a Keycloak realm
Import a Keycloak realm on a container startup using an env variable · Define the volume for realm import · Recreate the container....
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