Foreman 3.19: registration: HTTPS vs Unattended URL

Hello,
there is an upgrade warning for foreman 3:19:

HTTPS-only host registration
Host registration now uses HTTPS for the /unattended/built endpoint. This means that registration no longer requires Port 80, and it is not possible to use Port 80 during registration.

Does this only apply to registering hosts? (vs. finish template calls)
Currently, my templates use foreman_url('built') in the finish template. In my setup, this returns a http:// URL with Foreman 3.18.1. (as my Unattended URL is configured as such).

Thanks!

The change forcing HTTPS was designed so it only affects registration, and you can still use HTTP for provisioning. This is accomplished via a new force_https option added to the ‘built’ snippet. The host_init_config_default calls it with

<%= snippet('built', :variables => { :force_https => true }) %>

but no other templates were changed, so force_https should continue to default to false.

1 Like