Ryan Cragun 012cd5a42a 
	
	
	VAULT-33008: ipv6: always display RFC-5952 §4 conformant addresses ( #29228 ) ... 
			USGv6[0] requires implementing §4.1.1 of the NISTv6-r1 profile[1] for
IPv6-Only capabilities. This section requires that whenever Vault
displays IPv6 addresses (including CLI output, Web UI, logs, etc.) that
_all_ IPv6 addresses must conform to RFC-5952 §4 text representation
recommendations[2].
These recommendations do not prevent us from accepting RFC-4241[3] IPv6
addresses, however, whenever these same addresses are displayed they
must conform to the strict RFC-5952 §4 guidelines.
This PR implements handling of IPv6 address conformance in our
`vault server` routine. We handle conformance normalization for all
server, http_proxy, listener, seal, storage and telemetry
configuration where an input could contain an IPv6 address, whether
configured via an HCL file or via corresponding environment variables.
The approach I've taken is to handle conformance normalization at
parse time to ensure that all log output and subsequent usage
inside of Vaults various subsystems always reference a conformant
address, that way we don't need concern ourselves with conformance
later. This approach ought to be backwards compatible to prior loose
address configuration requirements, with the understanding that
going forward all IPv6 representation will be strict regardless of
what has been configured.
In many cases I've updated our various parser functions to call the
new `configutil.NormalizeAddr()` to apply conformance normalization.
Others required no changes because they rely on standard library URL
string output, which always displays IPv6 URLs in a conformant way.
Not included in this changes is any other vault exec mode other than
server. Client, operator commands, agent mode, proxy mode, etc. will
be included in subsequent changes if necessary.
[0]: https://www.nist.gov/publications/usgv6-profile 
[1]: https://www.nist.gov/publications/nist-ipv6-profile 
[2]: https://www.rfc-editor.org/rfc/rfc5952.html#section-4 
[3]: https://www.rfc-editor.org/rfc/rfc4291 
Signed-off-by: Ryan Cragun <me@ryan.ec > 
		
	 
		2025-01-27 14:14:28 -07:00 
	 
	
	
	
		 
	
	
		
			
			
			
			
			
			2024-10-02 13:41:55 -04:00 
		 
	
		
			
			
			
			
			
			2025-01-27 14:34:07 -05:00 
		 
	
		
			
			
			
			
			
			2025-01-02 19:42:41 +00:00 
		 
	
		
			
			
			
			
			
			2024-03-04 18:29:20 +00:00 
		 
	
		
			
			
			
			
			
			2024-04-17 11:14:14 -07:00 
		 
	
		
			
			
			
			
			
			2024-10-02 13:41:55 -04:00 
		 
	
		
			
			
			
			
			
			2025-01-27 14:14:28 -07:00 
		 
	
		
			
			
			
			
			
			2023-08-10 18:14:03 -07:00 
		 
	
		
			
			
			
			
			
			2024-03-05 13:27:26 +00:00 
		 
	
		
			
			
			
			
			
			2024-03-04 18:29:20 +00:00 
		 
	
		
			
			
			
			
			
			2024-01-03 15:06:41 -05:00 
		 
	
		
			
			
			
			
			
			2024-01-03 15:06:41 -05:00 
		 
	
		
			
			
			
			
			
			2024-06-17 17:10:00 +00:00 
		 
	
		
			
			
			
			
			
			2024-06-17 17:10:00 +00:00 
		 
	
		
			
			
			
			
			
			2023-08-10 18:14:03 -07:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2024-04-18 17:43:07 +00:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2024-10-24 10:47:17 -05:00 
		 
	
		
			
			
			
			
			
			2024-10-24 10:47:17 -05:00 
		 
	
		
			
			
			
			
			
			2024-02-13 14:07:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2024-02-13 14:07:02 -08:00 
		 
	
		
			
			
			
			
			
			2024-10-24 10:47:17 -05:00 
		 
	
		
			
			
			
			
			
			2024-10-24 10:47:17 -05:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-08-10 18:14:03 -07:00 
		 
	
		
			
			
			
			
			
			2023-08-10 18:14:03 -07:00 
		 
	
		
			
			
			
			
			
			2023-08-10 18:14:03 -07:00 
		 
	
		
			
			
			
			
			
			2023-08-10 18:14:03 -07:00 
		 
	
		
			
			
			
			
			
			2024-05-20 17:49:47 +00:00 
		 
	
		
			
			
			
			
			
			2024-03-04 18:29:20 +00:00 
		 
	
		
			
			
			
			
			
			2024-02-13 14:07:02 -08:00 
		 
	
		
			
			
			
			
			
			2024-10-04 11:29:03 -07:00 
		 
	
		
			
			
			
			
			
			2024-10-04 13:48:16 -04:00 
		 
	
		
			
			
			
			
			
			2024-11-19 11:13:10 +01:00 
		 
	
		
			
			
			
			
			
			2024-06-18 15:17:40 +00:00 
		 
	
		
			
			
			
			
			
			2024-06-18 15:17:40 +00:00 
		 
	
		
			
			
			
			
			
			2024-06-18 15:17:40 +00:00 
		 
	
		
			
			
			
			
			
			2023-08-10 18:14:03 -07:00 
		 
	
		
			
			
			
			
			
			2024-06-18 15:17:40 +00:00 
		 
	
		
			
			
			
			
			
			2023-08-10 18:14:03 -07:00 
		 
	
		
			
			
			
			
			
			2025-01-09 08:20:09 -08:00 
		 
	
		
			
			
			
			
			
			2025-01-27 14:34:07 -05:00 
		 
	
		
			
			
			
			
			
			2024-05-27 16:28:25 -04:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2025-01-22 19:30:03 +00:00 
		 
	
		
			
			
			
			
			
			2023-10-09 12:53:13 -05:00 
		 
	
		
			
			
			
			
			
			2024-11-19 11:13:10 +01:00 
		 
	
		
			
			
			
			
			
			2024-04-17 11:14:14 -07:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-08-10 18:14:03 -07:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2024-01-18 20:00:00 +00:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-14 11:28:58 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-14 11:28:58 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-08-10 18:14:03 -07:00 
		 
	
		
			
			
			
			
			
			2023-12-11 08:08:48 -08:00 
		 
	
		
			
			
			
			
			
			2024-02-13 14:07:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-08-10 18:14:03 -07:00 
		 
	
		
			
			
			
			
			
			2024-10-04 11:14:21 -07:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2025-01-27 14:34:07 -05:00 
		 
	
		
			
			
			
			
			
			2024-06-18 15:17:40 +00:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2024-04-17 11:14:14 -07:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2024-02-13 14:07:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2025-01-27 14:14:28 -07:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2024-02-13 14:07:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2024-08-14 09:31:02 -04:00 
		 
	
		
			
			
			
			
			
			2024-01-26 13:00:38 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2024-02-13 14:07:02 -08:00 
		 
	
		
			
			
			
			
			
			2024-02-13 14:07:02 -08:00 
		 
	
		
			
			
			
			
			
			2024-02-13 14:07:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-08-10 18:14:03 -07:00 
		 
	
		
			
			
			
			
			
			2023-08-10 18:14:03 -07:00 
		 
	
		
			
			
			
			
			
			2023-08-10 18:14:03 -07:00 
		 
	
		
			
			
			
			
			
			2024-02-13 14:07:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-08-10 18:14:03 -07:00 
		 
	
		
			
			
			
			
			
			2024-07-22 16:53:02 -04:00 
		 
	
		
			
			
			
			
			
			2023-08-10 18:14:03 -07:00 
		 
	
		
			
			
			
			
			
			2024-02-13 14:07:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-07 12:36:17 +00:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-07 12:36:17 +00:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2025-01-09 08:20:09 -08:00 
		 
	
		
			
			
			
			
			
			2024-01-17 15:46:27 +00:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2024-01-17 15:46:27 +00:00 
		 
	
		
			
			
			
			
			
			2024-01-17 15:46:27 +00:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2024-01-16 16:36:07 +00:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-08-10 18:14:03 -07:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2024-06-17 17:10:00 +00:00 
		 
	
		
			
			
			
			
			
			2024-06-17 17:10:00 +00:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2024-08-09 11:48:21 -04:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2024-10-24 10:47:17 -05:00 
		 
	
		
			
			
			
			
			
			2024-10-24 10:47:17 -05:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2024-10-24 10:47:17 -05:00 
		 
	
		
			
			
			
			
			
			2024-10-24 10:47:17 -05:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-08-10 18:14:03 -07:00 
		 
	
		
			
			
			
			
			
			2023-08-10 18:14:03 -07:00 
		 
	
		
			
			
			
			
			
			2024-03-27 13:57:46 -04:00 
		 
	
		
			
			
			
			
			
			2024-07-03 13:31:56 -04:00 
		 
	
		
			
			
			
			
			
			2025-01-27 14:14:28 -07:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2024-11-19 11:13:10 +01:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-13 11:15:21 -05:00 
		 
	
		
			
			
			
			
			
			2023-12-13 11:15:21 -05:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2024-12-05 15:39:16 -06:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2024-08-21 14:25:07 -04:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2024-06-17 17:10:00 +00:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2023-12-04 11:05:02 -08:00 
		 
	
		
			
			
			
			
			
			2024-08-09 11:48:21 -04:00