IP名单中IP创建时保存相关节点、服务、WAF策略信息

This commit is contained in:
刘祥超
2021-11-16 16:10:52 +08:00
parent f4edd45886
commit 35b69141c1
6 changed files with 445 additions and 178 deletions

View File

@@ -11,4 +11,5 @@ message HTTPFirewallPolicy {
string description = 4;
bytes inboundJSON = 5;
bytes outboundJSON = 6;
int64 serverId = 8;
}

View File

@@ -3,6 +3,11 @@ option go_package = "./pb";
package pb;
import "models/model_http_firewall_policy.proto";
import "models/model_http_firewall_rule_group.proto";
import "models/model_http_firewall_rule_set.proto";
import "models/model_server.proto";
message IPItem {
int64 id = 1;
string ipFrom = 2;
@@ -16,4 +21,19 @@ message IPItem {
string eventLevel = 10; // 级别
string listType = 11; // 所在名单类型加此字段是为了快速定位IP的性质
int64 createdAt = 12;
int64 nodeId = 13;
int64 serverId = 14;
int64 sourceNodeId = 15;
int64 sourceServerId = 16;
int64 sourceHTTPFirewallPolicyId = 17;
int64 sourceHTTPFirewallRuleGroupId = 18;
int64 sourceHTTPFirewallRuleSetId = 19;
Server sourceServer = 30;
HTTPFirewallPolicy sourceHTTPFirewallPolicy = 31;
HTTPFirewallRuleGroup sourceHTTPFirewallRuleGroup = 32;
HTTPFirewallRuleSet sourceHTTPFirewallRuleSet = 33;
}