From f97d80089b673c9db178a4555e858357a7d79fd5 Mon Sep 17 00:00:00 2001 From: Sheogorath <sheogorath@shivering-isles.com> Date: Fri, 5 Nov 2021 19:59:18 +0100 Subject: [PATCH] fix(ssh): Only enable SSH on IPv4 --- terraform/ssh.tf | 4 ---- 1 file changed, 4 deletions(-) diff --git a/terraform/ssh.tf b/terraform/ssh.tf index 15ac88918..26f71c7d5 100644 --- a/terraform/ssh.tf +++ b/terraform/ssh.tf @@ -5,9 +5,6 @@ data "hcloud_ssh_keys" "all_keys" { data "http" "myipv4" { url = "https://api4.ipify.org" } -data "http" "myipv6" { - url = "https://api6.ipify.org" -} resource "hcloud_firewall" "k8s-ssh" { name = "k8s-ssh" @@ -34,7 +31,6 @@ resource "hcloud_firewall" "k8s-ssh" { port = "22" source_ips = [ "${chomp(data.http.myipv4.body)}/32", - "${replace(chomp(data.http.myipv6.body), "/^([0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+):.*/", "$1")}::/64", ] } } -- GitLab