Hello again, Im wondering how I can use web hooks ...
# ory-network
b
Hello again, Im wondering how I can use web hooks or if they are available in cloud.
m
Hey Tony, you can configure them through the Ory CLI. Which webhook were you looking to use?
b
I would like to setup a post registration hook.
And I was also wondering if it’s possible for user import to use incremental id instead of uuid.
m
The UUID is not changeable AFAIK, but we are introducing a “metadata” field that you could use for your own internal id. as for post registration hook,
you can configure it like so:
Copy code
selfservice:
    registration:
      after:
        hooks:
          - hook: web_hook
            config:
              url: <http://a.aaa>
              method: ""
              body: file:///path/to/body.jsonnet
              auth:
                type: api_key
                config:
                  name: ""
                  value: ""
                  in: header
              response:
                ignore: false
https://www.ory.sh/docs/kratos/self-service/hooks https://www.ory.sh/docs/kratos/reference/configuration
The use the Ory CLI to export the cloud configuration, add the hook and upload the new config: https://www.ory.sh/docs/guides/cli/config-with-cli#overwrite--import-configuration
Hooks support in Ory Cloud is still relatively new, so please let me know how it goes.
b
Okay
I was thinking that I would add my id on traits. Is it a bad idea ?
m
At the moment I would not recommend it, since the traits are visible and modifieable by the end-user (through API calls). If possible save it in your application (since you probably also need it for your business logic you most likely want to have it in there anyway right?)
But yea the aforementioned “metadata” for identities will take care of that then, let me check what the status of that is
b
Thank you !
m
Yea, so it is already merged in open source and will most likely be part of the next release soon
b
Any idea when that will be ? Just to have a rough idea.
And do you think it is a good idea to use Ory cloud in production already ?
m
Just to have a rough idea.
I can’t say definitely but a matter of weeks not months. And yea Ory Cloud is fit to be used in production 💪 Did you have any requirements you are not seeing covered?
b
Well, seems like the metadata and also the user roles.
I ve seen you will release it soon. That will be on metadata ?
👍 1
h
Hey, the metadata is already on staging and in the release pipeline for production. We’re currently rolling out some major changes on the observability which is why the continuous deployment doesn’t work atm and there’s a couple of days delay. By end of the week though it should all be on prod, including metadata
Actually, I believe it just came through!
b
@User so now metadata is deployed ?
h
yes
b
Im trying to find some information regarding metadata in docs but I am not able. Am I doing something wrong ? Am I misunderstanding something ?
b
h