fix(enos): Remove brackets from standalone IPv6 addresses (#5739)
This commit is contained in:
3 files changed
+13
-5
No files matched your search
@@ -9,6 +9,16 @@ Canonical reference for changes, improvements, and bugfixes for Boundary.
|
|||||||
* Adds support to parse User-Agent headers and emit them in telemetry events
|
* Adds support to parse User-Agent headers and emit them in telemetry events
|
||||||
([PR](https://github.com/hashicorp/boundary/pull/5645)).
|
([PR](https://github.com/hashicorp/boundary/pull/5645)).
|
||||||
|
|
||||||
|
### Deprecations/Changes
|
||||||
|
|
||||||
|
* Modified parsing logic for various IP/host/address fields across Boundary.
|
||||||
|
Notably, for some fields, Boundary previously required bracket-enclosed
|
||||||
|
IPv6 addresses (eg: `[::1]`). With this change, if the provided address is
|
||||||
|
just an IPv6 literal, enclosing the address in brackets is not valid.
|
||||||
|
Additionally, an input address containing an IPv6 literal may be modified by
|
||||||
|
Boundary to conform with RFC 5952.
|
||||||
|
([PR](https://github.com/hashicorp/boundary/pull/5599))
|
||||||
|
|
||||||
## 0.19.2 (2025/05/08)
|
## 0.19.2 (2025/05/08)
|
||||||
### New and Improved
|
### New and Improved
|
||||||
|
|
||||||
|
|||||||
@@ -150,9 +150,9 @@ resource "enos_remote_exec" "wait" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
output "target_private_ips" {
|
output "target_private_ips" {
|
||||||
value = var.ip_version == "4" ? aws_instance.target.*.private_ip : formatlist("[%s]", flatten(aws_instance.target.*.ipv6_addresses))
|
value = var.ip_version == "4" ? aws_instance.target.*.private_ip : flatten(aws_instance.target.*.ipv6_addresses)
|
||||||
}
|
}
|
||||||
|
|
||||||
output "target_public_ips" {
|
output "target_public_ips" {
|
||||||
value = var.ip_version == "4" ? aws_instance.target.*.public_ip : formatlist("[%s]", flatten(aws_instance.target.*.ipv6_addresses))
|
value = var.ip_version == "4" ? aws_instance.target.*.public_ip : flatten(aws_instance.target.*.ipv6_addresses)
|
||||||
}
|
}
|
||||||
@@ -171,10 +171,8 @@ func TestCliCreateAwsDynamicHostCatalogWithHostSet(t *testing.T) {
|
|||||||
require.Greater(t, len(s.Connections), 0)
|
require.Greater(t, len(s.Connections), 0)
|
||||||
var hostIp string
|
var hostIp string
|
||||||
switch c.IpVersion {
|
switch c.IpVersion {
|
||||||
case "4":
|
case "4", "6", "dual":
|
||||||
hostIp = s.Connections[0].EndpointTcpAddress
|
hostIp = s.Connections[0].EndpointTcpAddress
|
||||||
case "6", "dual":
|
|
||||||
hostIp = fmt.Sprintf("[%s]", s.Connections[0].EndpointTcpAddress)
|
|
||||||
default:
|
default:
|
||||||
require.Fail(t, "unknown ip version", c.IpVersion)
|
require.Fail(t, "unknown ip version", c.IpVersion)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user