Hey folks! I need Users in my app database, am I t...
# talk-kratos
b
Hey folks! I need Users in my app database, am I to supposed to use hooks https://www.ory.sh/docs/kratos/self-service/hooks? and are this hooks available in Ory Cloud or need a self-hosted instance to configure it?
p
Hi @billowy-hydrogen-91000 All features that are in Kratos are also available in the Cloud. You will just need to use the Ory CLI to update the configuration files https://www.ory.sh/docs/guides/cli/config-with-cli
And yes you can use hooks to make a call after registration to your API, storing some of the user traits. 🙂
b
Very thank you @proud-plumber-24205. So, I tried to update Ory configuration through cli following the example from the page you describe above and I having some troubles with the schema validation. I'm not being able to update the configuration.
p
Hi @billowy-hydrogen-91000 Did you try
ory patch
or
ory update
with
ory patch
you can use a partial configuration file, and with
ory update
you need a full configuration file
b
@proud-plumber-24205 I found the problem, it was a typo on a field. I'm having other issue now, I got this response
ip 127.0.0.1 is in the 127.0.0.0/8 range
and the configuration is not applied if I set the web hook url as
<http://localhost:3000>.
I'd like to test it in my local environment using ory tunnel. What I'm missing here?. Thanks
p
You need to provide a resolvable URL to that, since the cloud will send a request to the IP address you specify
Localhost is targeting the cloud server, which won't work 🙂
You could maybe use something like ngrok
and point the cloud to call the unique ngrok link (which your PC is hosting)
b
oh I got it, is there any other way in order to avoid use an extra service just for development purposes?
p
You could spin up Kratos locally and test it against that, then just update your cloud project with the same config