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

1171 Коммитов

Автор SHA1 Сообщение Дата
Julien Vehent 01e1a17d12 [minor] vendoring update 2015-11-16 17:42:45 -05:00
Julien Vehent c71651de50 [minor] add index on agents.starttime 2015-11-16 08:44:55 -05:00
Julien Vehent 66cced1a1f [doc] minor format string fix 2015-11-10 16:59:49 -05:00
Julien Vehent 9dc2a039a3 [doc] Added details on how to use mig-agent-search 2015-11-10 16:54:47 -05:00
Julien Vehent c3ef2ab620 [doc] add scribe rhsa/usn policies 2015-11-10 15:08:05 -05:00
Julien Vehent f0c4460c71 [minor] re-add agents fields returned in target evaluation
Removing them caused a few clients, such as mig-agent-search, to not be
able to display the extra data. Rather than writing a new endpoints to expose
all the fields, it's easier to just readd them here.
2015-11-06 07:59:24 -05:00
Julien Vehent 3a0da9cb6b Merge pull request #150 from mozilla/schedulerreconnect
Scheduler relay heartbeat
2015-11-05 16:27:35 -05:00
Aaron Meihm a7466ac3ef Merge pull request #145 from ameihm0912/netstat-namespaces2
namespace support in netstat module
2015-11-05 09:36:12 -06:00
Julien Vehent 70dd88d9da [minor] bump version 2015-11-05 08:14:00 -05:00
Julien Vehent 943555b6cc [medium/bug] terminate scheduler when heartbeat to relays fails, fixes #146
If RabbitMQ suffers a network partition, the scheduler will remain in a
half broken state where no message can be consumed or published, but
other goroutines work fine. This patch introduce a new dummy event that
heartbeats the scheduler and terminates it if the publication of the
heartbeat fails. The hearbeat is a normal event that expires in rabbitmq
after 100 minutes, like any other event. It is published to a queue that
could eventually be consumed for monitoring.
2015-11-05 08:14:00 -05:00
Julien Vehent a73c2b4cd1 Merge pull request #149 from mozilla/migagentcheckintimeout
[medium] Force max exec time for agent in checkin mode, fixes #148
2015-11-04 13:10:38 -05:00
Aaron Meihm 94ac7cbf54 [medium] modify netstat module to better handle network namespaces
This adds an option (-namespaces) that triggers interrogation of network
activity using /proc/<pid>/net/* vs. /proc/net/*. This has the advantage
that it gives an agent visibility of network communcations related to
all namespaces on the system, vs. just the default namespace. Previously
if a process had connections active in another namespace, they would not
be visible to MIG.

At this time the functionality is optional, but may be moved to the
default in the future.
2015-11-04 10:54:15 -06:00
Julien Vehent 98590eba5e [medium] Force max exec time for agent in checkin mode, fixes #148 2015-11-04 11:07:27 -05:00
Julien Vehent c22b8039ef Merge pull request #147 from ameihm0912/master
[minor/bug] fix module parameter input issues
2015-11-03 13:29:07 -05:00
Aaron Meihm 15abdedc49 [minor/bug] fix module parameter input issues
This resolves a bug introduced in e2e687f. The args parameter to
runModuleDirectly() used to contain input parameters, but as of recent
changes to allow parameters via stdin does not.

Since the parameter was unused, this changes it to be an interface
pointer. If set, this will be used as module parameters, if not the
agent modules will expect input via stdin as normal.
2015-11-03 12:18:08 -06:00
Julien Vehent 99cfcd9796 Merge pull request #139 from mvanotti/fixDebugConfig
Minor refactor on mig-agent startup
2015-10-29 08:07:32 -04:00
Marco Vanotti e2e687f9a1 [minor] Add travis-ci test for running agent from file.
I'm applying the changes suggested in PR #139 by @jvehent; these make
runModuleDurectly to not use stdin, instead only use the given
parameters.

Now travis-ci should test mig-agent after installing to see that it can
run an action individually.
2015-10-28 16:49:42 -03:00
Marco Vanotti 78867ae5bb [minor] fix debug logging in mig-agent
Move the "debug-mode" switch to after loading the mig configuration,
because loading the configuration overrides the LOGGINGCONF variable.
2015-10-28 16:13:43 -03:00
Marco Vanotti e780f7151f [minor] move run action from file logic into it's own function.
To make the code more easy to follow, I moved the logic for
loading/running an action from a file into it's own function
"loadActionFromFile"
2015-10-28 16:13:43 -03:00
Julien Vehent f316b3d752 Merge pull request #141 from jdiez17/fix131
[minor] Mark and ignore bad files in mig-scheduler. Fixes #131.
2015-10-19 17:30:05 -04:00
Julien Vehent 4f40587485 Merge pull request #140 from eXeC64/master
Use servers in /etc/ntp.conf for timedrift
2015-10-19 17:29:08 -04:00
Julien Vehent 1fa03f41b0 [minor] fix bad func name is log line 2015-10-19 13:50:34 -04:00
Harry Jeffery 381c6e2616 [minor] use servers in /etc/ntp.conf for timedrift, fixes #116
Instead of picking ntp servers randomly from a hardcoded list we now
prepend our hardcoded list with the servers defined in /etc/ntp.conf and
then try each server sequentially until we find one that works.
2015-10-19 16:30:15 +01:00
Jose Diez 74fdb1c923 [minor] Mark and ignore bad files in mig-scheduler. Fixes #131. 2015-10-19 15:13:56 +01:00
Julien Vehent 3cfb4a4220 [minor] fix agent local conf warning message 2015-10-19 08:03:55 -04:00
Julien Vehent 45495bab90 Merge branch 'master' of https://github.com/mozilla/mig 2015-10-19 08:02:19 -04:00
Julien Vehent 91985e262d [minor] log queue cleanup as info instead of debug 2015-10-18 09:11:44 -04:00
Julien Vehent d7ce05d15a [minor] clients requires TLS1.2. deal with it! 2015-10-18 09:11:14 -04:00
Julien Vehent 39d78e1995 Merge pull request #138 from mvanotti/fixConfigLoad
[minor] fix configLoad bug in mig-agent
2015-10-18 09:07:21 -04:00
Julien Vehent ccbd16c608 Merge pull request #137 from mvanotti/fixDebug
[minor] panic on agent init err if foreground mode
2015-10-18 09:06:13 -04:00
Marco Vanotti d23927487c [minor] fix configLoad bug in mig-agent
If an error ocurred during configLoad function, it might not use the
builtin conf, but a half-overwritten one. This change defers the
Config overwrite until all the error-sensitive functions are called.
2015-10-17 15:10:36 -03:00
Marco Vanotti 263b5dd605 [minor] panic on agent init err if foreground mode
The comment said "if in foreground mode, don't retry, just panic", but
fhe if condition only checked for debug, no foreground.
debug -> foreground, but you can run the mig agent in foreground without
debug mode.
2015-10-17 15:06:17 -03:00
Julien Vehent 75b3c626a4 Merge pull request #136 from mvanotti/fixPermissions
[minor] fix permissions bug on receiveModuleResults in mig-agent
2015-10-17 13:19:01 -04:00
Julien Vehent a1039cc9f0 Merge pull request #134 from mvanotti/master
[client] better description on gpg key not found
2015-10-17 13:18:24 -04:00
Marco Vanotti ad4abd7a6d [minor] fix permissions bug on receiveModuleResults in mig-agent
There was an ioutil.WriteFile whose permissions were not in octal, giving
the resulting file bad permissions.

This commit also changes some of the printf formats from '%s' to %q,
which already quotes the desired variable.
2015-10-17 13:11:47 -03:00
Julien Vehent fbc3fbf1f7 Merge pull request #133 from gdestuynder/master
[doc] Added example to look for a user's processes/connected
2015-10-09 14:01:14 -04:00
Guillaume Destuynder 19d1fe3e16 [doc] Fix typo, enhance regexp for finding processes of a user. 2015-10-09 10:14:43 -07:00
Julien Vehent dd2985b970 Merge pull request #130 from ameihm0912/integrity
[minor] add optional hashing for file module results
2015-10-09 11:24:49 -04:00
Aaron Meihm 2e484240f9 [minor] issue in file module help with missing optional dash 2015-10-09 10:18:57 -05:00
Aaron Meihm 18a946c45c [doc] update file module docs to include returnsha256 option 2015-10-09 09:58:23 -05:00
Aaron Meihm 46d04aa60f [minor] clarify option names for file return hash 2015-10-09 09:54:34 -05:00
Marco Vanotti 0d6d452a32 [minor] better description on gpg key not found on client
When the .migrc is missing, a new one can be created, and if gpg is
installed, but there is no suitable key in the secring file, it will
display an error saying "No suitable key found". This commit also adds
to the error description the file which was inspected.

This fixes issue #132.
2015-10-09 11:02:23 -03:00
Julien Vehent 72ccfa5ca6 [doc] small update to contributor guidelines 2015-10-09 05:19:03 -04:00
Guillaume Destuynder 2338d646ff [doc] Added example to look for a user's processes/connected 2015-10-08 17:47:11 -07:00
Aaron Meihm 54629efe85 [minor] add optional hashing for file module results
If the -hash option is present, include the SHA256 sum of the matched
file as part of the file info.
2015-10-07 16:47:29 -05:00
Julien Vehent eebc764654 [doc] nit in console doc 2015-10-06 11:36:32 -04:00
Julien Vehent 7c4a70049e [doc] tons of new docs, with some CSS changes 2015-10-06 09:29:38 -04:00
Julien Vehent 75161adc20 [doc] various fixes, thanks to @mvanotti 2015-10-05 10:53:18 -04:00
Julien Vehent 37a7c33cc8 [minor] better errors handling in client package 2015-10-05 10:50:29 -04:00
Julien Vehent 34deac198f [doc] added mailing list info to readme 2015-10-05 09:03:33 -04:00