-
Task
-
Resolution: Done
-
Undefined
-
None
-
None
-
image-builder-2
-
EnVision Sprint 69, EnVision Sprint 70, EnVision Sprint 71, EnVision Sprint 72, EnVision Sprint 73, EnVision Sprint 74
-
3
Goal:
We'd like to add an option to register the host into Satellite. In the Registration step (or somewhere else, based on agreement with UX), there should be an option that allows showing a Satellite registration step.
The new wizard step should have an element for pasting the registration command and an optional UI element for CA certificate with the following logic:
-
- The new page contains a link to Registering hosts Satellite documentation, an instruction to generate, copy and paste a registration command. Users must be adviced to set token lifetime appropriately.
- The token is base64-decoded, JSON parsed and expiration time is extracted. The information is presented to the user so they are aware of the fact the image might expire at some point.
- When an "insecure" string is detected in the registration command, the CA certificate screen is not enforced. Otherwise, the screen is mandatory.
- Optional feature: when secure mode is detected, the UI can accept to pre-populate the CA certificate screen with cert from http://satellite_url/pub/katello-server-ca.crt. Note this URL will only work if Satellite is reachable from the user browser and Satellite was installed with self-signed cert. So there should be a quick timeout and for non-2xx HTTP codes, the UI should silently give up.
- Once confirmed, the code logic will create a new ("hidden") firstboot script and systemd unit to run it as described in this document.
Acceptance Criteria:
There is a new Satellite registration step with the information mentioned above.