Skip to content

Commit

Permalink
Island: Remove authentication requirement from AgentBinaries GET
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyamalviya committed Apr 7, 2023
1 parent f03680f commit 2127563
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions monkey/monkey_island/cc/resources/agent_binaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
from http import HTTPStatus

from flask import make_response, send_file
from flask_security import auth_token_required, roles_accepted

from monkey_island.cc.flask_utils import AbstractResource
from monkey_island.cc.repositories import IAgentBinaryRepository, RetrievalError
from monkey_island.cc.services.authentication_service import AccountRole

logger = logging.getLogger(__name__)

Expand All @@ -17,8 +15,7 @@ class AgentBinaries(AbstractResource):
def __init__(self, agent_binary_repository: IAgentBinaryRepository):
self._agent_binary_repository = agent_binary_repository

@auth_token_required
@roles_accepted(AccountRole.AGENT.name)
# Can't be secured, used in manual run commands
def get(self, os):
"""
Gets the agent binary for the specified OS
Expand Down

0 comments on commit 2127563

Please sign in to comment.