Add current IP automatically to whitelists for SSH and Kubernetes

After I removed the automatic IP addition to the firewalls for SSH and
Kubernetes I ran into a problem only a few days later. My ISP changed
my IPs and I was to stupid to realize that immediately. So, this change
reintroduces the automatic addition of my current IPs to the whitelists
for Kubernetes and SSH. Though, I adjusted the algorithm, so it will not
change every day or so, but instead really only when my ISP changes my
IPs.
This commit is contained in:
2025-10-22 19:20:01 +02:00
parent adfa2674c6
commit 0eaa5d3b08
3 changed files with 45 additions and 2 deletions

View File

@@ -26,6 +26,10 @@ terraform {
source = "hashicorp/random"
version = "3.7.1"
}
external = {
source = "hashicorp/external"
version = "2.3.4"
}
}
}
@@ -38,3 +42,5 @@ provider "hcloud" {
}
provider "random" {}
provider "external" {}