Anyone here used keycloak? Has anyone deployed it ...
# random
e
Anyone here used keycloak? Has anyone deployed it on AWS or digital ocean
e
Have deployed in our ECS cluster
e
Just curious to know what is the tech stack of your application?
e
We use react and for backend we use java
e
I am learning keycloak one thing I did not get deployment part. Lets say I am in windows machine and I have created realm, users, roles etc now I want to deploy keycloak with Nodejs application on heroku or AWS or digital ocean then how will data persistence happen in keycloak? Do we need to download realm.json file and then deploy our nodejs app with that realm.json file??
will that import all the clients, users, roles etc?
e
• where is keycloak server hosted? • You create clients and users and assign roles for the client to the users. • Not sure how you are interacting with keycloak?
e
I want to host keycloak on digital ocean or linode or aws. But even if I use docker postgresql DB with keycloak how will I persist data in docker volume? For that I will have to export realm.json file to volume right??
Another option is without docker lets say I add users, roles create client etc. now I want to host this application with keycloak still I have to use realm.json right??
e
Why do u need realm.json? From front end u need only few values like realm name,client id, keycloak host which you can copy from UI
t
@elegant-appointment-49116 how do you handle audit data for keycloak? I found that a big missing piece, it is very easy to mess up when roles and scopes grow huge, and there is no way to figure out the history easily.
e
We have implemented audit in our backend. We send the token to backend and backend talk to keycloak server to details and we persist them with regular archival
e
One basic question if I have keycloak running on docker with postgreSQL and if I want to connect frontend react app to access users, etc then I just have to add keycloak.json file in frontend application is that correct ?? Nothing else right?
e
ideally should be good. We have not used that too we .env because keycloak integration with react supports that
e
Also how do you schedule backups in keycloak? Is through AWS?
e
we have created secondary db
e
Do you mean to say data replication?? Any resources links which you could suggest for keycloak?
e
this is standard db replication
e
How can I restore keycloak server data? Lets say I am using standalone keycloak server and there are around 100s of users now after few months if I want to migrate to keycloak docker + postgreSQL then how can I get all the user data, clients, etc ??
e
in ur standalone ensure not to couple ur db. Have it outside
e
Yes lets say if keep it as it is H2 DB then how can we do that?
e
H2 is not a recommended for any production grade. Its inmemory DB. You should look out ways to export them import them
e
Yes I got that H2 should not be used but lets say if I deploy docker+Postgresql and after few months if I want to go with docker+MySQL then how to import/export user data
e
This question is more generalized question and have nothing to do with keycloak . I have not done such a migration. But it should be based on the schema and data types of each databases. You can look for general db migration tools for such things
e
Hello Balaji, have you used keycloak with react login register custom pages?
@elegant-appointment-49116 when you worked on keycloak was login/register page hosted on keycloak server? Or did you use custom login page and connect that with keycloak admin APIs for register and login??
e
we used the keycloak login page we did not do any customization. For us it was not needed
👍 1