microcks / hub.microcks.io

Public Hub for community Microcks mocks and tests
https://microcks.io
Apache License 2.0
4 stars 4 forks source link

Add secret support for webhook #6

Closed lbroudoux closed 3 years ago

lbroudoux commented 3 years ago

The /api/webhook endpoint allow trigerring a refresh of the API packages and versions definition according the reference Git repository. However, as of today, it can be publicly triggered without any authorization control 😢

We should add an authorization control using a secret that will be reported on the trigerring side (GitHub hook or whatever) to be sure that only unexpected process will not force refresh from the outside.