From bfd0eb6fa5bfa34878d2b45f6ee59d9bb124b064 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Thu, 4 Aug 2022 11:56:01 +0200 Subject: [PATCH] Island: Authenticate `api/island/version` --- monkey/monkey_island/cc/resources/version.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/resources/version.py b/monkey/monkey_island/cc/resources/version.py index 97dca4a4c..69a9cb851 100644 --- a/monkey/monkey_island/cc/resources/version.py +++ b/monkey/monkey_island/cc/resources/version.py @@ -2,6 +2,7 @@ import logging from monkey_island.cc import Version from monkey_island.cc.resources.AbstractResource import AbstractResource +from monkey_island.cc.resources.request_authentication import jwt_required logger = logging.getLogger(__name__) @@ -12,8 +13,7 @@ class Version(AbstractResource): def __init__(self, version: Version): self._version = version - # We don't secure this since it doesn't give out any private info and we want UI to know version - # even when not authenticated + @jwt_required def get(self): return { "version_number": self._version.version_number,