Add authentication to Entra webhook endpoint
Description
This task is to add authentication to the Entra webhook endpoint. This was originally planned as part of #23 (closed), but is split out to this issue.
The test resources and deployment created in uis/devops/infra/terraform/ucam-faas#16 (closed) should be used during development to ensure this is working as expected.
Further details
This issue will require potential further updates to the entra webhook bridge container, possibly expanding the required configuration values if additional authentication information is necessary.
The endpoint should:
- Authenticates that the request came from the expected Azure service principal
For more details how this could be implemented, see:
Task list
Acceptance criteria
Webhook serving container exists that:
-
Can authenticate incoming webhook calls -
Test deployment validates, authenticates and pushes received data to the linked topic when the Azure event grid subscription is triggered