don't require authorization for aws-sns endpoint
This commit is contained in:
parent
b9e8747808
commit
a3051d7c33
2 changed files with 1 additions and 4 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
import json
|
|
||||||
from typing import Any, Tuple
|
from typing import Any, Tuple
|
||||||
|
|
||||||
from ops_bot.common import urgency_color
|
from ops_bot.common import urgency_color
|
||||||
|
|
|
||||||
|
|
@ -109,9 +109,7 @@ async def pagerduty_hook(
|
||||||
|
|
||||||
@app.post("/hook/aws-sns/{routing_key}")
|
@app.post("/hook/aws-sns/{routing_key}")
|
||||||
async def aws_sns_hook(
|
async def aws_sns_hook(
|
||||||
request: Request,
|
request: Request, matrix_client: MatrixClient = Depends(get_matrix_service)
|
||||||
matrix_client: MatrixClient = Depends(get_matrix_service),
|
|
||||||
auth: bool = Depends(authorize),
|
|
||||||
) -> Dict[str, str]:
|
) -> Dict[str, str]:
|
||||||
room_id, payload = await receive_helper(request)
|
room_id, payload = await receive_helper(request)
|
||||||
msg_plain, msg_formatted = aws.parse_sns_event(payload)
|
msg_plain, msg_formatted = aws.parse_sns_event(payload)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue