p2-inc / keycloak-events

Useful Keycloak event listener implementations and utilities.
https://phasetwo.io
Other
168 stars 35 forks source link

Recommended way to manage webhooks #16

Closed MarcinBondaruk closed 1 year ago

MarcinBondaruk commented 1 year ago

Hello, What would be a recommended way to manage webhooks? I would love to manage them through git repository somehow. Spinning up a container, waiting till its available and running startup script that performs api calls with curl could be a possibility. Have you solved encountered such a need in your projects. Please share what would you recommend. Cheers!

xgp commented 1 year ago

Hi @MarcinBondaruk . Thanks for the message. Right now, the only way to manage webhooks is through the API. For our own use, we have a few bash scripts that create some default webhooks when we bootstrap a new Keycloak environment, but nothing that would constitute a "best practice". The old version of Keycloak used to have a facility for running such scripts on startup, but that seems to be absent in the Quarkus version.

MarcinBondaruk commented 1 year ago

Thank you very much for your answer! :)