Import realm at startup
See original GitHub issueDescription
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:
- Created 2 years ago
- Reactions:4
- Comments:6 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.