mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
First version of the status engine implementation
The Status Engine allow the measurements of how many ModSecurity instances are running around the world, as long as information on how many times it had been restarted and so on. Everytime that the server is started it perform a DNS query that is redirected to our servers, that query constains information about the ModSecurity version and it dependencies versions. It also sends a unique indetification generate locally for the server, avoiding counting the same server twice while generating the statistics. This id is a sha-1 hash of the machine name + mac address of the first network adapter. In this commit it is enabled by default, in the release will be a configuration option to disable this functionality. It also important to cite that the information gather by this query will be also available in ModSecurity website public open via a JSON stateless API. There will be an fancy heatmap as well.
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
#include "msc_lua.h"
|
||||
#endif
|
||||
|
||||
#include "msc_status_engine.h"
|
||||
|
||||
/* ModSecurity structure */
|
||||
|
||||
@@ -722,6 +723,8 @@ static int hook_post_config(apr_pool_t *mp, apr_pool_t *mp_log, apr_pool_t *mp_t
|
||||
ap_log_error(APLOG_MARK, APLOG_NOTICE | APLOG_NOERRNO, 0, s,
|
||||
"Original server signature: %s", real_server_signature);
|
||||
}
|
||||
|
||||
msc_status_engine_call();
|
||||
}
|
||||
|
||||
srand((unsigned int)(time(NULL) * getpid()));
|
||||
|
Reference in New Issue
Block a user