Граф коммитов

2048 Коммитов

Автор SHA1 Сообщение Дата
Tristan Weir bb6cf19a19
Add a little more resiliency for differently formed URLs 2018-12-17 16:14:29 -08:00
Tristan Weir bf615806b0
Make fixes to how config is read in and treated throughout 2018-12-17 15:56:42 -08:00
Tristan Weir 8ee954597b
Run gofmt 2018-12-17 14:45:53 -08:00
Tristan Weir 0bb216ac37
Resolve more review comments 2018-12-17 14:44:12 -08:00
Tristan Weir 14b886b7e1
Replace all panicking with logging 2018-12-17 14:27:52 -08:00
Tristan Weir cef70bdd98
Resolve some review comments 2018-12-17 14:15:50 -08:00
Tristan Weir 1135e9ce00
Add JSON descriptors to struct and re-case variables 2018-12-17 14:06:38 -08:00
Tristan Weir 89d41f5cb6
Load an auth token into the API config before we work with it 2018-12-17 09:32:55 -08:00
Tristan Weir 0869eb7302
Add ability to insert operator and team from ServiceAPI data 2018-12-17 09:20:34 -08:00
Tristan Weir 741780dbc1
Add ability to request an Auth0 token, query ServiceAPI, and lookup results 2018-12-17 09:05:43 -08:00
Em e068d93048
Merge pull request #473 from mozilla/abstract-rabbit
Configure heartbeat requests to go straight to API
2018-11-26 15:52:15 -05:00
Zack Mullaly deb4aba083
Revert scheduler back to normal operations so we can do a full deploy 2018-11-26 15:44:08 -05:00
Zack Mullaly 5b386c1a29
Removing unnecessary blank lines 2018-11-22 15:39:35 -05:00
Zack Mullaly ad7aee2e4d
Removing documentation that doesn't belong in this branch 2018-11-22 14:04:21 -05:00
Zack Mullaly 49476d62b7
removing function that isn't being used yet 2018-11-22 14:03:49 -05:00
Brandon Myers 9b3205867a
Add update role to agents table for migapi 2018-11-20 13:56:27 -05:00
Brandon Myers 1132b4b56b
Readd agent refresh ts for heartbeats 2018-11-20 12:12:33 -05:00
Zack Mullaly c98623eb07
Add back in the information we accidentally threw away by neglecting the rest of what was in the heartbeat 2018-11-19 16:26:30 -05:00
Zack Mullaly 4dc4cb34f1
Fixed imports 2018-11-19 16:04:43 -05:00
Zack Mullaly 98d4eac1c5
Only insert a new agent when we find out about one. Otherwise update agents in place when we deal with a heartbeat 2018-11-19 15:54:41 -05:00
Zack Mullaly d70bb40bd1
Don't try to insert into table that no longer exists 2018-11-19 15:34:15 -05:00
Zack Mullaly 12392b0205
Update agent information in place when a heartbeat is received 2018-11-19 15:27:58 -05:00
Zack Mullaly 262f2c4c8c
Adding the code from the scheduler that processed heartbeats back for reference 2018-11-19 15:07:57 -05:00
Zack Mullaly 1e58cacb00
Merge branch 'master' into abstract-rabbit 2018-11-19 13:04:45 -05:00
Zack Mullaly 828dd39095
Merge pull request #474 from mozilla/scribe-cleanup
Always set SourceName to 'mig-runner'
2018-11-15 17:29:35 -05:00
Zack Mullaly b9f54eab6d
Remove old references to config.MozDef.Source from tests 2018-11-15 17:13:09 -05:00
Zack Mullaly bd7e12c479
Remove old references to config.MozDef.Source from tests 2018-11-15 16:59:31 -05:00
Zack Mullaly 1f684b1b6a
Always just set the SourceName for a vuln to mig-runner before sending it to mozdef because we aren't going to change it 2018-11-15 15:58:11 -05:00
Zack Mullaly 41f46a11ee
Merge branch 'master' into abstract-rabbit 2018-11-13 18:13:14 -05:00
Zack Mullaly af3c2b8f99
Merge pull request #467 from mozilla/fixup_dockerfile_error
Modify docker_start to wait for resources to boot up
2018-11-13 18:12:50 -05:00
Zack Mullaly 723eb9b1e0
Merge branch 'master' into fixup_dockerfile_error 2018-11-13 18:02:54 -05:00
Zack Mullaly 5b8ca35371
Added some fields that were missing from the heartbeat translation 2018-11-13 17:24:36 -05:00
Zack Mullaly 61d886edad
test should look for >= 1 row because running it multiple times shouldn't be a cause for failure 2018-11-13 15:14:37 -05:00
Zack Mullaly 76a962487b
No longer have need for the relation between agents and actions 2018-11-13 14:59:49 -05:00
Zack Mullaly 91470baf63
Merge branch 'master' into abstract-rabbit 2018-11-13 14:57:43 -05:00
Brandon Myers 99fd4eef8d
Modify agent to post heartbeat to api 2018-11-09 10:52:01 -06:00
Brandon Myers dd57cce3ab
Add agent config for integration tests 2018-11-07 14:03:35 -06:00
Brandon Myers 41b976e499
Update docker exec command to use postgres name 2018-11-07 13:55:54 -06:00
Zack Mullaly 4a53c96bd7
removed tests for code we wont be using 2018-11-06 15:20:35 -05:00
Zack Mullaly 4754f4f40d
Removing code we won't be using 2018-11-06 15:20:09 -05:00
Zack Mullaly 0104e03662
Removed functionality for monitoring heartbeats from the scheduler 2018-11-06 15:19:27 -05:00
Zack Mullaly 6913dde2bf
We are only going to include the heartbeat handler for now 2018-11-06 14:53:55 -05:00
Zack Mullaly a611f5587c
Establish a relationship between actions and the agents targeted by them when actions are inserted into postgres 2018-10-31 16:20:32 -04:00
Zack Mullaly f2e60c0403
Add new table to testing db init script 2018-10-31 16:05:24 -04:00
Zack Mullaly 6d85490576
Got new integration tests to run 2018-10-31 14:06:56 -04:00
Zack Mullaly a34661e565
Finished writing an integration test for action retrieval 2018-10-31 13:28:17 -04:00
Zack Mullaly f33eda05a4
Instead of passing in a queue name to retrieve actions, the API will accept the agent's ID 2018-10-31 12:07:03 -04:00
Zack Mullaly df5ebdc954
Merge pull request #472 from mozilla/runner-scribe-config
Runner scribe config
2018-10-30 12:30:07 -04:00
Zack Mullaly 685018106b
Vendor gozdef 2018-10-29 19:40:59 -04:00
Zack Mullaly e993de63b9
Creating a new table in which we will relate actions to agents and track whether the particular agent has retrieved the action 2018-10-29 16:56:17 -04:00