Skip to content

Comments

Add External IP Field to Hosts#881

Merged
jabbate19 merged 2 commits intomainfrom
external_ip
Mar 25, 2025
Merged

Add External IP Field to Hosts#881
jabbate19 merged 2 commits intomainfrom
external_ip

Conversation

@jabbate19
Copy link
Collaborator

What type of PR is this?

/kind feature
/kind api-change

What this PR does / why we need it:

Folks displayed an interest in having the external IP of the host available. This change will log the incoming IP at an externalIP in the host.

If X-Forwarded-For is set, the first IP in the list will be used. Otherwise, the remote IP from the connection is used.

First Example using Direct Connection (VPN IP)

Screenshot 2025-03-22 at 10 47 18 PM

Second Example (GCP) using Header (VPN IP)

Screenshot 2025-03-22 at 10 51 28 PM

Which issue(s) this PR fixes:

Fixes #879

@jabbate19 jabbate19 added feature New feature or request api-change labels Mar 23, 2025
@jabbate19 jabbate19 requested review from KCarretto and hulto March 23, 2025 02:55
Copy link
Collaborator

@hulto hulto left a comment

Choose a reason for hiding this comment

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

LGTM

@jabbate19 jabbate19 merged commit 9627f49 into main Mar 25, 2025
7 of 12 checks passed
@jabbate19 jabbate19 deleted the external_ip branch March 25, 2025 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-change feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add remote IP to the host DB object

2 participants