Project

General

Profile

Actions

Bug #6247

open

/unattended/built matches on request source ip

Added by David Schmitt over 10 years ago. Updated over 10 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Unattended installations
Target version:
-
Difficulty:
Triaged:
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?

Actions

Also available in: Atom PDF