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

Implement OTP compliance on the Agent #3077

Closed
25 tasks done
Tracked by #2049
mssalvatore opened this issue Mar 9, 2023 · 0 comments · Fixed by #3118
Closed
25 tasks done
Tracked by #2049

Implement OTP compliance on the Agent #3077

mssalvatore opened this issue Mar 9, 2023 · 0 comments · Fixed by #3118

Comments

@mssalvatore
Copy link
Collaborator

mssalvatore commented Mar 9, 2023

Description

Tasks

  • Add methods to IIslandAPIClient and HTTPIslandAPIClient that: (0d) - @VakarisZ
    • Fetch new OTPs from the Island
    • Trade OTPs for auth
  • Adjust the agents to look for environmental variable with an OTP (0d) @VakarisZ
    • Get the OTP from the environment
    • Clean up the OTP environmental variable
    • Trade OTP for auth token
    • IIslandAPIClient makes all future calls using the auth token
    • Make sure to avoid unnecessary temporal coupling
    • Write tests for HTTPClient or HTTPIslandAPIClient that verify an auth token in all calls
  • Add IOTPProvider that will allow Exploiters to get OTPs (0d) - @shreyamalviya
  • Add a concrete implementation of IOTPProvider that wraps an IIslandAPIClient (0d) - @shreyamalviya
  • Construct exploiters with IOTPProvider (0d) - @shreyamalviya
    • Construct an IOTPProvider in monkey.py
    • Pass it to the constructor of PluginRegistry and construct plugins with the component
    • Pass it to hard-coded exploiters on construction
  • Adjust propagation to add OTP to agent execution commands (0d) - @shreyamalviya
  • Make sure we're not logging (leaking) OTPs (0d) - @shreyamalviya
@mssalvatore mssalvatore added this to Backlog in Monkey Dev Board Mar 9, 2023
@mssalvatore mssalvatore moved this from Backlog to To Do in Monkey Dev Board Mar 9, 2023
@VakarisZ VakarisZ self-assigned this Mar 13, 2023
@VakarisZ VakarisZ moved this from To Do to In Progress in Monkey Dev Board Mar 13, 2023
@shreyamalviya shreyamalviya mentioned this issue Mar 14, 2023
8 tasks
This was referenced Mar 15, 2023
mssalvatore added a commit that referenced this issue Mar 16, 2023
Hadoop's speculative execution feature has lead to a number of
difficulties. See #655, #1781, and #2578. Of concern is that the issue
where Hadoop sends a SIGKILL to the first process (#2578) could cause
significant issues when implementing agent OTP authentication (#3077).

Setting max-app-attempts to 1 resolves these issues.
@mssalvatore mssalvatore moved this from In Progress to Ready For Review in Monkey Dev Board Mar 24, 2023
Monkey Dev Board automation moved this from Ready For Review to Done Mar 28, 2023
@mssalvatore mssalvatore added this to the v2.1.0 milestone Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

2 participants