Julien Vehent
28745abed2
[minor] Rename Action.Check into Action.Order. More general.
2014-02-03 10:41:22 -05:00
Julien Vehent
60c477cabf
[major] MIG Agent: code refactoring for context management and logging
2014-02-03 10:41:12 -05:00
Julien Vehent
a861c0bc9a
[medium] MIG Agent: extract configuration
2014-02-03 10:41:05 -05:00
Julien Vehent
7ec8d3e50f
[medium] MIG PGP verification: take keyring as argument
2014-02-03 10:40:50 -05:00
Julien Vehent
6882706abf
MIG PGP: Add convertion from armored pubkey string to keyring
2014-01-22 12:16:19 -05:00
Julien Vehent
e74b0020da
fix building script for pgp
2014-01-08 18:45:41 -05:00
Julien Vehent
103767891f
PGP: split package in two to prevent gpgme from being linked to mig agents
2014-01-08 18:45:27 -05:00
Julien Vehent
9535bb81d0
Mig-action-generator: use Validate() instead of doing it manually
2014-01-08 18:44:50 -05:00
Julien Vehent
b5fda869fe
Agent: validate actions, includes PGP signature verification
2014-01-08 18:44:23 -05:00
Julien Vehent
2481c5e2fb
Action: add Validation function that verifies PGP signature
2014-01-08 18:43:57 -05:00
Julien Vehent
6af329b44d
Merge branch 'pgp'
2014-01-08 13:51:51 -05:00
Julien Vehent
d78ca3e9c8
PGP: Extract signature and verification into separate package
2014-01-08 13:51:06 -05:00
Julien Vehent
46316892ac
Checks update
2014-01-08 12:56:10 -05:00
Julien Vehent
5de7bcd328
Mig-Action-Generator: First shot at the action creator, with GPG signature handling using gpgme
2014-01-06 16:01:51 -05:00
Julien Vehent
f7459e8d9d
Agent: find yer own path
2014-01-06 16:00:43 -05:00
Julien Vehent
d08722c744
Build: better default
2014-01-06 15:59:58 -05:00
Julien Vehent
749998fe0e
Scheduler: Happy New Year, with a massive refactoring commit.
...
The logic is pretty much the same as before, but this commit is a massive code
cleanup. There is now:
* proper error handling: each function uses panic internally, with a defer block
that transform the panic into an error, and eventually logs
* syslog, log levels, asynchronous logging into LOG channel, and mig.LOG type
* configuration file, loaded into global Context, accessible to all functions
* Context initialization, with connection to database, broker, creation of channels
and other wonders is handled in context.go
* split of the scheduler code into several files, more work to do on that front,
particularly for the management of the Flow in flow.go
* Action and Command are split out in their own files, with specific methods
That's about it. Did I mention Happy New Year?
2014-01-06 15:59:27 -05:00
Julien Vehent
4dde8bf498
agent: path bin change
2013-12-19 09:58:30 -05:00
Julien Vehent
4a061b42a7
Filechecker: fix crash on file not found or permission error
2013-12-05 20:03:08 -05:00
Julien Vehent
515b7b3b8f
Reminder in build.sh
2013-12-05 20:02:44 -05:00
Julien Vehent
0028ecd9f0
Check Auditd updated
2013-12-05 20:02:31 -05:00
Julien Vehent
a094f3eecc
Check: rename root password check
2013-12-05 11:29:55 -05:00
Julien Vehent
d0ff26d00f
README update
2013-12-05 11:27:03 -05:00
Julien Vehent
23f3d20824
Scheduler: code reorganization
2013-12-05 11:26:53 -05:00
Julien Vehent
f1d0938ab4
Agent: change heartbeat freq to 5 minutes
2013-12-05 11:26:32 -05:00
Julien Vehent
c7400c3733
Agent: add timeout on long running filechecks
2013-12-05 11:26:17 -05:00
Julien Vehent
e262eb6824
Scheduler: Fix empty json result bug, caused by inotify pulling the file before it is fully written to disk
2013-12-05 11:24:28 -05:00
Julien Vehent
25c7fde38c
Scheduler: multi-critera agent search in mongo
2013-12-05 11:23:05 -05:00
Julien Vehent
996953b07f
Scheduler: Add timestamp on action and command
2013-12-05 11:22:26 -05:00
Julien Vehent
64ab588470
Scheduler: store actions in mongodb
2013-12-05 11:13:32 -05:00
Julien Vehent
9d36cecd3b
Mozilla License added
2013-12-05 11:07:24 -05:00
Julien Vehent
d3b338aaa4
Auditd compliance check update
2013-12-05 11:01:17 -05:00
Julien Vehent
b3089758d1
Filechecker: code cleanup and comments
2013-12-05 11:00:47 -05:00
Julien Vehent
482ee74afd
Build: exit on error
2013-11-01 16:40:20 -04:00
Julien Vehent
1ca6eea91b
Scheduler: Store Actions and Commands in MongoDB
2013-11-01 16:40:20 -04:00
Julien Vehent
8394a70ac3
Scheduler: code prettyness
2013-11-01 16:40:20 -04:00
Julien Vehent
1f82514936
Scheduler: refactor command loading from file in separate function
2013-11-01 16:40:20 -04:00
Julien Vehent
101bba4ccf
Scheduler: use variable for tmpdir, instead of hardcoded
2013-11-01 16:40:20 -04:00
Julien Vehent
7ec52e4bcb
Scheduler: store commands IDs in the action structure
2013-11-01 16:40:20 -04:00
Julien Vehent
f46f9bbdb9
Rename UniqID to ID, and bump size to 64 bits with unix TS for uniqueness
2013-11-01 16:40:20 -04:00
Julien Vehent
4b3c6b4565
code cleanup
2013-10-31 12:04:05 -04:00
Julien Vehent
2fb5c8948e
Check: LOWENCCRED regex update
2013-10-31 12:03:43 -04:00
Julien Vehent
e92728d24d
Refactor KeepAlive/Heartbeat messages
2013-10-31 12:03:25 -04:00
Julien Vehent
99320d2b65
Scheduler: [bug] don't ack manually when autoack is on
2013-10-31 10:32:13 -04:00
Julien Vehent
6421fcc053
Agent: rearrange initialization in agent mode (need further squashing)
2013-10-29 09:29:10 -04:00
Julien Vehent
2af9f5383c
Code prettyness: comments & linewraps
2013-10-29 09:29:10 -04:00
Julien Vehent
2817bca128
Agent: Filechecker module: use flexible JSON syntax in module commands
...
This commit reworks the arguments passed to agent's modules as an
undefined interface{} in JSON format. It will allow complex commands
to be passed to the modules.
2013-10-29 09:29:10 -04:00
Julien Vehent
0b2bab7e7e
Filechecker: rename resultcount into matchcount for clarity
2013-10-24 10:24:52 -04:00
Julien Vehent
34ddfc163f
Scheduler: code prettyness
2013-10-24 10:24:20 -04:00
Julien Vehent
7a4604cf69
Scheduler: autoack amqp and minor messaging tweaks
2013-10-24 10:24:12 -04:00