Add a token in post-receive-notify-l10n to authenticate incoming requests
Hi!
In the post-receive-notify-l10n
, I would like you to add an authentication token in the header of the API call. Something like a Bearer
token.
I would like to add authentication in the ping mechanism in order to accept incoming requests from GitHub-hosted projects.
The idea is to store a tuple of (hostname, token)
in Damned Lies to authenticate the incoming requests before triggering a refresh in Damned Lies backend.
We will have:
- a token for gitlab.gnome.org, share between all the projects because called using the
post-receive-notify-l10n
script. - a token for each project hosted somewhere else on GitHub, Freedesktop, etc.