From: Michael Tremer Date: Fri, 24 Jan 2025 17:05:35 +0000 (+0000) Subject: jobs: Ratelimit access to logs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4d6b5bd83ddaa995dd6e4a2921986b533270b11;p=pbs.git jobs: Ratelimit access to logs Signed-off-by: Michael Tremer --- diff --git a/src/web/jobs.py b/src/web/jobs.py index b405e6fd..ca660a04 100644 --- a/src/web/jobs.py +++ b/src/web/jobs.py @@ -163,6 +163,7 @@ class QueueHandler(base.BaseHandler): class LogHandler(base.BaseHandler): + @base.ratelimit(limit=60, minutes=60, key="log") async def get(self, uuid): job = await self.backend.jobs.get_by_uuid(uuid) if not job: