Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2653 commits
Select commit Hold shift + click to select a range
7c193fa
Merge pull request #3991 from CactuseSecurity/main
tpurschke Nov 27, 2025
d7598ac
NOSONAR hopefull works now
Imat00 Nov 27, 2025
876e696
Merge branch 'fix/importer-rework-Sonar-Cube-Warnings' of https://git…
Imat00 Nov 27, 2025
e4b9d3e
Merge branch 'importer-rework' into fix/importer-rework-Sonar-Cube-Wa…
Imat00 Nov 27, 2025
ef054c4
Merge branch 'importer-rework' into bug/importer-rework-Autodiscovery…
Imat00 Nov 27, 2025
532487c
update NOSONAR
Imat00 Nov 27, 2025
fd50a9f
Merge branch 'fix/importer-rework-Sonar-Cube-Warnings' of https://git…
Imat00 Nov 27, 2025
39d2ceb
fixed warnings
Robin-Smets Nov 27, 2025
7b4f979
Merge branch 'importer-rework' into rsmets-importer-rework
Robin-Smets Nov 27, 2025
e76801d
Merge branch 'importer-rework' into Fix-GetSectionParent
Elutrixx Nov 27, 2025
1dec734
Merge branch 'importer-rework' into Warning-fix
Elutrixx Nov 27, 2025
ebba905
Merge pull request #3983 from Elutrixx/Warning-fix
Elutrixx Nov 27, 2025
728226c
Merge branch 'importer-rework' into bug/importer-rework-Autodiscovery…
Imat00 Nov 27, 2025
c4a8f3c
Merge branch 'importer-rework' into fix/importer-rework-Sonar-Cube-Wa…
Imat00 Nov 27, 2025
241f742
refactor: sonarqube complexities
Y4nnikH Nov 27, 2025
442efeb
refactor: management model to use snake case
Y4nnikH Nov 27, 2025
74a1837
feat: some sonarcube fixes
ErikPre Nov 27, 2025
1b44015
refactor: sonarqube issues
Y4nnikH Nov 27, 2025
234f0b9
Merge branch 'chore/type-safety' of https://github.com/Laennart/firew…
Y4nnikH Nov 27, 2025
d784735
Merge pull request #3992 from Imat00/fix/importer-rework-Sonar-Cube-W…
tpurschke Nov 27, 2025
8439720
refactor: sonarqube issues
Y4nnikH Nov 27, 2025
1de64bc
fix: model dump for debug
ErikPre Nov 27, 2025
62fbe47
refactor: sonarqube issues
Y4nnikH Nov 27, 2025
097760c
refactor: sonarqube issues
Y4nnikH Nov 27, 2025
47d3355
Merge branch 'chore/type-safety' of https://github.com/Laennart/firew…
Y4nnikH Nov 27, 2025
1ef694a
fix: import
ErikPre Nov 27, 2025
22f5ef3
Merge branch 'chore/type-safety' of https://github.com/Laennart/firew…
ErikPre Nov 27, 2025
020a2a2
Merge remote-tracking branch 'cactus/importer-rework' into Fix-GetSec…
Elutrixx Nov 27, 2025
6616d43
Merge pull request #3971 from Elutrixx/Fix-GetSectionParent
tpurschke Nov 27, 2025
89d201a
Merge branch 'importer-rework' into bug/importer-rework-Autodiscovery…
Imat00 Nov 28, 2025
8f2cc29
Merge pull request #3987 from Imat00/bug/importer-rework-Autodiscover…
tpurschke Nov 28, 2025
98fa470
Merge branch 'develop' of https://github.com/CactuseSecurity/firewall…
tpurschke Nov 28, 2025
f7e3e90
Merge branch 'develop' of https://github.com/CactuseSecurity/firewall…
tpurschke Nov 28, 2025
4f41fd8
bump HtmlAgilityPack
tpurschke Nov 28, 2025
e93acc7
add else branch after Session check - for Forti
Imat00 Nov 28, 2025
2d39eec
Merge branch 'importer-rework' into fix/importer-rework-Autodiscovery…
Imat00 Nov 28, 2025
aec5d4b
Removed unnecessary check for null
Imat00 Nov 28, 2025
011db14
finaly NOSONAR - SupressMessage
Imat00 Nov 28, 2025
42888eb
Merge branch 'importer-rework' into fix/importer-rework-Sonar-Cube-Wa…
Imat00 Nov 28, 2025
65be2cc
Merge branch 'v9_release' into rsmets-importer-rework
Robin-Smets Nov 28, 2025
9408059
test: fix tests
Y4nnikH Nov 28, 2025
2581499
feat: Interface for importer modules
ErikPre Nov 28, 2025
6ef471e
fix: sonarcube issues
ErikPre Nov 28, 2025
3c522b4
fix: update FWOLogger __new__ method parameter for type safety
ErikPre Nov 28, 2025
f78f3d3
Merge branch 'chore/type-safety' of https://github.com/Laennart/firew…
ErikPre Nov 28, 2025
ce829aa
Merge branch 'importer-rework' into rsmets-importer-rework
Robin-Smets Nov 28, 2025
0c69515
Merge pull request #3998 from Imat00/fix/importer-rework-Sonar-Cube-W…
tpurschke Nov 28, 2025
546876f
Merge branch 'importer-rework' into merge/rework-dev-to-rework
tpurschke Nov 28, 2025
d21e99c
text in both languages
Imat00 Nov 28, 2025
1d8ba0b
Merge branch 'importer-rework' into fix/importer-rework-Autodiscovery…
Imat00 Nov 28, 2025
038da89
Remove unnecessary check for null
Imat00 Nov 28, 2025
c0a4aa0
fix build
Robin-Smets Nov 28, 2025
88fe92c
Merge branch 'importer-rework' into rsmets-importer-rework
Robin-Smets Nov 28, 2025
59f8467
sonarCloud stuck
Imat00 Nov 28, 2025
251f8d1
test: fix test
Y4nnikH Nov 28, 2025
1c0f63d
fix: import loop
ErikPre Nov 28, 2025
67a38f1
Merge pull request #3993 from Robin-Smets/rsmets-importer-rework
tpurschke Nov 28, 2025
115f580
fix: non error, error
ErikPre Nov 28, 2025
8a06365
fix: non error, error and more pretty
ErikPre Nov 28, 2025
cac62fe
fix: debug logging for unparsable rulebase
ErikPre Nov 28, 2025
0178e25
Merge branch 'importer-rework' into merge/rework-dev-to-rework
tpurschke Nov 28, 2025
02fb4c0
Merge branch 'importer-rework' into fix/importer-rework-Autodiscovery…
Imat00 Nov 28, 2025
0d0f22c
re-adding ipnetwork2
tpurschke Nov 28, 2025
47a7c16
Merge pull request #3997 from Imat00/fix/importer-rework-Autodiscover…
tpurschke Nov 28, 2025
fd96169
Merge branch 'importer-rework' into merge/rework-dev-to-rework
tpurschke Nov 28, 2025
f26f8ca
Merge branch 'importer-rework' into feat-purge-warnings
tpurschke Nov 28, 2025
3d31048
fixing sonar null refs
tpurschke Nov 28, 2025
a15e35e
2nd sonar fix attempt
tpurschke Nov 28, 2025
86b1076
fix displayed owner
abarz722 Nov 30, 2025
c93c77b
Merge branch 'importer-rework' into recovered-work
abarz722 Nov 30, 2025
b70bf1f
Merge branch 'importer-rework' of https://github.com/CactuseSecurity/…
abarz722 Nov 30, 2025
feec227
Merge pull request #3867 from tpurschke/feat-purge-warnings
tpurschke Dec 1, 2025
b26afe2
Merge branch 'importer-rework' of https://github.com/CactuseSecurity/…
tpurschke Dec 1, 2025
426fb8e
Merge branch 'develop' of https://github.com/CactuseSecurity/firewall…
tpurschke Dec 1, 2025
6df3ee2
fixing certi selectedOwner
tpurschke Dec 1, 2025
990d007
Merge branch 'develop' of https://github.com/CactuseSecurity/firewall…
tpurschke Dec 1, 2025
99b3917
Merge pull request #3996 from tpurschke/merge/rework-dev-to-rework
tpurschke Dec 1, 2025
be30fb9
Merge branch 'importer-rework' into recovered-work
abarz722 Dec 1, 2025
c25e97c
refactor: remove unused, duplicate function
Y4nnikH Dec 2, 2025
4cfb34e
refactor: restructure native import modules and remove non-functionin…
Y4nnikH Dec 2, 2025
116f218
Merge branch 'develop' of https://github.com/CactuseSecurity/firewall…
tpurschke Dec 2, 2025
5e97715
Merge branch 'importer-rework' of https://github.com/CactuseSecurity/…
tpurschke Dec 2, 2025
350637c
typo
tpurschke Dec 2, 2025
c76ef10
fix: asa import
Y4nnikH Dec 2, 2025
9c1d183
fix: sonar cube issues
ErikPre Dec 2, 2025
fa69d45
Merge branch 'chore/type-safety' of https://github.com/Laennart/firew…
ErikPre Dec 2, 2025
35c164f
refactor: sonarqube and other issues
Y4nnikH Dec 2, 2025
ed4c97c
Merge remote-tracking branch 'Laennart/chore/type-safety' into chore/…
Y4nnikH Dec 2, 2025
a00c3cc
fix: more sonarcube
ErikPre Dec 2, 2025
1a56dbe
Merge branch 'chore/type-safety' of https://github.com/Laennart/firew…
ErikPre Dec 2, 2025
98755ba
refactor: remove unused function parameter
Y4nnikH Dec 2, 2025
743379f
feat: change waiting log to info
ErikPre Dec 2, 2025
10092dc
Merge branch 'chore/type-safety' of https://github.com/Laennart/firew…
ErikPre Dec 2, 2025
6fd8ce6
add constant HtmlArrowExpanded/Collapsed
Imat00 Dec 2, 2025
feef4ce
feat: sonar cube complexity in main loop
ErikPre Dec 2, 2025
bd25cc0
fix: sonar cube
ErikPre Dec 2, 2025
10e1c7a
fix: last sonar cube issues
ErikPre Dec 2, 2025
9867b1d
Merge pull request #4012 from tpurschke/merge/rework-dev-to-rework
tpurschke Dec 2, 2025
5dd25a5
fix: incorrect error log
Y4nnikH Dec 2, 2025
520b52c
1st throw
tpurschke Dec 3, 2025
8de4ebe
Merge remote-tracking branch 'CactuseSecurity/importer-rework' into c…
Y4nnikH Dec 3, 2025
d5bfd8f
update variables and moved access htmlIcons
Imat00 Dec 3, 2025
4382fe4
Merge branch 'importer-rework' into feat/importer-rework-rulebases-co…
Imat00 Dec 3, 2025
1ae829c
Merge pull request #3902 from Laennart/chore/type-safety
tpurschke Dec 3, 2025
d6f6a65
Merge branch 'importer-rework' into fix/rework/stop-api-when-upgrading
tpurschke Dec 3, 2025
a1ca9a4
adapting systemd service for stopping API during upgrade
tpurschke Dec 3, 2025
c38e1ce
Merge branch 'importer-rework' into feat/importer-rework-rulebases-co…
Imat00 Dec 3, 2025
41b140d
delete dupliacte constants
Imat00 Dec 3, 2025
c497d36
Merge branch 'feat/importer-rework-rulebases-collapsible' of https://…
Imat00 Dec 3, 2025
97e5347
start hasura service after upgrade
tpurschke Dec 3, 2025
d7814a0
feat: handle log lock cleanup
ErikPre Dec 3, 2025
4c626b7
settings: remove sonarcube org
ErikPre Dec 3, 2025
eac5bca
feat: remove all sonarcube issues
ErikPre Dec 3, 2025
6257f96
fix ReportRules.cs and ReportChanges.cs duplicate lines
Imat00 Dec 3, 2025
3f75cd9
fix: sonarcube
ErikPre Dec 3, 2025
1bad712
docs
tpurschke Dec 3, 2025
298483d
Merge branch 'develop' of https://github.com/CactuseSecurity/firewall…
tpurschke Dec 3, 2025
c9fb535
Merge pull request #4015 from Imat00/feat/importer-rework-rulebases-c…
tpurschke Dec 3, 2025
00987f9
Merge branch 'importer-rework' into merge/rework-dev-to-rework
tpurschke Dec 3, 2025
3d76bcd
Merge branch 'importer-rework' into fix/rework/stop-api-when-upgrading
tpurschke Dec 3, 2025
10e0c71
Merge branch 'importer-rework' into fix/importer-rework-sonarqube-dub…
Imat00 Dec 4, 2025
caefe5f
fix: handle empty resolved rules in ExportToJson and add tests
Imat00 Dec 4, 2025
098e63d
Merge pull request #4016 from Imat00/fix/importer-rework-sonarqube-du…
tpurschke Dec 4, 2025
e3d6ffa
Merge branch 'importer-rework' into merge/rework-dev-to-rework
tpurschke Dec 4, 2025
f04e307
Merge branch 'importer-rework' into fix/rework/stop-api-when-upgrading
tpurschke Dec 4, 2025
1bcf5c3
make variance analysis test run, cleanup
abarz722 Dec 4, 2025
8978beb
Merge branch 'importer-rework' of https://github.com/CactuseSecurity/…
abarz722 Dec 4, 2025
b61bae6
Merge branch 'recovered-work' of https://github.com/abarz722/firewall…
abarz722 Dec 4, 2025
b620993
fix merge error
abarz722 Dec 4, 2025
f85fb80
Merge pull request #4014 from tpurschke/fix/rework/stop-api-when-upgr…
tpurschke Dec 4, 2025
d8aa6e7
fixes #3833 delete old chrome versions
tpurschke Dec 4, 2025
e4d94cf
Merge branch 'importer-rework' into fix/rework/cleanup-old-chrome-bins
tpurschke Dec 4, 2025
0a9c408
fix undef var error
tpurschke Dec 4, 2025
c109925
forti const
alf-cactus Dec 5, 2025
d223d5d
fix: All sonarqube issues except TODO
ErikPre Dec 7, 2025
be951eb
Merge pull request #4027 from tpurschke/fix/rework/cleanup-old-chrome…
tpurschke Dec 8, 2025
581cbf3
Merge branch 'importer-rework' of https://github.com/CactuseSecurity/…
abarz722 Dec 8, 2025
6447bb8
Merge branch 'importer-rework' into recovered-work
abarz722 Dec 8, 2025
36a8c19
typing
alf-cactus Dec 8, 2025
425d365
Merge remote-tracking branch 'upstream/importer-rework' into main-imp…
alf-cactus Dec 8, 2025
0517959
Merge branch 'importer-rework' into merge/rework-dev-to-rework
tpurschke Dec 8, 2025
7922a54
fixes after review
abarz722 Dec 8, 2025
7988e2a
Merge branch 'recovered-work' of https://github.com/abarz722/firewall…
abarz722 Dec 8, 2025
438f2af
refactor: Move methods and files
Laennart Dec 8, 2025
a42cba8
delete rule_metadata has NO entrie in rule
Imat00 Dec 9, 2025
0954926
Tabs to spaces done
Imat00 Dec 9, 2025
f4bb704
hotfix compl check async PostProcessRulesAsync
tpurschke Dec 9, 2025
0a8c47b
further repair variance analysis
abarz722 Dec 9, 2025
d10ad74
Merge pull request #4034 from Imat00/feat/importer-rework-enhance-upg…
tpurschke Dec 9, 2025
5a46107
Merge branch 'importer-rework' into recovered-work
abarz722 Dec 9, 2025
bdb63bd
refactor: Import state & controller
Laennart Dec 9, 2025
58174b6
refactor: Fw modules
Laennart Dec 9, 2025
c047e99
refactor: Models
Laennart Dec 9, 2025
fdbd3e0
fix: Errors
Laennart Dec 9, 2025
b2b1876
feat: added linter and pre commit hook
ErikPre Dec 9, 2025
596629c
feat: Better ruff config
ErikPre Dec 9, 2025
1afa1de
Merge branch 'chore/importer-clean-code' into feat/lint
ErikPre Dec 9, 2025
193412b
feat: initial lint
ErikPre Dec 9, 2025
ed44ba2
fix: format
ErikPre Dec 9, 2025
7a53a84
fix: unsafe fixes
ErikPre Dec 9, 2025
7310f21
fix: Partially revert unsafe fixes
Laennart Dec 9, 2025
0142c56
fixes
ErikPre Dec 9, 2025
85685eb
give up parallel checks for O(n) hashing
tpurschke Dec 10, 2025
e7e3c9a
Merge pull request #4026 from abarz722/recovered-work
tpurschke Dec 10, 2025
843b4f6
Merge branch 'importer-rework' into fix/v9/perf-tune-compliance-check
tpurschke Dec 10, 2025
6ace0bf
fix 3 compliance tests
tpurschke Dec 10, 2025
de8365f
Merge branch 'importer-rework' into merge/rework-dev-to-rework
tpurschke Dec 10, 2025
6b4b6d5
re-parallelizing
tpurschke Dec 10, 2025
ff0d8b1
forti domain and inet-service obj types
alf-cactus Dec 10, 2025
152f961
Merge remote-tracking branch 'upstream/importer-rework' into main-imp…
alf-cactus Dec 10, 2025
e0b393d
typing
alf-cactus Dec 10, 2025
33d37de
Merge pull request #4043 from alf-cactus/main-importer-rework
tpurschke Dec 10, 2025
c152c29
refactor: ruff
ErikPre Dec 10, 2025
46c5777
refactor: Delete commented out code
ErikPre Dec 10, 2025
83e563b
fix: refactor
ErikPre Dec 10, 2025
60f2181
fix: refactor
ErikPre Dec 10, 2025
e65de57
Updated Tooltips in ComplianceSettings
Elutrixx Dec 10, 2025
fbfba10
feat: Check style when opening a Pull Request
Laennart Dec 10, 2025
318de1b
chore: Bump version
Laennart Dec 10, 2025
62a19eb
fix: Ruff warning
Laennart Dec 10, 2025
6727953
Merge branch 'feat/lint' into chore/importer-clean-code
Laennart Dec 10, 2025
776ce88
Merge pull request #4045 from Elutrixx/Update-tooltips-in-complianceS…
tpurschke Dec 10, 2025
9f753b5
Merge branch 'importer-rework' into merge/rework-dev-to-rework
tpurschke Dec 10, 2025
676de7e
Merge pull request #4020 from tpurschke/merge/rework-dev-to-rework
tpurschke Dec 11, 2025
458d568
fix(middleware): match nullability of fields to db
Y4nnikH Dec 14, 2025
244bfdd
only one violation per zone pair
tpurschke Dec 15, 2025
c7f2818
removing #nullable enable
tpurschke Dec 15, 2025
75ca116
Merge branch 'importer-rework' of https://github.com/CactuseSecurity/…
tpurschke Dec 15, 2025
ef00587
test: fix export test
Y4nnikH Dec 15, 2025
793f837
Merge pull request #4052 from Y4nnikH/fix/cs-data-models
Y4nnikH Dec 15, 2025
ac91ef2
fix ui
Robin-Smets Dec 15, 2025
ef7b8a4
completed code documentation
Robin-Smets Dec 16, 2025
f4a014c
Merge branch 'importer-rework' into fix/compliance-performance-issue
Robin-Smets Dec 16, 2025
4b5ac1e
feat: Add Jetbrains ruff config
Laennart Dec 16, 2025
0806ca6
docs: added linter docs
ErikPre Dec 16, 2025
92500c2
Merge pull request #4057 from Robin-Smets/fix/compliance-performance-…
Robin-Smets Dec 16, 2025
6b0ea54
Merge branch 'develop' of https://github.com/CactuseSecurity/firewall…
tpurschke Dec 16, 2025
0d2b20b
add comments to parallel processors
Robin-Smets Dec 17, 2025
9cf5fdf
feat: Add hook template
Laennart Dec 17, 2025
988655c
fix: Format
Laennart Dec 17, 2025
fc98808
Merge remote-tracking branch 'origin/chore/importer-clean-code' into …
Laennart Dec 17, 2025
22f7254
Merge remote-tracking branch 'origin/importer-rework' into chore/impo…
Laennart Dec 17, 2025
d0f0713
fix: Sonarqube
Laennart Dec 17, 2025
05d2e18
fix: File path
Laennart Dec 17, 2025
c5f1a60
chore: Pin action sha
Laennart Dec 17, 2025
c70c4e7
refactor: Remove duplicate code
Laennart Dec 17, 2025
91be888
fix: Check format in workflow
Laennart Dec 17, 2025
ebcccf3
fix: Review comments
Laennart Dec 17, 2025
72b350b
refactor: Rename workflow name and jobs
Laennart Dec 17, 2025
5e051e1
Merge branch 'feat/lint' into chore/importer-clean-code
Laennart Dec 17, 2025
00fb151
wip: Fix tests
Laennart Dec 17, 2025
e44fb85
wip: Fix tests
Laennart Dec 17, 2025
0d52c2e
wip: Fix tests
Laennart Dec 17, 2025
858b221
feat: pyproject toml
ErikPre Dec 17, 2025
20b7792
feat: change pre-commit
ErikPre Dec 17, 2025
58f350b
test
ErikPre Dec 17, 2025
e863f8c
fix: pyproject
ErikPre Dec 17, 2025
1524cee
test
ErikPre Dec 17, 2025
f66470d
Merge branch 'chore/importer-clean-code' of https://github.com/Laenna…
ErikPre Dec 17, 2025
6806807
fix: pyproject
ErikPre Dec 17, 2025
8f28737
fix: pyproject
ErikPre Dec 17, 2025
d03a936
fix: pyproject
ErikPre Dec 17, 2025
650cf86
fix
ErikPre Dec 17, 2025
7c866d8
test: fix tests
Y4nnikH Dec 17, 2025
b901d69
fix: project
ErikPre Dec 17, 2025
38cd2f2
Merge branch 'chore/importer-clean-code' of https://github.com/Laenna…
ErikPre Dec 17, 2025
c5aae86
refactor: line length
Y4nnikH Dec 17, 2025
5ba5e96
Merge branch 'chore/importer-clean-code' of https://github.com/Laenna…
Y4nnikH Dec 17, 2025
2cf970e
fix
ErikPre Dec 17, 2025
2131aaf
Merge branch 'chore/importer-clean-code' of https://github.com/Laenna…
ErikPre Dec 17, 2025
542b99e
refactor: Github action
Laennart Dec 17, 2025
0548a96
fix: Action
Laennart Dec 17, 2025
6926fa3
fix: requirements
ErikPre Dec 17, 2025
a6bf1b3
Merge pull request #4060 from Laennart/chore/importer-clean-code
tpurschke Dec 17, 2025
2bc15ea
Merge branch 'importer-rework' into merge/v8-to-v9
tpurschke Dec 18, 2025
feeb634
Merge branch 'develop' of https://github.com/CactuseSecurity/firewall…
tpurschke Dec 18, 2025
38a5601
Merge pull request #4059 from tpurschke/merge/v8-to-v9
tpurschke Dec 18, 2025
12e48b9
Merge branch 'importer-rework' into rsmets-importer-rework
Robin-Smets Dec 18, 2025
9374c91
log compliance check execution time
Robin-Smets Dec 18, 2025
d98802a
sonarqube
Robin-Smets Dec 18, 2025
230531c
removed deleted parameters from xml comment
Robin-Smets Dec 18, 2025
b9b0551
sonarqube
Robin-Smets Dec 18, 2025
93d81e9
fix(importer): update object stats correctly
Y4nnikH Dec 18, 2025
b81bb7e
Merge pull request #4067 from Robin-Smets/rsmets-importer-rework
tpurschke Dec 18, 2025
e57255d
Merge remote-tracking branch 'CactuseSecurity/importer-rework' into f…
Y4nnikH Dec 18, 2025
3b57538
Merge pull request #4068 from Y4nnikH/fix/import-stats
tpurschke Dec 19, 2025
1c98cdc
fix(importer): handle global objects in rule refs correctly
Y4nnikH Dec 19, 2025
087d0f2
refactor(importer): rename vars
Y4nnikH Dec 19, 2025
3d7fd81
refactor(importer): merge redundant code
Y4nnikH Dec 19, 2025
c527e22
Merge pull request #4078 from Y4nnikH/fix/import-global-object-refs
tpurschke Dec 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = true

[*.razor]
indent_style = space
indent_size = 4
6 changes: 6 additions & 0 deletions .githook-templates/pre-commit.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

RUFF_PATH=.venv/bin/ruff

$RUFF_PATH check --fix
$RUFF_PATH format
37 changes: 29 additions & 8 deletions .github/workflows/test-install.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
name: do test install
name: Checks

on:
push:
branches:
- main
- develop
- importer-rework
paths-ignore:
- 'documentation/**'
- 'design/**'
# paths-ignore:
# - 'documentation/**'
# - 'design/**'
# do not ignore any paths as this breaks the github actions workflow

pull_request:
paths-ignore:
Expand All @@ -24,11 +25,10 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
# os: [ubuntu-latest, ubuntu-22.04]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- uses: actions/setup-dotnet@v4
- uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.x'

Expand All @@ -38,9 +38,30 @@ jobs:
ansible-playbook -e force_install=true site.yml -K

- name: Running in GitHub actions requires testing puppeteer pdf creation separately
if: ${{ env.RUNNING_ON_GITHUB_ACTIONS }} == 'true'
if: ${{ env.RUNNING_ON_GITHUB_ACTIONS == 'true' }}
run: |
cd /home/runner/work/firewall-orchestrator/firewall-orchestrator/roles/tests-unit/files/FWO.Test
dotnet restore
dotnet build
dotnet test --filter "Name=HtmlToPdfTest"


python-code-check:
name: Python Code Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- uses: actions/setup-python@v6
with:
python-version: '3.11'

- run: pip install -r roles/importer/files/importer/requirements.txt

- uses: astral-sh/ruff-action@57714a7c8a2e59f32539362ba31877a1957dded1

- run: pyright

- run: ruff check

- run: ruff format --exit-non-zero-on-format
101 changes: 100 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,108 @@
.vs/
.idea/
.vscode/launch.json
.vscode/settings.local.json
.test_data/
roles/importer/venv/
ansible_venv/
*.todo
**/.venv/
**/__pycache__/
**/*.pyc
.vscode/launch.json

# Created by https://www.toptal.com/developers/gitignore/api/jetbrains+iml
# Edit at https://www.toptal.com/developers/gitignore?templates=jetbrains+iml

### JetBrains+iml ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# AWS User-specific
.idea/**/aws.xml

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# SonarLint plugin
.idea/sonarlint/

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

### JetBrains+iml Patch ###
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023

*.iml
modules.xml
.idea/misc.xml
*.ipr

# End of https://www.toptal.com/developers/gitignore/api/jetbrains+iml

.idea/copilot*
.idea/vcs.xml
.idea/inspectionProfiles
.idea/.gitignore
8 changes: 8 additions & 0 deletions .idea/ruff.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.14.8
hooks:
# Run the linter.
- id: ruff-check
args: [ --fix ]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.407
hooks:
- id: pyright
6 changes: 6 additions & 0 deletions .sonarlint/FWO.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sonarCloudOrganization": "cactusesecurity",
"projectKey": "CactuseSecurity_firewall-orchestrator",
"region": "EU",
"sonar.scanner.scanAll": false
}
Loading
Loading