Skip to content

Commit f13ea83

Browse files
Merge branch 'develop' of https://github.com/CactuseSecurity/firewall-orchestrator into develop
2 parents 2f52a6c + b93268d commit f13ea83

File tree

548 files changed

+70001
-36781
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

+70001
-36781
lines changed

.editorconfig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,3 @@ 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: 27 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
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-
],
123
"configurations": [
134
{
145
"name": ".NET Core SSH Attach ubu20",
@@ -17,11 +8,7 @@
178
"processId": "${command:pickRemoteProcess}",
189
"pipeTransport": {
1910
"pipeProgram": "ssh",
20-
"pipeArgs": [
21-
"-T",
22-
"-p 22006",
23-
"tim@localhost"
24-
],
11+
"pipeArgs": [ "-T", "-p 22006", "tim@localhost" ],
2512
"debuggerPath": "~/vsdbg-root/vsdbg",
2613
"pipeCwd": "${workspaceRoot}",
2714
"quoteArgs": true
@@ -30,7 +17,7 @@
3017
"/home/tim/firewall-orchestrator/roles": "${workspaceRoot}"
3118
},
3219
"logging": {
33-
"logging.diagnosticsLog.protocolMessages": true
20+
"logging.diagnosticsLog.protocolMessages": true
3421
}
3522
},
3623
{
@@ -114,56 +101,20 @@
114101
"PYTHONPATH": "${PYTHONPATH}:${workspaceRoot}"
115102
},
116103
"args": [
117-
"-m1",
104+
"-m7",
118105
"-d1",
119106
"-f",
120107
"-s",
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",
108+
//"-l",
109+
// "-c"
110+
//"-l250"
133111
// 41 - lab fortimanager
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",
112+
//"-ihttps://fwodemodata.cactus.de/demo04_cpr8x.json",
137113
//"-ihttps://fwodemodata.cactus.de/demo01_fortiMgrLab.json"
138-
// "-ihttps://fwodemodata.cactus.de/demo05_fortiMgr2.json"
114+
//"-ihttps://fwodemodata.cactus.de/demo05_fortiMgr2.json"
139115
//"-ihttps://fwodemodata.cactus.de/big/xxx.json",
140116
]
141117
},
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-
},
167118
{
168119
"name": "py-customize-FWO-sample",
169120
"type": "debugpy",
@@ -359,24 +310,24 @@
359310
"-i/tmp/fworch-config.graphql"
360311
]
361312
},
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-
// },
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+
},
380331
{
381332
"name": "py-import-main-loop",
382333
"type": "debugpy",
@@ -412,4 +363,4 @@
412363
"processId": "${command:pickProcess}"
413364
}
414365
]
415-
}
366+
}

.vscode/settings.json

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

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: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ After the change restart apache2
1212
sudo systemctl restart apache2
1313
```
1414

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

1817
Copy root cert to
1918

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.RulebaseName} - Rule {rule.Id} {rule.Name}")
8+
NameExtractor=@(rule => $"{rule.DeviceName} - 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)