Skip to content

Commit 96a4e9d

Browse files
authored
Merge branch 'importer-rework' into develop
2 parents cf802e5 + f298b6b commit 96a4e9d

File tree

548 files changed

+36737
-69957
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

548 files changed

+36737
-69957
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ end_of_line = lf
1010
charset = utf-8
1111
trim_trailing_whitespace = false
1212
insert_final_newline = true
13+
14+
[*.razor]
15+
indent_style = space
16+
indent_size = 4

.vscode/launch.json

Lines changed: 76 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
{
22
"version": "0.2.0",
3+
"compounds": [
4+
{
5+
"name": "Launch MW and UI",
6+
"configurations": [
7+
"c#-MiddlewareServer",
8+
"c#-Blazor UI"
9+
]
10+
}
11+
],
312
"configurations": [
413
{
514
"name": ".NET Core SSH Attach ubu20",
@@ -8,7 +17,11 @@
817
"processId": "${command:pickRemoteProcess}",
918
"pipeTransport": {
1019
"pipeProgram": "ssh",
11-
"pipeArgs": [ "-T", "-p 22006", "tim@localhost" ],
20+
"pipeArgs": [
21+
"-T",
22+
"-p 22006",
23+
"tim@localhost"
24+
],
1225
"debuggerPath": "~/vsdbg-root/vsdbg",
1326
"pipeCwd": "${workspaceRoot}",
1427
"quoteArgs": true
@@ -17,7 +30,7 @@
1730
"/home/tim/firewall-orchestrator/roles": "${workspaceRoot}"
1831
},
1932
"logging": {
20-
"logging.diagnosticsLog.protocolMessages": true
33+
"logging.diagnosticsLog.protocolMessages": true
2134
}
2235
},
2336
{
@@ -101,20 +114,56 @@
101114
"PYTHONPATH": "${PYTHONPATH}:${workspaceRoot}"
102115
},
103116
"args": [
104-
"-m7",
117+
"-m1",
105118
"-d1",
106119
"-f",
107120
"-s",
108-
//"-l",
109-
// "-c"
110-
//"-l250"
121+
// "-c",
122+
// "-ifile:///home/tim/tmp/mgm_id_12_config_normalized_with_links.json",
123+
// "-ifile:///home/tim/tmp/mgm_id_16_config_normalized_links_only.json",
124+
// "-ifile:///home/tim/tmp/mgm_id_16_config_normalized_links_changed.json",
125+
// "-ifile:///home/tim/tmp/mgm_id_16_config_normalized_links_src_negated.json",
126+
// "-ifile:///home/tim/tmp/mgm_id_3_config_normalized.json",
127+
// "-ifile:///home/tim/tmp/mgm_id_1_config_normalized.json",
128+
// "-ifile:///home/tim/tmp/sting_1_norm.json",
129+
// "-ifile:///home/tim/tmp/sting_2_plus_one_nwobj_norm.json",
130+
"-ifile:///home/tim/tmp/sting_3_plus_one_rule_norm.json",
131+
//"-l66",
132+
// "-l500",
111133
// 41 - lab fortimanager
112-
//"-ihttps://fwodemodata.cactus.de/demo04_cpr8x.json",
134+
//"-nhttps://fwodemodata.cactus.de/demo07_dummyGw1.json"
135+
// "-ihttps://fwodemodata.cactus.de/demo11-r82_v9.json",
136+
// "-ihttps://fwodemodata.cactus.de/demo04_cpr8x.json",
113137
//"-ihttps://fwodemodata.cactus.de/demo01_fortiMgrLab.json"
114-
//"-ihttps://fwodemodata.cactus.de/demo05_fortiMgr2.json"
138+
// "-ihttps://fwodemodata.cactus.de/demo05_fortiMgr2.json"
115139
//"-ihttps://fwodemodata.cactus.de/big/xxx.json",
116140
]
117141
},
142+
{
143+
"name": "py-test-ruleorder",
144+
"type": "debugpy",
145+
"request": "launch",
146+
"program": "${workspaceFolder}/roles/importer/files/test/ruleorder.py",
147+
"console": "integratedTerminal",
148+
"env": {
149+
"PYTHONPATH": "${PYTHONPATH}:${workspaceRoot}"
150+
},
151+
"args": []
152+
},
153+
{
154+
"name": "py-kimport",
155+
"type": "debugpy",
156+
"request": "launch",
157+
"program": "${workspaceFolder}/roles/importer/files/importer/checkpointR8x/scripts/Python-nsPYm-v2/get_all_firewall_data.py",
158+
"console": "integratedTerminal",
159+
"env": {
160+
"PYTHONPATH": "${PYTHONPATH}:${workspaceRoot}"
161+
},
162+
"args": [
163+
"itsecorg",
164+
"st8chel"
165+
]
166+
},
118167
{
119168
"name": "py-customize-FWO-sample",
120169
"type": "debugpy",
@@ -310,24 +359,24 @@
310359
"-i/tmp/fworch-config.graphql"
311360
]
312361
},
313-
{
314-
"name": "py-cpr8x-autodiscovery",
315-
"type": "debugpy",
316-
"request": "launch",
317-
"program": "${workspaceFolder}/roles/importer/files/importer/checkpointR8x/auto-discover.py",
318-
"console": "integratedTerminal",
319-
"cwd": "${workspaceFolder}/roles/importer/files/importer/checkpointR8x",
320-
"env": {
321-
"PYTHONPATH": "${PYTHONPATH}:${workspaceRoot}"
322-
},
323-
"args": [
324-
"-a192.168.100.110",
325-
"-w/home/tim/secrets/cp_apiuser_pwd",
326-
"-uitsecorg",
327-
"-d4",
328-
"-fjson"
329-
]
330-
},
362+
// {
363+
// "name": "py-cpr8x-autodiscovery",
364+
// "type": "debugpy",
365+
// "request": "launch",
366+
// "program": "${workspaceFolder}/roles/importer/files/importer/checkpointR8x/auto-discover.py",
367+
// "console": "integratedTerminal",
368+
// "cwd": "${workspaceFolder}/roles/importer/files/importer/checkpointR8x",
369+
// "env": {
370+
// "PYTHONPATH": "${PYTHONPATH}:${workspaceRoot}"
371+
// },
372+
// "args": [
373+
// "-a192.168.100.111",
374+
// "-w/home/tim/secrets/cp_apiuser_pwd",
375+
// "-uitsecorg",
376+
// "-d4",
377+
// "-fjson"
378+
// ]
379+
// },
331380
{
332381
"name": "py-import-main-loop",
333382
"type": "debugpy",
@@ -363,4 +412,4 @@
363412
"processId": "${command:pickProcess}"
364413
}
365414
]
366-
}
415+
}

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
"editor.formatOnSave": false,
44
"[csharp]": {
55
"editor.defaultFormatter": "ms-dotnettools.csharp"
6+
},
7+
"[razor]": {
8+
"editor.defaultFormatter": "ms-dotnettools.csharp"
69
}
7-
}
10+
}

ansible.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ inventory = inventory
44
# interpreter_python = ~/.local/bin/ansible
55
# timeout = 60
66
force_handlers = True
7-
stdout_callback = yaml
7+
# stdout_callback = yaml
88

99
# gathering = smart
1010
# gather_subset = !hardware,!facter,!ohai

documentation/certificates.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ After the change restart apache2
1212
sudo systemctl restart apache2
1313
```
1414

15-
## Change Root Certificate
15+
16+
## Change Roor Certificate
1617

1718
Copy root cert to
1819

documentation/developer-docs/UI/csharp/data-filtering.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ first version:
55
```csharp
66
<CascadingValue Value="collapseSidebarRule">
77
<ObjectGroupCollection FetchObjects="FetchContent" Type="30" StartContentDetailed="true" StartCollapsed="false" InputDataType="Rule" Data="selectedItemsRuleReportTable"
8-
NameExtractor=@(rule => $"{rule.DeviceName} - Rule {rule.Id} {rule.Name}")
8+
NameExtractor=@(rule => $"{rule.RulebaseName} - Rule {rule.Id} {rule.Name}")
99
NetworkObjectExtractor="rule => Array.ConvertAll(rule.Froms.Concat(rule.Tos).GroupBy(x => x.Object?.Id).Select(x => x.FirstOrDefault()).ToArray(), location => location.Object)"
1010
NetworkServiceExtractor="rule => Array.ConvertAll(rule.Services, wrapper => wrapper.Content)"
1111
NetworkUserExtractor="rule => Array.FindAll(Array.ConvertAll(rule.Froms.Concat(rule.Tos).GroupBy(x => x.User?.Id).Select(x => x.FirstOrDefault()).ToArray(), location => location.User), user => user != null)" />

0 commit comments

Comments
 (0)