From a3051d7c3371aac0a7051ee5016994a3836029d2 Mon Sep 17 00:00:00 2001 From: Abel Luck Date: Wed, 30 Nov 2022 15:28:10 +0000 Subject: [PATCH] don't require authorization for aws-sns endpoint --- ops_bot/aws.py | 1 - ops_bot/main.py | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/ops_bot/aws.py b/ops_bot/aws.py index ff6b4fa..2ec7b9e 100644 --- a/ops_bot/aws.py +++ b/ops_bot/aws.py @@ -1,4 +1,3 @@ -import json from typing import Any, Tuple from ops_bot.common import urgency_color diff --git a/ops_bot/main.py b/ops_bot/main.py index acdf1ed..90e0f64 100644 --- a/ops_bot/main.py +++ b/ops_bot/main.py @@ -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)