Aaron Meihm
927002cc94
set a default version value for mig package Version variable
2017-09-13 14:22:35 -05:00
Aaron Meihm
06824ce041
some updates to agent and api documentation
2017-09-13 11:23:50 -05:00
Aaron Meihm
e5d88e3b20
agent: add tests for acl configuration loads
2017-09-12 11:46:14 -05:00
Aaron Meihm
3a6670a6d3
agent: add test for keyring load functions
2017-09-12 11:20:12 -05:00
Aaron Meihm
6760d7b296
agent: modify agentcontext to support testing overrides for config path
2017-09-12 10:58:26 -05:00
Aaron Meihm
3abc8eea3a
agent: add test to verify built-in remains intact if config missing
2017-09-12 10:38:22 -05:00
Aaron Meihm
8b68cc8c85
agent: improve config load tests, reset globals where required
2017-09-12 10:29:21 -05:00
Aaron Meihm
82eee1c70f
add loader config to bundle manifest maps
2017-09-12 09:56:55 -05:00
Aaron Meihm
160387b885
loader: support loading keyring from configuration directory
2017-09-12 09:56:55 -05:00
Aaron Meihm
82fff4644a
loader: remove unused getLoggingConf()
2017-09-12 09:56:55 -05:00
Aaron Meihm
40b8bf25a1
loader: load configuration from external configuration file
2017-09-12 09:56:55 -05:00
Aaron Meihm
f8ce1c0b6d
mig-loader: cleanup built-in config and add a config parser
...
Add suitable defaults to loader built-in configuration and add a
configuration parser for upcoming changes to remove compile time
configuration requirement.
2017-09-12 09:56:55 -05:00
Aaron Meihm
ab5c1765bc
agent: rename keyring directory keys -> agentkeys
2017-09-12 09:56:55 -05:00
Aaron Meihm
51c6b10065
remove unused vagrant configuration
2017-09-12 09:56:55 -05:00
Aaron Meihm
7810b1b601
update travis script to use container build for test
2017-09-12 09:56:55 -05:00
Aaron Meihm
8bee6296e4
add a test entry option to docker cmd
2017-09-12 09:56:55 -05:00
Aaron Meihm
3cdc275c7d
remove checks for available_modules and agent config compare in travis
...
These files are not required anymore.
2017-09-12 09:56:55 -05:00
Aaron Meihm
ce4ff3c6b8
simplify standalone installation for docker image
...
Removes a lot of the code in the standalone installation script used for
building on standard platforms, focuses script for docker installation.
This also takes advantage of full external agent configuration, so
removes the requirement to build the agent with the generated
investigator keys embedded.
2017-09-12 09:56:55 -05:00
Aaron Meihm
573ac2a1ec
rename standalone_install.sh as non-docker install support is removed
2017-09-12 09:56:55 -05:00
Aaron Meihm
1b6457849e
set tags in Makefile GOOPTS
2017-09-12 09:56:55 -05:00
Aaron Meihm
efc4e00758
add new mig modulepack package
...
modulepack is imported by programs which link in modules (agent, mig,
mig-console). It is configured via build tags with a suitable default,
so available_modules.go can be removed and the tools can now be built
and configured using go build tags.
2017-09-12 09:56:55 -05:00
Aaron Meihm
f5fa2d5674
agent: add a default agent module import set
...
These modules are the defaults which will be built when the agent is
compiled if no build tags related to module configuration are specified.
2017-09-12 09:56:55 -05:00
Aaron Meihm
7cfde4d3f6
agent: add ability to load public keys and acls from config files
...
This adds functionality to the agent to load ACLs and PGP public keys
from the agents configuration directory (e.g., /etc/mig) rather then
requiring them to be compiled into the agent.
Related to #237
2017-09-12 09:56:55 -05:00
Aaron Meihm
1e63692448
agent: remove persistent module config directory option
...
The value for this option is the configuration directory, so just use
GetConfDir from the agentcontext package.
2017-09-12 09:56:55 -05:00
Aaron Meihm
1c02189db2
agent: gofmt env_windows.go
2017-09-12 09:56:55 -05:00
Aaron Meihm
5107e3e78a
agent: move platform specific config dir into agentcontext
2017-09-12 09:56:55 -05:00
Aaron Meihm
b39e4ae337
agent: correct formatting for module build tags
2017-09-12 09:56:55 -05:00
Aaron Meihm
cc17329c65
agent: include cgo constraint with modmemory and modyara tags
2017-09-12 09:56:55 -05:00
Aaron Meihm
8fdbb2671d
agent: remove available_modules and use build tags
...
This removes the requirement to edit available_modules.go when building
the agent, and instead adds the use of tags in go build to select
modules to include when compiling the agent.
2017-09-12 09:56:55 -05:00
Aaron Meihm
badf84f5a3
remove available-modules dependency from mig-agent Makefile target
2017-09-12 09:56:55 -05:00
Aaron Meihm
7465ad0cff
agent: remove agent built-in config from conf and clean up defaults
...
Remove the built-in agent config from conf/, and clean up the
configuration that will live in the mig-agent package. This is in
preparation for making the agent completely externally configurable.
2017-09-12 09:56:55 -05:00
Aaron Meihm
c97376391d
Merge pull request #396 from ameihm0912/cliretcode
...
mig-cmd: if an error occurs, use an appropriate return code
2017-09-11 16:05:28 -05:00
Aaron Meihm
502612b7fe
mig-cmd: if an error occurs, use an appropriate return code
2017-09-11 15:47:38 -05:00
Aaron Meihm
d1f33f286f
Merge pull request #393 from ameihm0912/revertactresults
...
client: revert GetAPIResource change made in 32824ce2
2017-09-07 12:35:55 -05:00
Aaron Meihm
49b3607577
client: revert GetAPIResource change made in 32824ce2
...
This reverts the change made in 32824ce2
to handle error results from
GetAPIResource. Some logic in here needs to be revisited; GetAPIResource
returns an error even under normal circumstances (such as getting a 404
if no results were found for a given query) which breaks results fetch
in the client.
2017-09-07 11:51:38 -05:00
Aaron Meihm
ab795e27b7
Merge pull request #392 from ameihm0912/actresultspanic
...
client: check error result on GetAPIResource
2017-09-06 19:26:16 -05:00
Aaron Meihm
32824ce2aa
client: check error result on GetAPIResource
2017-09-06 16:17:50 -05:00
Aaron Meihm
eda9e1769e
Merge pull request #390 from ameihm0912/fixagtosx
...
Fixes for tests and build on Darwin
2017-08-31 11:42:32 -05:00
Aaron Meihm
394d67cd5b
update vendored masche
...
contains fixes for package build on darwin
2017-08-31 11:16:49 -05:00
Aaron Meihm
463bb4896e
file: fix issue with tests on darwin
2017-08-31 10:46:51 -05:00
Aaron Meihm
743a9c27c4
Merge pull request #389 from ameihm0912/filedecomp
...
file: decompression tests
2017-08-22 13:07:15 -05:00
Aaron Meihm
a6f2e1c2e0
file: decompression tests
2017-08-22 12:51:27 -05:00
Aaron Meihm
c7f6e1fcc8
Merge pull request #388 from ameihm0912/fileprivtest
...
Adds tests for file modules privacy mode
2017-08-22 12:26:51 -05:00
Aaron Meihm
c47c8eecf8
file: with privacy mode enabled, mask walking errors too
2017-08-22 12:13:10 -05:00
Aaron Meihm
1de0581334
file: add test for EnhancePrivacy filter
2017-08-22 12:08:45 -05:00
Aaron Meihm
b0a5bb9f4f
Merge pull request #387 from ameihm0912/consolelistagents
...
mig-console: error on listagents with no target in action launcher
2017-08-22 11:36:04 -05:00
Aaron Meihm
1efcbbe726
mig-console: error on listagents with no target in action launcher
...
Closes #384
2017-08-22 11:24:58 -05:00
Aaron Meihm
ea2dedddc7
Merge pull request #386 from ameihm0912/filesymdir
...
Add test cases for file module around error and symlink directory handling
2017-08-22 11:23:39 -05:00
Aaron Meihm
ab8bc38833
file: add test case for search where root path is a symlink directory
2017-08-22 11:03:36 -05:00
Aaron Meihm
249584f2ba
file: add tests for validation of module result Errors
2017-08-22 10:58:10 -05:00