Soft delete port forwarding, load balancing and firewall rules#13015
Soft delete port forwarding, load balancing and firewall rules#13015bernardodemarco wants to merge 1 commit intoapache:mainfrom
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #13015 +/- ##
============================================
- Coverage 18.01% 18.01% -0.01%
- Complexity 16607 16608 +1
============================================
Files 6029 6029
Lines 542154 542177 +23
Branches 66451 66452 +1
============================================
+ Hits 97681 97683 +2
- Misses 433457 433476 +19
- Partials 11016 11018 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@blueorangutan package |
|
@bernardodemarco a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17475 |
There was a problem hiding this comment.
it is a very good idea to add removed column to firewall rules/lbs/pf rules.
for other tables, I suspect if the changes are necessary
cfe94ff to
5fc9ad7
Compare

Description
Currently, when port forwarding, load balancing and firewall rules are removed, their records are permanently deleted from the database. This makes it impossible to track and audit previously applied rules after their removal.
Therefore, this PR proposes to, instead of deleting the records associated with such network rules, only marking them as removed. To achieve that, a
removedcolumn has been added to the tables that store the rules metadata, allowing to track the exact date and time when a rule was removed.Maintaining these records is essential for auditing and traceability purposes. It ensures that historical network configurations remain accessible for cloud administrators/operators, enabling proper investigation, compliance verification and analysis of past behavior, even after rules are no longer active.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Screenshots (if appropriate):
How Has This Been Tested?
Egress rules (ER)
Records persisted in the database after the tests
Firewall (FW)
Records persisted in the database after the tests
Port forwarding (PF)
Records persisted in the database after the tests
Public Load balancing (LB)
Records persisted in the database after the tests
Internal Load balancing (LB)
Records persisted in the database after the tests