feat: implement RFC 16 to allow emergency node access (#3557)

This commit is contained in:
miampf 2025-03-25 11:28:48 +00:00 committed by GitHub
parent c7369fa2a7
commit 3cc930fa97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 256 additions and 69 deletions

View file

@ -40,6 +40,7 @@ locals {
{ name = "recovery", port = "9999", health_check_protocol = "Tcp", path = null, priority = 104 },
{ name = "join", port = "30090", health_check_protocol = "Tcp", path = null, priority = 105 },
var.debug ? [{ name = "debugd", port = "4000", health_check_protocol = "Tcp", path = null, priority = 106 }] : [],
var.emergency_ssh ? [{ name = "ssh", port = "22", health_check_protocol = "Tcp", path = null, priority = 107 }] : [],
])
// wildcard_lb_dns_name is the DNS name of the load balancer with a wildcard for the name.
// example: given "name-1234567890.location.cloudapp.azure.com" it will return "*.location.cloudapp.azure.com"

View file

@ -47,6 +47,11 @@ output "ip_cidr_node" {
description = "CIDR block of the node network."
}
output "loadbalancer_address" {
value = azurerm_public_ip.loadbalancer_ip[0].fqdn
description = "Public loadbalancer address."
}
# Azure-specific outputs
output "attestation_url" {

View file

@ -101,3 +101,9 @@ variable "additional_tags" {
default = {}
description = "Additional tags that should be applied to created resources."
}
variable "emergency_ssh" {
type = bool
default = false
description = "Wether to expose the SSH port through the public load balancer."
}