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

2048 Коммитов

Автор SHA1 Сообщение Дата
Aaron Meihm 9192176cea Merge pull request #375 from ameihm0912/scribefixup
Minor fixes to scribe event submission
2017-07-26 16:29:15 -05:00
Aaron Meihm e506611e75 set a zone name in runner scribe plugin 2017-07-26 16:18:59 -05:00
Aaron Meihm 8fac674849 vendor updates to gozdef 2017-07-26 16:17:03 -05:00
Aaron Meihm e1de374564 Merge pull request #373 from ameihm0912/printaction-client
mig-cmd: printAndExit, don't treat NewClient errors as fatal
2017-07-26 15:25:24 -05:00
Aaron Meihm 120b530785 mig-cmd: printAndExit, don't treat NewClient errors as fatal 2017-07-26 15:13:42 -05:00
Aaron Meihm d1045828c4 Merge pull request #372 from ameihm0912/scribe-plugin
runner-scribe updates, vendor new gozdef version
2017-07-25 14:38:14 -05:00
Aaron Meihm 8f69696de2 runner-scribe: update for new gozdef, v2 vulnerability event support
Update runner-scribe to generate new version 2 vulnerability documents
to send to MozDef.
2017-07-25 13:54:02 -05:00
Aaron Meihm 5c6cd4c5eb runner-compliance: update for new gozdef, treat tags as a map 2017-07-25 13:53:31 -05:00
Aaron Meihm 4108b2ab9e in mig.Agent, declare Tags as a map for Agent type
In 4cd3867, agent tags were converted to a map[string]string from an
interface to make the structure more easily modified from configuration
files.

Fix up the Agent type here so the tags are defined correctly.
2017-07-25 13:51:39 -05:00
Aaron Meihm f4cb7f164a mig-api: commandsToComplianceItems, make Tags a map
Make compliance item tags a map to correspond with gozdef, this
functionality in mig-api should likely just be removed.
2017-07-25 13:50:11 -05:00
Aaron Meihm e5e4e3e406 remove agent-intel-worker
Remove the agent-intel-worker which is no longer used, and is
incompatible with the recent changes to gozdef.
2017-07-25 13:46:01 -05:00
Aaron Meihm e51dcf4e8e vendoring update for gozdef 2017-07-25 13:45:29 -05:00
Aaron Meihm 35ea4f9f2f Merge pull request #369 from bobsaintcool/doc/fix_rst_typo
Doc/fix rst typo
2017-07-18 20:49:20 -05:00
Quentin Bourgeois da267b093a
<doc/rst: Fix a typo in link to file.go> 2017-07-19 00:54:47 +02:00
Quentin Bourgeois 76a2e5e142
<doc/rst: Fix a missing reference to loader page>
* Merge how MIG components are called: lower case with hyphen a word
    separator
  * Add a reference from configuration.rst to loader.rst
2017-07-19 00:48:42 +02:00
stephenma064 29bb685702 Merge branch 'master' into patch-1 2017-07-13 20:38:14 -05:00
Aaron Meihm 722770118e Merge pull request #365 from tydavis/issue235
[easy/up-for-grabs] Add additional line for unknown investigator
2017-07-12 14:59:52 -05:00
Tyler Davis 517fd0149c Send two log messages if action rejected 2017-07-12 17:43:03 +00:00
Aaron Meihm 411e9aab4e Merge pull request #368 from ameihm0912/pubip-panic
Fixes a few issues in how Init failures are handled
2017-07-12 10:34:48 -05:00
Aaron Meihm f9872335cc dont panic if Init fails in foreground mode, instead just exit
Rather than panic when Init fails if the agent is in foreground mode,
just print the error message and exit with return code 1.

Resolves #342
2017-07-12 10:20:50 -05:00
Aaron Meihm f040e9c6db if Init fails in checkin mode, return a non-zero exit status 2017-07-12 10:13:50 -05:00
Aaron Meihm 8c3a9e1fe6 reference correct function name in agent Init() error return 2017-07-12 10:11:33 -05:00
Aaron Meihm 4558443c35 Merge pull request #367 from ameihm0912/contrib-update
update CONTRIBUTING.md, remove requirement to tag commits
2017-07-12 09:59:56 -05:00
Aaron Meihm c215793b0d Merge branch 'master' into contrib-update 2017-07-12 09:58:48 -05:00
Aaron Meihm 08bcd0bcde Merge pull request #364 from tydavis/issue362
[easy/bug] Check length of config.API.URL, fixes #362
2017-07-12 09:49:35 -05:00
Aaron Meihm 67636d1aaf update CONTRIBUTING.md, remove requirement to tag commits
This removes any sort of requirement to prefix commit messages from the
contributing guidelines. This was originally intended to provide a means
to identify large changes/feature additions in the revision history.

Removing this to make it easier for contributors to submit patches
without requiring history revision.
2017-07-12 09:43:39 -05:00
stephenma064 b2aa0dd8f6 Update client.go 2017-07-11 19:47:54 -05:00
Tyler Davis ade8e80d0a [easy/up-for-grabs] Add additional line for unknown investigator, fixes #235 2017-07-11 23:16:03 +00:00
Tyler Davis aca753cb0f [easy/bug] Check length of config.API.URL, fixes #362 2017-07-11 22:41:01 +00:00
Aaron Meihm 110614c421 [minor] ignore custom built-in configs in gitignore 2017-07-10 13:57:43 -05:00
Aaron Meihm 653ae27d85 Merge pull request #363 from ameihm0912/improve-agent-search
Usability improvements for mig-agent-search
2017-07-07 12:30:57 -05:00
Aaron Meihm 915b127450 [minor] resolve target macros in mig-agent-search 2017-07-07 12:15:19 -05:00
Aaron Meihm 30e92f1313 [minor] remove use of panic for error handling in parseSearchQuery 2017-07-07 12:12:04 -05:00
Aaron Meihm 4db86c8287 [minor] mig-search-search, dont error out if no results are found
Rather than generate an error message, just display no agents if none
matched the search criteria.
2017-07-07 12:05:55 -05:00
Aaron Meihm be7b45d9ce [minor] remove use of panic for error handling in mig-agent-search main 2017-07-07 11:59:52 -05:00
Aaron Meihm 7c2d8f6971 [minor] reorganize variable definition in mig-agent-search main 2017-07-07 11:46:32 -05:00
Aaron Meihm 6e1d45833f [minor] add missing command line options to mig-agent-search usage 2017-07-07 11:45:44 -05:00
Aaron Meihm 3f12d0908f [minor] move mig-agent-search help output to separate function 2017-07-07 11:40:29 -05:00
Aaron Meihm a2fe0fed53 Merge pull request #360 from ameihm0912/tagsfixes
Tweaks for tags config file option and test fixes
2017-07-06 17:09:23 -05:00
Aaron Meihm b10940cfb9 [minor] declare Context.Agent.Tags as a map 2017-07-06 16:58:26 -05:00
Aaron Meihm f70b3c6f38 [minor] change tags comment/default in default agent configuration file 2017-07-06 16:52:20 -05:00
Aaron Meihm 6a2da09be3 [minor] fix tests in TestConfigLoadCertErrors
parseConfig does not have a pointer receiver and cannot modify
the globals structure, actually test against the global values
apply() modifies.
2017-07-06 16:47:31 -05:00
Aaron Meihm 5d701c056e [minor] initialize global.tags map in tests where we dont use newGlobals 2017-07-06 16:47:31 -05:00
Aaron Meihm 0f2b00e762 [minor] fix tests in TestConfigLoadCerts
parseConfig does not have a pointer receiver and cannot modify
the globals structure, actually test against the global values apply()
modifies.
2017-07-06 16:47:17 -05:00
Aaron Meihm 1ea06d610a [minor] include a comment noting we append/modify tags from config 2017-07-06 16:13:57 -05:00
Aaron Meihm de9f9f0a7a [minor] update comments for loader TAGS value 2017-07-06 16:10:16 -05:00
Aaron Meihm 786b3b70cc [minor] add a note regarding tags being configurable in config file 2017-07-06 16:05:03 -05:00
Aaron Meihm 3ef62f8dc9 Merge pull request #345 from rezen/master
[minor] Adding option to set agent tags in external config file
2017-07-06 15:57:00 -05:00
Aaron Meihm 0452db5396 Merge pull request #359 from ameihm0912/proxytimeout
[minor] findPublicIP: reduce Dial timeout to 5 seconds
2017-07-06 10:42:28 -05:00
Aaron Meihm 01285f054f [minor] findPublicIP: reduce Dial timeout to 5 seconds
Reduce the dial timeout to 5 seconds time 10. This operation should
normally occur quickly, but in some cases (e.g., an unreachable proxy in
use) the request will stall. This ensures we wait a maximum of 5 seconds
before trying another option.

This also aligns the timeout with the dial timeout for AMQP connections.
2017-07-06 10:27:37 -05:00