Skip to content

Fix client IP logging in Horizon VirtualHost#612

Merged
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
fmount:customlog
Jun 30, 2026
Merged

Fix client IP logging in Horizon VirtualHost#612
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
fmount:customlog

Conversation

@fmount

@fmount fmount commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

The VirtualHost CustomLog directive was overriding the server-level dual-log setup, causing all requests to be logged with the OpenShift router IP instead of the real client IP from X-Forwarded-For.

Add SetEnvIf and dual CustomLog lines inside the VirtualHost block to match the nova-operator pattern.

Jira: OSPRH-32110

The VirtualHost CustomLog directive was using a custom format that
only logged forwarded requests, missing direct requests entirely.

Replace with SetEnvIf and dual CustomLog lines to match the
nova-operator pattern, logging both direct and forwarded requests
with the correct client IP.

Closes: OSPRH-32110

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Francesco Pantano <fpantano@redhat.com>
@openshift-ci openshift-ci Bot requested review from abays and stuggi June 29, 2026 21:32

@stuggi stuggi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci

openshift-ci Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fmount, stuggi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the lgtm label Jun 30, 2026
@openshift-merge-bot openshift-merge-bot Bot merged commit 9c20eb3 into openstack-k8s-operators:main Jun 30, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants