metal-stack / firewall-controller

A kubernetes controller running on bare-metal firewalls, creating nftables rules, configures suricata, collects network metrics
MIT License
47 stars 4 forks source link

Self reconcile #59

Closed mwindower closed 3 years ago

mwindower commented 3 years ago

needs adoption in gepm, cloud-api and cloudctl

majst01 commented 3 years ago

Two questions comes in mind:

Idea for the watchdog:

Maybe this is to difficult and error-prone

mwindower commented 3 years ago
majst01 commented 3 years ago

No second concern is howto handle a situation if the update fails for whatever reason, how do we come back to the previous known stable state.

mwindower commented 3 years ago

For normal errors like download / checksum errors, the controller does a retry already.

If os.Rename fails from the temp location of the new binary to the real location fails, we should have a backup of the old version? - this is not yet covered.

majst01 commented 3 years ago

Or if we specify a broken version, all firewalls will be borked, this is my concern

mwindower commented 3 years ago

This is not an auto-update to the latest version. We would definitely update firewall-controller versions in a controlled manner... meaning setting it with cloudctl cluster update

majst01 commented 3 years ago

OK, lets go for it, agreed