Project

General

Profile

Bug #6247

/unattended/built matches on request source ip

Added by David Schmitt almost 5 years ago. Updated almost 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Unattended installations
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

I've installed a VM via foreman successfully but it was not marked as built. The cause seems to be a mixture of #5883 (token timeout/mismatch) and the additional complexity of my setup: the VM is behind a NAT, which supplies the http request with the IP address of an already built (but totally unrelated) system. Therefore UnattendedController#get_host_details matches on the NAT host (via UnattendedController#find_host_by_ip_or_mac), but immediately fails on the @host.build check in UnattendedController#allowed_to_install?.

It'd be great if the UnattendedController could just reject all requests with an invalid token, putting a specific error message into the log?

History

#1 Updated by David Schmitt almost 5 years ago

Note: updating the token.expires date to something in the future made the (simulated) wget to /unattended/built?token=xxx work correctly.

Also available in: Atom PDF