-
-
Notifications
You must be signed in to change notification settings - Fork 6
Automate LKE IP address whitelisting on lovelace #638
Copy link
Copy link
Closed
Labels
component: networkingAn issue relating to a host networking (e.g. DNS, WireGuard, SSH)An issue relating to a host networking (e.g. DNS, WireGuard, SSH)group: ansibleIssues and pull requests related to the Ansible setupIssues and pull requests related to the Ansible setup
Metadata
Metadata
Assignees
Labels
component: networkingAn issue relating to a host networking (e.g. DNS, WireGuard, SSH)An issue relating to a host networking (e.g. DNS, WireGuard, SSH)group: ansibleIssues and pull requests related to the Ansible setupIssues and pull requests related to the Ansible setup
Type
Projects
Status
Done
Right now the
/etc/nftablesIP whitelist on lovelace is only refreshed ondeployment. This is suboptimal, since worst case our resources may get
scheduled on a new node that is not whitelisted in the firewall.
The ideal solution would involve as little manual work as possible.
nftableshas an
includedirective: we could write a timer / cronjob to update anftablesfile containing only the LKE ip addresses, which is then includedin our Ansible-managed main
nftables.conf. We would have to take care ofsetting up an initial IP whitelist in said file to prevent errors when
provisioning a new server (where the timer has not run yet).