@@ -9,6 +9,7 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer};
99pub enum ApplicationSecurityWafCustomRuleConditionInputAddress {
1010 SERVER_DB_STATEMENT ,
1111 SERVER_IO_FS_FILE ,
12+ SERVER_IO_FS_FILE_WRITE ,
1213 SERVER_IO_NET_URL ,
1314 SERVER_SYS_SHELL_CMD ,
1415 SERVER_REQUEST_METHOD ,
@@ -22,6 +23,7 @@ pub enum ApplicationSecurityWafCustomRuleConditionInputAddress {
2223 SERVER_REQUEST_TRAILERS ,
2324 SERVER_REQUEST_BODY ,
2425 SERVER_REQUEST_BODY_FILENAMES ,
26+ SERVER_REQUEST_BODY_FILES_CONTENT ,
2527 SERVER_RESPONSE_STATUS ,
2628 SERVER_RESPONSE_HEADERS_NO_COOKIES ,
2729 SERVER_RESPONSE_TRAILERS ,
@@ -46,6 +48,7 @@ impl ToString for ApplicationSecurityWafCustomRuleConditionInputAddress {
4648 match self {
4749 Self :: SERVER_DB_STATEMENT => String :: from ( "server.db.statement" ) ,
4850 Self :: SERVER_IO_FS_FILE => String :: from ( "server.io.fs.file" ) ,
51+ Self :: SERVER_IO_FS_FILE_WRITE => String :: from ( "server.io.fs.file_write" ) ,
4952 Self :: SERVER_IO_NET_URL => String :: from ( "server.io.net.url" ) ,
5053 Self :: SERVER_SYS_SHELL_CMD => String :: from ( "server.sys.shell.cmd" ) ,
5154 Self :: SERVER_REQUEST_METHOD => String :: from ( "server.request.method" ) ,
@@ -61,6 +64,9 @@ impl ToString for ApplicationSecurityWafCustomRuleConditionInputAddress {
6164 Self :: SERVER_REQUEST_TRAILERS => String :: from ( "server.request.trailers" ) ,
6265 Self :: SERVER_REQUEST_BODY => String :: from ( "server.request.body" ) ,
6366 Self :: SERVER_REQUEST_BODY_FILENAMES => String :: from ( "server.request.body.filenames" ) ,
67+ Self :: SERVER_REQUEST_BODY_FILES_CONTENT => {
68+ String :: from ( "server.request.body.files_content" )
69+ }
6470 Self :: SERVER_RESPONSE_STATUS => String :: from ( "server.response.status" ) ,
6571 Self :: SERVER_RESPONSE_HEADERS_NO_COOKIES => {
6672 String :: from ( "server.response.headers.no_cookies" )
@@ -105,6 +111,7 @@ impl<'de> Deserialize<'de> for ApplicationSecurityWafCustomRuleConditionInputAdd
105111 Ok ( match s. as_str ( ) {
106112 "server.db.statement" => Self :: SERVER_DB_STATEMENT ,
107113 "server.io.fs.file" => Self :: SERVER_IO_FS_FILE ,
114+ "server.io.fs.file_write" => Self :: SERVER_IO_FS_FILE_WRITE ,
108115 "server.io.net.url" => Self :: SERVER_IO_NET_URL ,
109116 "server.sys.shell.cmd" => Self :: SERVER_SYS_SHELL_CMD ,
110117 "server.request.method" => Self :: SERVER_REQUEST_METHOD ,
@@ -118,6 +125,7 @@ impl<'de> Deserialize<'de> for ApplicationSecurityWafCustomRuleConditionInputAdd
118125 "server.request.trailers" => Self :: SERVER_REQUEST_TRAILERS ,
119126 "server.request.body" => Self :: SERVER_REQUEST_BODY ,
120127 "server.request.body.filenames" => Self :: SERVER_REQUEST_BODY_FILENAMES ,
128+ "server.request.body.files_content" => Self :: SERVER_REQUEST_BODY_FILES_CONTENT ,
121129 "server.response.status" => Self :: SERVER_RESPONSE_STATUS ,
122130 "server.response.headers.no_cookies" => Self :: SERVER_RESPONSE_HEADERS_NO_COOKIES ,
123131 "server.response.trailers" => Self :: SERVER_RESPONSE_TRAILERS ,
0 commit comments