Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agent log storage #2274

Closed
8 tasks done
mssalvatore opened this issue Sep 9, 2022 · 1 comment
Closed
8 tasks done

Agent log storage #2274

mssalvatore opened this issue Sep 9, 2022 · 1 comment

Comments

@mssalvatore
Copy link
Collaborator

mssalvatore commented Sep 9, 2022

Refactor

Component(s) to be refactored

  • monkey_island.cc.resources.log
  • agent

Explanation

Agent log contents can now be stored in the Agent model.

Tasks

  • Define IAgentLogRepository (0d) @mssalvatore
  • Implement an FileAgentLogRepository (0d) - @shreyamalviya
  • Remove log_contents field from Agent model (0d) @ilija-lazoroski
  • Provide a new, better-named API endpoint for agents to push their logs to ("/api/agent-logs/{AGENT_ID}") (0d) @ilija-lazoroski
    • Implement PUT
    • Implement GET
  • Push logs to the new endpoint (0d) - @shreyamalviya
  • Subscribe FileAgentLogRepository.reset() to CLEAR_SIMULATION_DATA` (0d) - @shreyamalviya
@VakarisZ
Copy link
Contributor

We also need to change the docs somewhere, as they can be found on the island as well as downloaded through the map?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants