Skip to content

Commit 618f2d2

Browse files
2 parents 61e0885 + 3de76f7 commit 618f2d2

File tree

525 files changed

+20647
-6100
lines changed

Some content is hidden

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

525 files changed

+20647
-6100
lines changed

.vscode/launch.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"name": "py-normalizeNwData",
8383
"type": "debugpy",
8484
"request": "launch",
85-
"program": "${workspaceFolder}/scripts/customizing/modelling/convertNwObjDataExample.py",
85+
"program": "${workspaceFolder}/scripts/customizing/modelling/convertNwObjDataFromGitPlain.py",
8686
"console": "integratedTerminal",
8787
"env": {
8888
"PYTHONPATH": "${PYTHONPATH}:${workspaceRoot}"
@@ -101,15 +101,14 @@
101101
"PYTHONPATH": "${PYTHONPATH}:${workspaceRoot}"
102102
},
103103
"args": [
104-
"-m23",
104+
"-m6",
105105
"-d1",
106106
"-f",
107107
"-s",
108-
//"-l66",
108+
//"-l",
109109
// "-c"
110110
//"-l250"
111111
// 41 - lab fortimanager
112-
//"-nhttps://fwodemodata.cactus.de/demo07_dummyGw1.json"
113112
//"-ihttps://fwodemodata.cactus.de/demo04_cpr8x.json",
114113
//"-ihttps://fwodemodata.cactus.de/demo01_fortiMgrLab.json"
115114
//"-ihttps://fwodemodata.cactus.de/demo05_fortiMgr2.json"

CODING_GUIDELINES.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,72 @@
2727
## C# specific
2828
- avoid null references
2929
- methods should be preceded with standard comment header (///)
30+
31+
## Conventional Commits
32+
The Conventional Commits specification is a lightweight convention on top of commit messages. It provides an easy set of rules for creating an explicit commit history; which makes it easier to write automated tools on top of
33+
34+
### Why Use Conventional Commits
35+
- Automatically generating CHANGELOGs.
36+
- Automatically determining a semantic version bump (based on the types of commits landed).
37+
- Communicating the nature of changes to teammates, the public, and other stakeholders.
38+
- Triggering build and publish processes.
39+
- Making it easier for people to contribute to your projects, by allowing them to explore a more structured commit history.
40+
41+
The commit message should be structured as follows:
42+
```
43+
<type>[optional scope]: <description>
44+
[optional body]
45+
[optional footer(s)]
46+
```
47+
48+
The commit contains the following structural elements, to communicate intent to the consumers:
49+
50+
- fix: a commit of the type fix patches a bug in your codebase (this correlates with PATCH in Semantic Versioning).
51+
- feat: a commit of the type feat introduces a new feature to the codebase (this correlates with MINOR in Semantic Versioning).
52+
- BREAKING CHANGE: a commit that has a footer BREAKING CHANGE:, or appends a ! after the type/scope, introduces a breaking API change (correlating with MAJOR in Semantic Versioning). A BREAKING CHANGE can be part of commits of any type.
53+
- types other than fix: and feat: are allowed, for example @commitlint/config-conventional (based on the Angular convention) recommends build:, chore:, ci:, docs:, style:, refactor:, perf:, test:, and others.
54+
- footers other than BREAKING CHANGE: <description> may be provided and follow a convention similar to git trailer format.
55+
56+
### Examples
57+
Commit message with description and breaking change footer
58+
```
59+
feat: allow provided config object to extend other configs
60+
61+
BREAKING CHANGE: `extends` key in config file is now used for extending other config files
62+
```
63+
64+
Commit message with ! to draw attention to breaking change
65+
```
66+
feat!: send an email to the customer when a product is shipped
67+
```
68+
69+
Commit message with scope and ! to draw attention to breaking change
70+
```
71+
feat(api)!: send an email to the customer when a product is shipped
72+
```
73+
74+
Commit message with ! to draw attention to breaking change
75+
```
76+
chore!: drop support for Node 6
77+
78+
BREAKING CHANGE: use JavaScript features not available in Node 6.
79+
```
80+
81+
Commit message with no body
82+
```
83+
docs: correct spelling of CHANGELOG
84+
```
85+
86+
Commit message with multi-paragraph body and multiple footers
87+
```
88+
fix: prevent racing of requests
89+
90+
Introduce a request id and a reference to latest request. Dismiss
91+
incoming responses other than from latest request.
92+
93+
Remove timeouts which were used to mitigate the racing issue but are
94+
obsolete now.
95+
96+
Reviewed-by: Z
97+
Refs: #123
98+
```

CODING_GUIDELINES_FRONTEND.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
# Code Guidelines
3+
4+
5+
## General
6+
- Close your tag - Leaving some tags open is simply a bad practice. Only self-closing tags are valid. Normal elements can never have self-closing tags.
7+
- Don't use inline styles(if possible) - When creating your markup, do not use inline styling because it would be very hard to override these styles in case you need to.
8+
- Try not to use "!important" - Using the !important declaration is often considered bad practice because it has side effects that mess with one of CSS's core mechanisms: specificity. In many cases, using it could indicate poor CSS architecture.
9+
10+
## Components
11+
- Organize files and components in a folder structure like this. This makes it easy to find the code related to a page, without having to browse the entire file explorer. Try, as much as possible, to respect the SOLID principles. Mainly by creating autonomous and extensible components: inject the smallest possible service or parameter, manage all the possibilities offered by the component. For example, a data modification page should display the data, check their values and save the data at the end of the process.
12+
13+
## UI
14+
# Responsiveness
15+
- Use the bootstrap grid and it's column classes to have easy and responsive design. [Bootstrap](https://getbootstrap.com/docs/5.3/layout/columns/)
16+
- Decide if you want to develop mobile or desktop design first and test respectively.

documentation/certificates.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Certificates in FWO
2+
3+
The expected paths for keys and certificates are /etc/apache2/ssl/server.key and /etc/apache2/ssl/server.crt respectivly. If you want to change them, use these names and paths. Make sure server.key has these permissions
4+
5+
```
6+
-rw-r----- 1 root root
7+
```
8+
9+
After the change restart apache2
10+
11+
```
12+
sudo systemctl restart apache2
13+
```
14+
15+
## Change Root Certificate
16+
17+
Copy root cert to
18+
19+
```
20+
/usr/local/share/ca-certificates/
21+
```
22+
23+
and update
24+
25+
```
26+
sudo update-ca-certificates
27+
```

documentation/developer-docs/importer/FWO-import-api.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ here we describe a single rule:
140140
"rule_head_text": null, // string: for section headers this is the field to use
141141
"rule_from_zone": null, // string: source zone (if applicable) of the rule
142142
"rule_to_zone": null, // string: destination zone (if applicable) of the rule
143-
"rule_type": "access" // string: type of the nat rule: "access|combined|original|xlate", default "access"
143+
"rule_type": "access", // string: type of the nat rule: "access|combined|original|xlate", default "access"
144+
"rule_custom_fields": "{\"field1\": \"value1\"}" // string: json serialized user defined fields
144145
}
145146
```
146147
- rule_track can be any of log, none, alert, userdefined, mail, account, userdefined 1, userdefined 2, userdefined 3, snmptrap, log count, count, log alert, log alert count, log alert count alarm, log count alarm, count alarm, all, all start, utm, utm start, network log

documentation/installer/install-advanced.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Advanced installation options
22

3-
always change into the firewwall-orchestrator directory before starting the installation!
3+
always change into the firewwall-orchestrator directory before starting the installation.
44

55
## Install parameters
66

@@ -38,7 +38,7 @@ ansible-playbook site.yml -K
3838
### Installation behind a proxy (no direct Internet connection)
3939

4040
By default, during installation or upgrade the proxy settings are read from the OS environment of the installer host.
41-
For example you may have a global system-wide config file /etc/profile.d/proxy.sh with the following content:
41+
For example you may either use /etc/environment or add a global system-wide config file /etc/profile.d/proxy.sh and add the following content:
4242

4343
```console
4444
export http_proxy=http://proxy.int:3128
@@ -49,7 +49,7 @@ export no_proxy=127.0.0.1,localhost
4949
Also make sure that your proxy is configured in your .gitconfig to be able to do the initial repo cloning.
5050
See https://gist.github.com/evantoli/f8c23a37eb3558ab8765.
5151

52-
If instead you need to individually set a proxy before installation/upgrade, use the following comamnds in your terminal:
52+
If instead you need to individually set a proxy before installation/upgrade, use the following commands in your terminal:
5353
```console
5454
export http_proxy=http://proxy.int:3128
5555
export https_proxy=http://proxy.int:3128
@@ -75,6 +75,8 @@ Note that the following domains must be reachable through the proxy:
7575
postgresql.org
7676
microsoft.com
7777
nuget.org
78+
storage.googleapis.com
79+
googlechromelabs.github.io
7880

7981
Only for the initial setup of python venv
8082

@@ -88,6 +90,8 @@ NB: for vscode-debugging, you also need access to
8890
visualstudio.com
8991

9092

93+
#### Pyhton proxy config
94+
9195
Remember if your server resides behind a proxy that you will have to set the proxy for pip as follows before installing ansible:
9296

9397
pip config set global.proxy http://proxy:3128
@@ -97,6 +101,16 @@ In case of timeout issues (you might be behind a security proxy that does intens
97101

98102
pip --default-timeout=3600 install ansible
99103
104+
##### issues with existing pip config
105+
106+
In case of errors with existing pip config, do not use the script to create the venv but proceed as follows:
107+
108+
remove any local pip config and install manually:
109+
110+
rm -f $HOME/.config/pip/pip.conf
111+
python3 -m venv ansible-venv
112+
source ansible-venv/bin/activate
113+
pip install ansible
100114

101115
### Parameter "api_no_metadata" to prevent meta data import
102116

documentation/installer/install-for-testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This includes:
1212
Note: the relevant secrets are displayed at the very end of the installation. They can also be found in the etc/secrets directory.
1313

1414
```console
15-
ansible-playbook/ site.yml -e "testkeys=yes" -K
15+
ansible-playbook site.yml -e "testkeys=yes" -K
1616
```
1717

1818
A static jwt key helps with debugging c# code in visual studio (code) - you can use a static backend (ldap & api) with these keys.

documentation/revision-history-develop.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,3 +217,40 @@ bugfix release:
217217
# 8.2.4 - 19.06.2024 DEVELOP
218218
- owner-filtering for new report type
219219
- new setting for email recipients
220+
221+
# 8.3.1 - 08.07.2024 DEVELOP
222+
- workflow: external state handling
223+
- fix config value
224+
- remove uniqueness of owner names
225+
226+
# 8.3.2 - 09.09.2024 DEVELOP
227+
- Added welcome message and settings
228+
229+
# 8.4.1 - 15.10.24 DEVELOP
230+
- Add missing FK connection.proposed_app_id #2591
231+
232+
# 8.4.2 - 17.10.2024 DEVELOP
233+
- external request
234+
235+
# 8.4.3 - 05.11.2024 DEVELOP
236+
- extra parameters in modelling connection
237+
238+
# 8.5.1 - 18.11.2024 DEVELOP
239+
- reporting - fixing PDF generation on various platforms
240+
- modelling - fixing AR editing: strict prevention of all area mixing
241+
242+
# 8.5.2 - 27.11.2024 DEVELOP
243+
- some check point importer fixes
244+
- 4 new colors
245+
- added Internet object
246+
- added voip one more object
247+
248+
# 8.5.3 - 27.11.2024 DEVELOP
249+
- owner import - make ldap selectable (internal/external)
250+
- small fixes regarding missing config data for two schedulers (daily, app data import)
251+
252+
# 8.5.4 - 04.12.2024 DEVELOP
253+
- external request: introduce wait cycles
254+
255+
# 8.6.1 - 12.12.2024 DEVELOP
256+
- external request: introduce locks

documentation/revision-history-main.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,3 +395,87 @@ Maintenance release
395395
# 8.3.1 - 14.08.24 MAIN
396396
Hotfix:
397397
- in CheckPoint importer: fix missing group members
398+
399+
# 8.4 - 30.09.24 MAIN
400+
Stability release
401+
- various small bug fixes
402+
- installer (redundant code deleting test user)
403+
- importer (switching from full details to standard, re-adding VSX gateway support, voip domain handling in cp parser)
404+
- reporting (app-rule report containing multiple objects)
405+
- middleware (config subscriptions)
406+
- reporting (temporarily highlight linked to object in rsb)
407+
- modelling (sync connections - not always part of overview table after creation)
408+
- RBA (role picking when user has multiple roles)
409+
- UI various: adding missing pager control
410+
- UI various: spinner clean-up
411+
- features/upgrades
412+
- Added login page welcome message and settings
413+
- Added last hit information in app-rule report
414+
- API - upgrading to 2.43.0
415+
- various security upgrades dotnet (restsharp, jwt, ...)
416+
417+
# 8.4.1 - 30.10.24 MAIN
418+
Network Modelling feature update
419+
- import of app server IP addresses via CSV upload
420+
- import of multiple sources for area IP data
421+
- new option email notification: fall-back to main owner if group is empty
422+
Fixes
423+
- corrections in displaying UI messages
424+
- converting owner network ip data to standard format "range"
425+
- importer
426+
- check point - fix import of all VSX instances
427+
- fortinet - add hit counts and install on information
428+
429+
# 8.5 - 13.11.24 MAIN
430+
Network Modelling feature update
431+
- modelling can be requested as firewall change via external ticketing tool
432+
- includes all approle handling
433+
- simple form of rule change request (always request all connections as rules)
434+
- api hasura upgrade to 2.44.0
435+
Fixes
436+
- various small UI fixes
437+
- importer (CP: handle None objects)
438+
439+
# 8.6 - 11.12.2024 MAIN
440+
Features
441+
- Modelling
442+
- Create Application Zones
443+
- Add monitoring for external requests for admins
444+
- Add re-initialization for external requests
445+
- consolidation modelling external requests
446+
- adding optional access requst on behalf of UI user
447+
- adding live update of external task/ticket status
448+
- app server name handling rework (NONAME --> <prefix>_<IP address>)
449+
- owner groups can now also be external LDAP groups
450+
451+
- Reporting
452+
- refining connection report (adding Common service, app role, network area details)
453+
Fixes
454+
- Importer
455+
- adding missing colors in Check Point importer
456+
- new VOIP service object and Internet object
457+
458+
- UI
459+
- SECURITY: updating System.Text.Encodings.Web v4.5.0 --> v8.0.0
460+
461+
# 8.6.1 17.12.2024 MAIN
462+
Fixes network modelling
463+
- lock external requests to avoid multiple external tickets
464+
- fix missing comments
465+
- wait cycles for access request after group changes
466+
- save publish flag at interface creation
467+
- disregard dummyAppRole for status determination
468+
- inherit extra configs from interface
469+
- sanitize extra configs
470+
- sort tasks for connection Id and show already adapted name of new members
471+
- small monitoring adaptations
472+
- some cleanup + removal of compiler warnings
473+
- fix ldap group creation regression
474+
- restrict owner_network uniqness constraint to same import source
475+
- UI interface search pop-up transformed into filterable table
476+
477+
Upgrade Hasura API to v2.45.1
478+
479+
# 8.6.2 03.01.2025 MAIN
480+
Hotfix for network modelling:
481+
- fix: when visiting the library for the second time, app servers were missing due to uninitialized area data.

inventory/group_vars/all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
### general settings
2-
product_version: "8.3.1"
2+
product_version: "8.6.2"
33
ansible_user: "{{ lookup('env', 'USER') }}"
44
ansible_become_method: sudo
55
ansible_python_interpreter: /usr/bin/python3

0 commit comments

Comments
 (0)