Commit Graph

9618 Commits

Author SHA1 Message Date
Shreya Malviya b4c9f0df9e UI: Change POST to PUT in /api/agent-configuration requests 2022-08-03 17:56:58 +05:30
nandu pokhrel cb62246948 Island: Change POST to PUT in AgentConfiguration resource 2022-08-03 17:56:58 +05:30
Shreya Malviya 4bcab891b2 UI: Don't convert response to JSON before creating Response object in IslandHttpClient's put() 2022-08-03 15:26:48 +05:30
Shreya Malviya 9c17cf44b1 UT: Pass headers in PUT requests in test_island_mode.py 2022-08-03 13:35:02 +05:30
Shreya Malviya d56951f152 Island: Simplify logic to get data from request in IslandMode PUT 2022-08-03 13:01:19 +05:30
Shreya Malviya f652a489b7 UI: Pass 'Content-Type' header in PUT request when resetting Island mode 2022-08-03 13:00:43 +05:30
Mike Salvatore c7be5f6c68 Project: Add AbstractEvent to vulture_allowlist.py 2022-08-02 20:38:08 -04:00
Mike Salvatore e79a29f7aa Common: Add AbstractEvent 2022-08-02 14:41:08 -04:00
Mike Salvatore 2c55b8a4df Island: Shorten IslandLog import in app.py 2022-08-02 12:09:53 -04:00
Mike Salvatore b061613a0b Island: Add IslandLog to resources/__init__.py 2022-08-02 12:08:49 -04:00
Mike Salvatore 7ecd4c50be Island: Rename island_logs.py -> island_log.py 2022-08-02 12:08:25 -04:00
Shreya Malviya ad5ff9af03
Merge pull request #2150 from guardicore/2105-add-docstrings
Add docstrings to auth endpoints
2022-08-02 18:47:57 +05:30
Shreya Malviya 7f915d987a
Merge pull request #2151 from guardicore/add-get_file_contents-to-file-utils
Add get_file_contents() to file utils
2022-08-02 18:29:06 +05:30
Shreya Malviya c7f9a5c90a UT: Use renamed resource (Registration -> Register) 2022-08-02 18:26:40 +05:30
Shreya Malviya a5f71a3ff5 Island: Rename Registration -> Register 2022-08-02 18:25:12 +05:30
Shreya Malviya 5826ef1767 Island: Fixes docstrings in Authenticate and Registration resources according to PEP 257 2022-08-02 18:24:00 +05:30
Shreya Malviya f80e53aca1 Island: Rename get_file_contents() -> get_text_file_contents() 2022-08-02 18:21:21 +05:30
Shreya Malviya b7a113fb14 Island: Remove unused get_log_file_contents() from cc/server_utils/island_logger.py 2022-08-02 18:11:55 +05:30
Shreya Malviya 82e92e39e4 Island: Use get_file_contents() in IslandLog 2022-08-02 18:11:25 +05:30
Shreya Malviya cb79708fda Island: Add get_file_contents() to file utils 2022-08-02 18:09:50 +05:30
Shreya Malviya dc4749da63
Merge pull request #2149 from guardicore/2105-new-api-endpoint-registration-status
New API endpoint for registration status
2022-08-02 14:46:07 +05:30
Shreya Malviya ac34eb56e9 Island: Add docstrings to Registration resource 2022-08-02 14:45:31 +05:30
Shreya Malviya 9f02fd4e44 Island: Add docstrings to Authenticate resource 2022-08-02 14:42:58 +05:30
Shreya Malviya 677e2755b9 Island: Add docstrings to AuthenticationService 2022-08-02 14:37:50 +05:30
Shreya Malviya 4801235c4b UT: Add tests for new RegistrationStatus resource 2022-08-02 14:22:18 +05:30
Shreya Malviya 3dc2edcdc1 Changelog: Add entry for new registration status endpoint 2022-08-02 14:18:26 +05:30
Shreya Malviya ec5b22aa87 Island: Remove unused GET from Registration resource 2022-08-02 14:16:05 +05:30
Shreya Malviya fb3a511a41 UI: Use new registration status API endpoint 2022-08-02 14:16:05 +05:30
Shreya Malviya 420839d0bc Island: Add new RegistrationStatus resource 2022-08-02 14:16:05 +05:30
Shreya Malviya 9442b66912
Merge pull request #2147 from guardicore/2105-refactor-auth-endpoints
Rename endpoints for auth and register, remove unnecessary error
2022-08-02 14:15:36 +05:30
Shreya Malviya 486e28928e UT: Rename test files to be consistent with names of files they're testing 2022-08-02 14:04:06 +05:30
Shreya Malviya 40f69f0e58 UT: Modify test_authentication_successful to not check for 'error' field in response 2022-08-02 14:02:36 +05:30
Shreya Malviya 05f9e527e9 Island: Remove unnecessary error in Authenticate POST 2022-08-02 13:48:28 +05:30
Shreya Malviya 767cc8fa3e Changelog: Add enty for auth and registration endpoint renaming 2022-08-02 13:18:16 +05:30
Shreya Malviya f9ddba423b UT: Change imports cc.resources.auth.registration -> cc.resources.auth.register 2022-08-02 13:15:09 +05:30
Shreya Malviya 21501fdde5 Island: Rename cc/resources/auth/registration.py -> cc/resources/auth/register.py 2022-08-02 13:15:09 +05:30
Shreya Malviya 54a0072454 BB: Change /api/registration -> /api/register 2022-08-02 13:15:09 +05:30
Shreya Malviya 236b2cb3e2 UI: Change /api/registration -> /api/register 2022-08-02 13:15:09 +05:30
Shreya Malviya 187dc64045 Island: Change /api/registration -> /api/register 2022-08-02 13:15:09 +05:30
Shreya Malviya a9e13c37ea UT: Change imports cc.resources.auth.auth -> cc.resources.auth.authenticate 2022-08-02 13:15:09 +05:30
Shreya Malviya b5784f0479 Island: Rename cc/resources/auth/auth.py -> cc/resources/auth/authenticate.py 2022-08-02 13:15:09 +05:30
Shreya Malviya 8342ec8b5c UI: Change /api/auth -> /api/authenticate 2022-08-02 13:15:09 +05:30
Shreya Malviya 3c1e69eabb BB: Change /api/auth -> /api/authenticate 2022-08-02 13:15:08 +05:30
Shreya Malviya 1635f3204a Island: Change /api/auth -> /api/authenticate 2022-08-02 13:15:08 +05:30
Shreya Malviya 30166880bb
Merge pull request #2142 from guardicore/2107-refactor-api-log-endpoint
Refactor Island log endpoint
2022-08-02 13:14:32 +05:30
Shreya Malviya eb20c9403d UI: Fix logic in IslandLogDownloadButton as per changes to IslandLog resource 2022-08-02 13:02:39 +05:30
Shreya Malviya 96bae42388 Island: Fix type hint in cc/server_utils/island_logger.py 2022-08-02 13:02:39 +05:30
Shreya Malviya 29646ecf43 Island: Return string from IslandLog's GET instead of dict with redundant info 2022-08-02 13:02:39 +05:30
Shreya Malviya 7967974c9d Island: Move get_log_file_contents() from IslandLog to cc/server_utils/island_logger.py 2022-08-02 13:02:39 +05:30
Shreya Malviya 1d11dd227e Island: Simplify logic in get_log_file_path() 2022-08-02 13:02:39 +05:30