-
Notifications
You must be signed in to change notification settings - Fork 795
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
3078 revoke agent tokens #3201
3078 revoke agent tokens #3201
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## develop #3201 +/- ##
===========================================
+ Coverage 73.02% 73.07% +0.04%
===========================================
Files 469 470 +1
Lines 13566 13599 +33
===========================================
+ Hits 9907 9937 +30
- Misses 3659 3662 +3 see 5 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
monkey/monkey_island/cc/services/authentication_service/authentication_facade.py
Outdated
Show resolved
Hide resolved
monkey/monkey_island/cc/services/authentication_service/setup.py
Outdated
Show resolved
Hide resolved
...s/unit_tests/monkey_island/cc/services/authentication_service/test_authentication_service.py
Outdated
Show resolved
Hide resolved
monkey/tests/unit_tests/monkey_island/cc/island_event_handlers/test_agent_heartbeat_monitor.py
Outdated
Show resolved
Hide resolved
2f2fdce
to
0687547
Compare
monkey/monkey_island/cc/services/authentication_service/setup.py
Outdated
Show resolved
Hide resolved
monkey/monkey_island/cc/services/authentication_service/setup.py
Outdated
Show resolved
Hide resolved
0687547
to
ff31553
Compare
monkey/monkey_island/cc/services/authentication_service/authentication_facade.py
Show resolved
Hide resolved
monkey/monkey_island/cc/services/authentication_service/authentication_facade.py
Show resolved
Hide resolved
8299a91
to
e63d78f
Compare
Fix commit with TEMP prefix |
f4f53d9
to
5405dab
Compare
island_event_queue.subscribe(IslandEventTopic.AGENT_TIMED_OUT, agent_remover.remove_on_timeout) | ||
|
||
|
||
class AgentRemover: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AgentUserRemover
. This name makes it seem like we're removing agents from the AgentRepository.
5405dab
to
dadb05b
Compare
dadb05b
to
c24dbff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with one minor comment.
} | ||
|
||
agent_requests.post(GET_AGENTS_ENDPOINT, data=agent_registration_dict) | ||
assert agent_requests.post(LOGOUT_ENDPOINT, data=None).status_code == HTTPStatus.OK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should attempt to access another endpoint and prove the agent is truly logged out.
What does this PR do?
Fixes part of #3078 by removing users for agents that have shut down or timed out.
PR Checklist
Testing Checklist