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

1705 Коммитов

Автор SHA1 Сообщение Дата
Aaron Meihm 6ca741f255 file: remove explicit assignment of the zero value to var definitions 2017-08-21 12:51:49 -05:00
Aaron Meihm 77dccc6de5 file: don't export Parameters, which is only used locally 2017-08-21 12:51:49 -05:00
Aaron Meihm 7c12770f41 file: omit bool type declaration which is inferred 2017-08-21 12:51:49 -05:00
Aaron Meihm 40e84c67ea file: standardize package godoc comment 2017-08-21 12:51:49 -05:00
Aaron Meihm c7bf9d53f5 Merge pull request #380 from ameihm0912/filesymlink
file: don't skip adding path separator if directory entry is a symlink
2017-08-21 12:51:21 -05:00
Aaron Meihm 4d60a0b6be file: don't skip adding path separator if directory entry is a symlink
If a file symlink existed in the root of a search path (e.g., /tmp was
being searched and /tmp/file was a symlink) path separators were not
being added correctly, resulting in no separator between the directory
path and the file name.

This caused subsequent checks (e.g., trying to follow and open the
symlink for content inspection) to fail, resulting in errors being
included in the module error log.
2017-08-18 15:22:44 -05:00
Aaron Meihm df622946d6 Merge pull request #376 from ameihm0912/runner-v2bkey
runner-scribe: apply a v2bkey based on operator and team values
2017-07-27 13:26:20 -05:00
Aaron Meihm 3cc1d660b7 runner-scribe: apply a v2bkey based on operator and team values 2017-07-27 13:13:17 -05:00
Aaron Meihm 8104678569 vendor updates from gozdef 2017-07-26 16:58:03 -05:00
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
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
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