Skip to content

Commit c7226ad

Browse files
authored
Merge pull request #1919 from CactuseSecurity/develop
Develop - main merge v6.0.1
2 parents e8d3e7d + e05fc12 commit c7226ad

27 files changed

Lines changed: 274 additions & 108 deletions

File tree

.vscode/launch.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@
5050
"PYTHONPATH": "${PYTHONPATH}:${workspaceRoot}"
5151
},
5252
"args": [
53-
"-m5",
53+
"-m8",
5454
"-d9",
5555
"-f",
5656
"-s",
5757
//"-xhttp://10.6.5.10:3128",
5858
//"-ihttps://fwodemodata.cactus.de/demo04_cpr8x.json",
5959
//"-ihttps://fwodemodata.cactus.de/demo01_fortiMgrLab.json"
6060
//"-ihttps://fwodemodata.cactus.de/demo05_fortiMgr2.json"
61-
// "-ihttps://fwodemodata.cactus.de/big/fortiMgr_78111944ad43fe045687d8d6dc92256e.json"
62-
//"-c"
61+
"-ihttps://fwodemodata.cactus.de/big/XXX.json",
62+
// "-c"
6363
// 41 - lab fortimanager
6464
//"-i/home/tim/Downloads/mgm_id_9_config_native.json.anon"
6565
//"-i/home/tim/tmp/configs/mgm_id_56_config_native.json.anon", // all rules, all objs local mgm_id 4

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
77

88
- Import firewall configurations (rules) of various brands (Check Point, Fortinet, Cisco, Juniper, Barracuda, Netscreen)
9+
- Request changes on your firewall configuration using the new workflow module in v6.0
910
- Display reports on firewall configuration and changes
1011
- Regularly re-certify firewall rules to clean up your rulebase
1112
- Use the built-in GraphQL API to integrate with your existing infrastructure (Directory Service, ITSM, IPAM, ...)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# how to change the default ip range for docker
2+
3+
in case of a conflict (if you use the 172.16.0.0/16 range internally), you can use the following instructions taken from https://support.hyperglance.com/knowledge/changing-the-default-docker-subnet to change the network.
4+
5+
1. create/modify file /etc/docker/daemon.json to contain new ip address:
6+
7+
```json
8+
{
9+
"log-driver": "journald",
10+
"log-opts": {
11+
"tag": "{{.Name}}"
12+
},
13+
"bip": "172.26.0.1/16"
14+
}
15+
```
16+
17+
2. restart docker service:
18+
19+
```sudo systemctl restart docker```
20+
21+
3. restart docker container:
22+
23+
```sudo docker restart fworch-api```

documentation/revision-history.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ adding report template format fk and permissions
219219

220220
### 5.7.1 - 13.10.2022
221221
- new workflow module for requesting changes
222-
- new Cisco FireFlow import module
222+
- new Cisco FirePower import module
223223
- support for new operating system debian testing
224224
- bugfix enrichable objects in CP NAT rules
225225
- bugfix filter line brackets
@@ -246,3 +246,6 @@ adding report template format fk and permissions
246246

247247
### 6.0 - 02.11.2022
248248
- clean-up work and new major version
249+
250+
### 6.0.1 - 10.11.2022
251+
- bugfix release with small issues (userconfig re-login, ldif upgrade bug, debian testing support)

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: "6.0"
2+
product_version: "6.0.1"
33

44
ansible_python_interpreter: /usr/bin/python3
55
ansible_ssh_common_args: '-o StrictHostKeyChecking=no'

inventory/group_vars/apiserver.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ api_hasura_admin_test_password: "not4production"
88
api_user_email: "{{ api_user }}@{{ api_ip_address }}"
99
api_home: "{{ fworch_home }}/api"
1010
api_hasura_cli_bin: "{{ fworch_home }}/api/bin/hasura"
11-
api_hasura_version: "v2.13.0"
11+
api_hasura_version: "v2.14.0"
1212
api_project_name: api
1313
api_no_metadata: false
1414
api_rollback_is_running: false

roles/common/tasks/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,11 @@
169169
- set_fact:
170170
wsgi_package_name: "{{ wsgi_package_name }}-py3"
171171
when: |
172-
(ansible_facts['distribution']|lower == 'debian' and ansible_facts['distribution_major_version'] == 'testing')
172+
(ansible_facts['distribution_release']|lower == 'bookworm')
173173
or
174-
(ansible_facts['distribution']|lower == 'debian' and ansible_facts['distribution_major_version'] is version('10', '>'))
174+
(ansible_facts['distribution']|lower == 'debian' and ansible_facts['distribution_major_version']|int is version('10', '>'))
175175
or
176-
(ansible_facts['distribution']|lower == 'ubuntu' and ansible_facts['distribution_major_version'] is version('20', '>'))
176+
(ansible_facts['distribution']|lower == 'ubuntu' and ansible_facts['distribution_major_version']|int is version('20', '>'))
177177
178178
- name: copy iso.conf to target
179179
copy:

roles/database/files/sql/idempotent/fworch-grants.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON SEQUENCES TO group "db
55
Grant select on ALL TABLES in SCHEMA public to group dbbackupusers;
66
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO group dbbackupusers;
77

8+
GRANT SELECT ON ALL SEQUENCES IN SCHEMA request TO group "dbbackupusers";
9+
ALTER DEFAULT PRIVILEGES IN SCHEMA request GRANT SELECT ON SEQUENCES TO group "dbbackupusers";
10+
Grant select on ALL TABLES in SCHEMA request to group dbbackupusers;
11+
ALTER DEFAULT PRIVILEGES IN SCHEMA request GRANT SELECT ON TABLES TO group dbbackupusers;
12+
813
-- grants for all (implicit) sequences
914
GRANT USAGE, SELECT ON ALL SEQUENCES IN SCHEMA public TO group "secuadmins";
1015
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT USAGE, SELECT ON SEQUENCES TO group "secuadmins";

roles/database/files/sql/idempotent/fworch-rule-import.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,15 +179,19 @@ DECLARE
179179
i_prev_numeric_value BIGINT;
180180
i_next_numeric_value BIGINT;
181181
i_numeric_value BIGINT;
182+
v_rulebase_name VARCHAR;
182183

183184
BEGIN
184185
RAISE DEBUG 'import_rules_set_rule_num_numeric - start';
185186
SELECT INTO i_mgm_id mgm_id FROM device WHERE dev_id=i_dev_id;
187+
SELECT INTO v_rulebase_name local_rulebase_name FROM device WHERE dev_id=i_dev_id;
186188
RAISE DEBUG 'import_rules_set_rule_num_numeric - mgm_id=%, dev_id=%, before inserting', i_mgm_id, i_dev_id;
189+
i_prev_numeric_value := NULL;
187190
FOR r_rule IN -- set rule_num_numeric for changed (i.e. "new") rules
188191
SELECT rule.rule_id, rule_num_numeric FROM import_rule LEFT JOIN rule USING (rule_uid) WHERE
189192
active AND
190193
import_rule.control_id = i_current_control_id AND
194+
import_rule.rulebase_name = v_rulebase_name AND
191195
rule.dev_id=i_dev_id
192196
ORDER BY import_rule.rule_num
193197
LOOP

roles/database/files/sql/idempotent/fworch-texts.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ INSERT INTO txt VALUES ('whats_new_facts', 'German', '
148148
<li>F&uuml;r FortiManager und CheckPoint (Stand-Alone & MDS Manager) Auto Discovery</li>
149149
<li>Monitoring und Alerting Modul</li>
150150
<li>Neues Workflow module zum Beantragen von &Auml;nderungen</li>
151-
<li>Cisco FireFlow Import-Module</li>
151+
<li>Cisco FirePower Import-Module</li>
152152
<li>Unterst&uuml;tzung f&uuml;r Debian Testing Betriebssystem</li>
153153
<li>Beginn Routing/Interface Pfad Analyse (zun&auml;chst nur Fortinet)</li>
154154
<li>Neue Report-Typen: Regeln (aufgel&ouml;st), Regeln technisch (alle Gruppe werden in Bestandteile aufgel&ouml;st; Report-Export als "Single Table")</li>
@@ -163,7 +163,7 @@ INSERT INTO txt VALUES ('whats_new_facts', 'English', '
163163
<li>Device Auto Discovery functionality</li>
164164
<li>Introduction of Monitoring and Alerting module</li>
165165
<li>Introduction of workflow module for requesting changes</li>
166-
<li>New Cisco FireFlow import module </li>
166+
<li>New Cisco FirePower import module </li>
167167
<li>Support for new operating system Debian testing</li>
168168
<li>Start routing/interface (currently implemented for fortinet only) import and path analysis</li>
169169
<li>New report types: resolved rules, technical rules (report without group objects, exporting into pure rule tables without additional object tables)</li>

0 commit comments

Comments
 (0)