Skip to content

Commit 05dce47

Browse files
committed
chore: remove NGINX refs in docs/tests and simplify apache2/msc_release.h (macros)
1 parent f75cc10 commit 05dce47

File tree

6 files changed

+9
-101
lines changed

6 files changed

+9
-101
lines changed

apache2/msc_release.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,14 @@
4949
MODSEC_VERSION_SUFFIX
5050

5151
/* Apache Module Defines */
52-
#ifdef VERSION_IIS
53-
#define MODSEC_MODULE_NAME "ModSecurity for IIS (STABLE)"
52+
#if defined(VERSION_IIS)
53+
#define MODSEC_MODULE_NAME "ModSecurity for IIS (STABLE)"
54+
#elif defined(VERSION_STANDALONE)
55+
#define MODSEC_MODULE_NAME "ModSecurity Standalone (STABLE)"
5456
#else
55-
#ifdef VERSION_STANDALONE
56-
#define MODSEC_MODULE_NAME "ModSecurity Standalone (STABLE)"
57-
#else
58-
#define MODSEC_MODULE_NAME "ModSecurity for Apache"
59-
#endif
57+
#define MODSEC_MODULE_NAME "ModSecurity for Apache"
6058
#endif
59+
6160
#define MODSEC_MODULE_VERSION MODSEC_VERSION
6261
#define MODSEC_MODULE_NAME_FULL MODSEC_MODULE_NAME "/" MODSEC_MODULE_VERSION " (http://www.modsecurity.org/)"
6362

doc/doxygen-apache.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ PROJECT_NUMBER =
4444
# for a project that appears at the top of each page and should give viewer a
4545
# quick idea about the purpose of the project. Keep the description short.
4646

47-
PROJECT_BRIEF = "ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx that is developed by Trustwave's SpiderLabs. It has a robust event-based programming language which provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring, logging and real-time analysis. With over 10,000 deployments world-wide, ModSecurity is the most widely deployed WAF in existence."
47+
PROJECT_BRIEF = "ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache and IIS that is developed by Trustwave's SpiderLabs. It has a robust event-based programming language which provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring, logging and real-time analysis. With over 10,000 deployments world-wide, ModSecurity is the most widely deployed WAF in existence."
4848

4949
# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
5050
# in the documentation. The maximum height of the logo should not exceed 55

doc/doxygen-iis.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ PROJECT_NUMBER =
4444
# for a project that appears at the top of each page and should give viewer a
4545
# quick idea about the purpose of the project. Keep the description short.
4646

47-
PROJECT_BRIEF = "ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx that is developed by Trustwave's SpiderLabs. It has a robust event-based programming language which provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring, logging and real-time analysis. With over 10,000 deployments world-wide, ModSecurity is the most widely deployed WAF in existence."
47+
PROJECT_BRIEF = "ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache and IIS that is developed by Trustwave's SpiderLabs. It has a robust event-based programming language which provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring, logging and real-time analysis. With over 10,000 deployments world-wide, ModSecurity is the most widely deployed WAF in existence."
4848

4949
# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
5050
# in the documentation. The maximum height of the logo should not exceed 55

doc/doxygen-standalone.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ PROJECT_NUMBER =
4444
# for a project that appears at the top of each page and should give viewer a
4545
# quick idea about the purpose of the project. Keep the description short.
4646

47-
PROJECT_BRIEF = "ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx that is developed by Trustwave's SpiderLabs. It has a robust event-based programming language which provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring, logging and real-time analysis. With over 10,000 deployments world-wide, ModSecurity is the most widely deployed WAF in existence."
47+
PROJECT_BRIEF = "ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache and IIS that is developed by Trustwave's SpiderLabs. It has a robust event-based programming language which provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring, logging and real-time analysis. With over 10,000 deployments world-wide, ModSecurity is the most widely deployed WAF in existence."
4848

4949
# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
5050
# in the documentation. The maximum height of the logo should not exceed 55

tests/regression/config/10-audit-directives.t

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -97,61 +97,6 @@
9797
GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/bogus",
9898
),
9999
},
100-
{
101-
type => "config",
102-
comment => "SecAuditLogType Concurrent",
103-
conf => qq(
104-
SecAuditEngine On
105-
SecAuditLog $ENV{AUDIT_LOG}
106-
SecAuditLogType Concurrent
107-
SecAuditLogStorageDir "$ENV{LOGS_DIR}/audit"
108-
),
109-
test => sub {
110-
### Perl code to parse the audit log entry and verify
111-
### that the concurrent audit log exists and contains
112-
### the correct data.
113-
###
114-
### TODO: Need some API for this :)
115-
###
116-
### FIXME: Just workable with apache, the timing to load auditlog from nginx
117-
### is not correct, so the test is failing even when it should pass.
118-
### Disabling it for now until we figure out a way to handle that.
119-
120-
# Parse log
121-
#my $alogre = qr/^(?:\S+)\ (?:\S+)\ (?:\S+)\ (?:\S+)\ \[(?:[^:]+):(?:\d+:\d+:\d+)\ (?:[^\]]+)\]\ \"(?:.*)\"\ (?:\d+)\ (?:\S+)\ \"(?:.*)\"\ \"(?:.*)\"\ (\S+)\ \"(?:.*)\"\ (\S+)\ (?:\d+)\ (?:\d+)\ (?:\S+)(?:.*)$/m;
122-
#my $alog = match_log("audit", $alogre, 1);
123-
#chomp $alog;
124-
#dbg("Alog: $alog\n");
125-
#my @log = ($alog =~ m/$alogre/);
126-
#my($id, $fn) = ($log[0], $log[1]);
127-
#if (!$id or !$fn) {
128-
#dbg("LOG ENTRY: $alog");
129-
#die "Failed to parse audit log: $ENV{AUDIT_LOG}\n";
130-
#}
131-
132-
# Verify concurrent log exists
133-
#my $alogdatafn = "$ENV{LOGS_DIR}/audit$fn";
134-
#if (! -e "$alogdatafn") {
135-
#die "Audit log does not exist: $alogdatafn\n";
136-
#}
137-
138-
# Verify concurrent log contents
139-
#if (defined match_file($alogdatafn, qr/^--[^-]+-A--.*$id.*-Z--$/s)) {
140-
#return 0;
141-
#}
142-
143-
# Error
144-
#dbg("LOGDATA: \"$FILE{$alogdatafn}{buf}\"");
145-
#die "Audit log data did not match.\n";
146-
return 0;
147-
},
148-
match_response => {
149-
status => qr/^200$/,
150-
},
151-
request => new HTTP::Request(
152-
GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
153-
),
154-
},
155100

156101
# SecAuditLogRelevantStatus
157102
{

tests/regression/config/10-request-directives.t

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -610,42 +610,6 @@
610610
131072*3
611611
),
612612
},
613-
# Known issue on nginx, disable it for now.
614-
#{
615-
# type => "config",
616-
# comment => "SecRequestBodyLimitAction ProcessPartial (plain/greater)",
617-
# conf => qq(
618-
# SecRuleEngine On
619-
# SecDebugLog $ENV{DEBUG_LOG}
620-
# SecDebugLogLevel 9
621-
# SecRequestBodyAccess On
622-
# SecRequestBodyLimitAction ProcessPartial
623-
# SecRequestBodyLimit 131072
624-
# ),
625-
# match_log => {
626-
# -debug => [ qr/Request body is larger than the configured limit/, 1],
627-
# },
628-
# match_response => {
629-
# status => qr/^200$/,
630-
# },
631-
# request => new HTTP::Request(
632-
# POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
633-
# [
634-
# "Content-Type" => "application/json",
635-
# ],
636-
# normalize_raw_request_data(
637-
# q(
638-
# {
639-
# ) . "'abcdefghijlmnopq'='abcdefghijlmnopqrstuvxz',\\n" x 99000 . q(
640-
# },
641-
# ),
642-
# ),
643-
# ),
644-
#},
645-
646-
647-
648-
649613

650614
# SecCookieFormat
651615
{

0 commit comments

Comments
 (0)