Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Plate Recognizer: How to Receive Webhook Data.
"""
This script is now available from
https://github.com/marcbelmont/deep-license-plate-recognition/tree/master/webhooks
"""
@hgarcia-binwus

This comment has been minimized.

Copy link

@hgarcia-binwus hgarcia-binwus commented Feb 5, 2021

Hi, is there a way to protect the webhook endpoint? We are going to implement it but from what I have seen you can configure a token in the configuration file of the alpr scanner, and it is something static.

@danleyb2

This comment has been minimized.

Copy link

@danleyb2 danleyb2 commented Feb 8, 2021

@hgarcia-binwus You can secure the webhook endpoint by verifying the source IP of the request. Do you need help on how to do this?

@hgarcia-binwus

This comment has been minimized.

Copy link

@hgarcia-binwus hgarcia-binwus commented Feb 8, 2021

@hgarcia-binwus You can secure the webhook endpoint by verifying the source IP of the request. Do you need help on how to do this?

Thanks for your reply.
The application will be behind a NAT on a dynamic public IP.
We are thinking about these options:
(a) Encrypted content, is there a way to encrypt the content of the request? We are in favor of this option but we do not know if it is feasible with the software.
(b) Send the request through the ssh reverse tunnel, so the request is made to localhost transparently. It is not what we want because it requires more resources on our server.
Thanks in advance.

@danleyb2

This comment has been minimized.

Copy link

@danleyb2 danleyb2 commented Feb 8, 2021

@hgarcia-binwus For encryption, HTTPS should do. You can setup nginx as a proxy infront of the application then use LetsEncrypt for a free certificate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment