Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add trusted proxies back as optional: #366

Merged
merged 2 commits into from
Nov 3, 2023

Conversation

jacobweinstock
Copy link
Member

@jacobweinstock jacobweinstock commented Nov 3, 2023

Description

There is an existing use-case where a user doesn't use Smee for DHCP and interpolating the mac address into the URL for the auto.ipxe script is either not possible or very difficult in their DHCP server. This PR will allow using trusted proxies (XFF) as a fallback if the MAC address is not found in the URL path.

Why is this needed

Fixes: #

How Has This Been Tested?

How are existing users impacted? What migration steps/scripts do we need?

Checklist:

I have:

  • updated the documentation and/or roadmap (if required)
  • added unit or e2e tests
  • provided instructions on how to upgrade

There is an existing use-case where a user doesn't use Smee
for DHCP and interpolating the mac address into the URL for
the auto.ipxe script is either not possible or very difficult
in their DHCP server.
For this reason, we will allow using trusted proxies (XFF).
We will also fall back to checking for the source IP in a request
if the MAC address is not found in the URL path.

Signed-off-by: Jacob Weinstock <[email protected]>
Signed-off-by: Jacob Weinstock <[email protected]>
@jacobweinstock jacobweinstock added the ready-to-merge Signal to Mergify to merge the PR. label Nov 3, 2023
@mergify mergify bot merged commit be5dd4a into tinkerbell:main Nov 3, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Signal to Mergify to merge the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants