Feature #1069
closedUnattended install behind firewall and built status
Description
Hello,
It would be nice if we can build machines behind firewall. The problem is that, today, the Kickstart will send, at the end, a wget "built" information to foreman server. But if the machine is behind a firewall, foreman will not know from who this request come as he only see the FW IPs.
Is that possible ?
Thanks
Updated by Corey Osman over 13 years ago
I dont' know much about the provisioning aspect of foreman but it seems the following URL works great when foreman is on the same network.
http://foreman:3000/unattended/built (IP is inspected to verify build was successful)
However, in situations where NAT is used I think we should be relying on a url scheme rather than inspected IP packets.
This method would allow for any system in any network to send the built ack to foreman with worrying about NAT.
Updated by Ohad Levy over 13 years ago
Corey Osman wrote:
However, in situations where NAT is used I think we should be relying on a url scheme rather than inspected IP packets.
This method would allow for any system in any network to send the built ack to foreman with worrying about NAT.
My main concern here is security... since this is a non authenticated call.
I'm more then open for suggestion of how to identify the requesting machine...
Updated by Marcello de Sousa over 13 years ago
Following the same line as suggested in #969 - Direct Client->Foreman communication shouldn't be needed (and moved to the Proxy)
We would have to figure out exactly how, but the client server should never really need to contact Foreman directly (I want to have my Foreman firewalled) and IMHO this "Built acknoledgement" should also be moved to the proxy .
Updated by Corey Osman about 13 years ago
well i would do something like this: wget -q -O /dev/null --no-check-certificate https://foreman/unattended/built/$UUID
where $UUID is a random string shared with the client at the time the provision file is generated. So in the provision file the wget -q -O /dev/null --no-check-certificate https://foreman/unattended/built/$UUID line would be unique each time.
This would help with not relying on a specific IP to be present and instead a hard coded Mac address and UUID.
Updated by Ohad Levy over 12 years ago
we can simply use a unique secure uuid to identify the system, very similar to how puppet certnames work.
Updated by Ohad Levy about 12 years ago
- Category set to Unattended installations
- Assignee set to Greg Sutcliffe
- Target version set to 1.1
Updated by Anonymous about 12 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset 81159d4bf8355ab2fac1813127fccf60baf75fbc.