proxy_protocol listener with deny_unauthorized dies on first connection #11047
Labels
bug
Used to indicate a potential bug
core/config
core
Issues and Pull-Requests specific to Vault Core
Describe the bug
When you have a secondary listener configured with proxy_protocol, with
proxy_protocol_behavior = "deny_unauthorized"
, the listener dies silently on first connection.To Reproduce
Start vault using
vault server -config=vault-test.hcl -log-level=debug
, where the configuration file is given below. This has a regular listener on port 1111 and a proxy_protocol listener on port 2222.Check both ports are listening:
Connect to 127.0.0.1 port 2222, then disconnect.
Check socket status again (note no listener on 2222):
Confirm that no further connections are accepted:
Expected behavior
-log-level=debug
)Environment:
Vault v1.6.3 (b540be4b7ec48d0dd7512c8d8df9399d6bf84d76)
4.15.0-128-generic
Vault server configuration file(s):
Additional context
When running with the problematic config under strace, it shows the listening socket (fd 9) accepting a connection (fd 10), and then the listening socket (9) being closed.
Workaround
The problem goes away if you set
The text was updated successfully, but these errors were encountered: