Skip to content

Add keystone proxy protocol client IP test#1328

Open
xtrusia wants to merge 1 commit into
openstack-charmers:masterfrom
xtrusia:proxyv2
Open

Add keystone proxy protocol client IP test#1328
xtrusia wants to merge 1 commit into
openstack-charmers:masterfrom
xtrusia:proxyv2

Conversation

@xtrusia

@xtrusia xtrusia commented Oct 1, 2025

Copy link
Copy Markdown
Contributor

Add KeystoneProxyProtocolTest for the haproxy-enable-proxy-protocol option from charm-keystone (review 986591, LP#2107999).

The test toggles the option and checks the real client IP is preserved in the apache access log.
Without TLS the keystone WSGI vhost logs it as %h in keystone_access.log; with TLS the https frontend terminates the PROXY connection and proxies over localhost, so the real client IP lands in other_vhosts_access.log instead. Checked on a noble/caracal keystone both with and without TLS.

@xtrusia xtrusia force-pushed the proxyv2 branch 2 times, most recently from 3a6ae89 to 9cf2124 Compare October 1, 2025 03:33
@xtrusia xtrusia changed the title Add KeystoneProxyV2Test class for haproxy proxyv2 testing Add keystone proxy protocol client IP test Jun 4, 2026
Enable haproxy-enable-proxy-protocol and check the real client IP is preserved in the keystone apache access log instead of the haproxy backend address.

Signed-off-by: Seyeong Kim <seyeong.kim@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant