AOx0 / adam

Rust eBPF-based toolbox
0 stars 0 forks source link

Add POST /firewall/update/:id #30

Open AOx0 opened 1 month ago

AOx0 commented 1 month ago

Allows to overwrite the value stored for the rule with id :id. Ideally this allows to update fields of the struct, but can be also used to completely replace the existing rule by another one.

AOx0 commented 1 month ago

This may be blocked by #35 since it requires special handling when updating a rule by something that does not concern to the same OSI Layer.

AOx0 commented 1 month ago

Other thing to consider is that IDs will no longer be a direct index into the array. Hence rules may need to be compared by its fields, which is not great