don't require authorization for aws-sns endpoint

This commit is contained in:
Abel Luck 2022-11-30 15:28:10 +00:00
parent b9e8747808
commit a3051d7c33
2 changed files with 1 additions and 4 deletions

View file

@ -1,4 +1,3 @@
import json
from typing import Any, Tuple
from ops_bot.common import urgency_color

View file

@ -109,9 +109,7 @@ async def pagerduty_hook(
@app.post("/hook/aws-sns/{routing_key}")
async def aws_sns_hook(
request: Request,
matrix_client: MatrixClient = Depends(get_matrix_service),
auth: bool = Depends(authorize),
request: Request, matrix_client: MatrixClient = Depends(get_matrix_service)
) -> Dict[str, str]:
room_id, payload = await receive_helper(request)
msg_plain, msg_formatted = aws.parse_sns_event(payload)