Project

General

Profile

Feature #30440

Simple & automatic host registration WF

Added by Leos Stejskal 8 months ago. Updated 6 days ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Host registration
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

See: https://community.theforeman.org/t/rfc-simple-automatic-host-registration-wf/19588

This RFC is part of an ongoing effort to simplify the registration process of the hosts into the Foreman. It’s not about provisioning new hosts from Foreman, but about registering already existing (running) hosts to Foreman and running user defined commands from the registration templates. That is especially useful in brown-field deployments, where people don’t provision the existing infrastructure from scratch, but want to start managing existing hosts by Foreman.

Motivation & Goals
Make the host registration simple and easy. We should allow users to register and set up hosts with one command.

Ideal Use Case
One command rule them all:

  • User will call curl | bash command, for example something like this:
    curl --user admin:changeme https://foreman.com/templates/register-new-host | bash
    
  • Foreman will generate Global registration template with commands for host registration to Foreman
  • After host creation Foreman will render the host-registration template with commands for host set up.

Subtasks

Feature #30475: DocumentationClosedLeos Stejskal
Feature #30917: Add Smart proxy feature "Registration"ClosedLeos Stejskal
Feature #30998: Global Registration - Secure connectionClosedLeos Stejskal
Feature #30999: Global Registration Template - Add :activation_key to the templateClosedLeos Stejskal
Refactor #31043: Global Registration Template - Replace JSON in CURL with form-dataClosedLeos Stejskal
Feature #31236: Host setup action in RegistrationController extendable from pluginsClosedLeos Stejskal
Bug #31420: Global Registration Template - Exit when subscription-manager failsClosedLeos Stejskal
Feature #31629: Add API for generating registration commandClosedLeos Stejskal
Bug #31645: Global registration fails with Validation failed: Name can't be blankClosedLeos Stejskal
Feature #31663: Usability issues with templates & operating systemsReady For TestingLeos Stejskal
Feature #31687: Support for bootstrap.py workflowNewLeos Stejskal
Feature #31743: Install packages after host registrationReady For TestingLeos Stejskal
Feature #31807: Host Registration - UI Form improvementsNewLeos Stejskal
Feature #31240: Registration Form - React way & UX improvementsNewLeos Stejskal
Feature #31811: Global Registration: wizard should let users know which fields are mandatoryNewLeos Stejskal
Feature #31818: Registration Form - JWT without expirationNew
Feature #31885: Global Registration: page does not pre-populate values for "Setup Insights" & "Remote Execution" from Global ParametersReady For TestingLeos Stejskal

Related issues

Related to Foreman - Feature #30441: API endpoint for Global Registration Template Closed
Related to Foreman - Feature #30442: JWT for Global Registration Template endpointClosed
Related to Foreman - Feature #30443: Global Registration Template - ContentResolved
Related to Foreman - Feature #30444: GRT - Host registration template featuresClosed
Related to Foreman - Feature #30445: Host registration template - contentClosed
Related to Foreman - Feature #30446: Global Registration Template - Default Organization and LocationClosed
Related to Foreman - Feature #30447: Add :insecure parameter to the Global registration endpointRejected
Related to Foreman - Feature #30459: Global Registration Template - Capsule callback supportClosed
Related to Foreman - Feature #30473: Global Registration - UIClosed
Related to Katello - Feature #30676: Extend Global registration endpoint with :activation_key parameter.Closed
Related to Smart Proxy - Feature #30677: Registration moduleClosed
Related to Foreman - Feature #30696: Improve the error output in global registration templateNew
Related to Foreman - Refactor #30699: Error logging for invalid token is misleadingClosed
Related to Foreman - Feature #30714: Global registration - add :url parameter to list of allowed params for the templateClosed
Related to Foreman - Feature #30742: Global Registration - RefactoringClosed
Related to Foreman - Feature #30771: Global Registration - New workflowClosed
Related to Installer - Feature #30950: Enable SmartProxy Registration moduleClosed
Related to Foreman - Bug #30990: GRT and HRT should use curl with --fail to avoid executing html code on 5xx responsesNew
Related to Foreman - Bug #30992: HRT API endpoint should document ipv6 parameterClosed
Related to Foreman - Bug #30993: HRT endpoint enables owner in strong params definitionClosed
Related to Foreman - Feature #31020: Global registration should support disabling REX setupClosed
Related to Foreman - Feature #31021: Global registration should support disabling insights setupClosed
Related to Foreman - Feature #31049: Add more reliable way to detect Foreman CA certificateReady For Testing
Related to Katello - Bug #31050: Registration fails if Katello is involved and the host is already subscribed, just not registered to this SatelliteClosed
Related to Foreman - Bug #31070: Improve the foreman_server_ca_cert macro documentationNew
Related to Foreman - Feature #31081: I should be able to specify REX interface during the registrationClosed
Related to Foreman - Bug #31082: The new insights registration snippet should be added to the Kickstart fileClosed
Related to Foreman - Feature #31137: The registration form should warn user if the OS does not have registration template associatedNew
Related to Foreman - Refactor #31138: Host registration tab should be removedNew
Related to Foreman - Refactor #31143: Use single quotes in registration templates for curlClosed
Related to Foreman - Feature #31164: Register host button should be added to the empty (welcome) host index pageClosed
Related to Foreman - Refactor #31177: Extract the permitted params to a separate variable in registration controllerClosed
Related to Foreman - Bug #31179: Registration curls print the output, making it hard to understand the progressClosed
Related to Foreman - Feature #31211: The inline help in the registration form should be hidden in the "?" icon like in other formsClosed
Related to Foreman - Bug #31212: Registration form parameters (such as insights) should always set the value if it's not an empty stringNew
Related to Foreman - Bug #31245: Host registration UI fails with "wrong number of arguments (given 2, expected 1)"Duplicate
Related to Foreman - Bug #31279: Activation key not supplied to the global registration templateClosed
Related to Foreman - Bug #31281: Clarify JWT used for registration template grants full access as the generating userClosed
Related to Foreman - Bug #31282: Limit JWT used for host registration to only allow access to the register endpointClosed
Related to Foreman - Feature #31341: Deploy the foreman_scap_client as part of registrationNew
Related to Foreman - Bug #31397: Global Registration Form - hostgroup_id instead of host_group_idClosed
Related to Foreman - Feature #31503: Add insecure checkbox to the registration formClosed
Related to Hammer CLI - Feature #31630: Global Registration - Hammer supportClosed
Related to Ansible - Feature #31819: Host Registration - Ansible moduleNew

History

#1 Updated by Leos Stejskal 8 months ago

  • Description updated (diff)

#2 Updated by Leos Stejskal 8 months ago

  • Related to Feature #30441: API endpoint for Global Registration Template added

#3 Updated by Leos Stejskal 8 months ago

  • Related to Feature #30442: JWT for Global Registration Template endpoint added

#4 Updated by Leos Stejskal 8 months ago

  • Related to Feature #30443: Global Registration Template - Content added

#5 Updated by Leos Stejskal 8 months ago

  • Related to Feature #30444: GRT - Host registration template features added

#6 Updated by Leos Stejskal 8 months ago

  • Related to Feature #30445: Host registration template - content added

#7 Updated by Leos Stejskal 8 months ago

  • Related to Feature #30446: Global Registration Template - Default Organization and Location added

#8 Updated by Leos Stejskal 8 months ago

  • Related to Feature #30447: Add :insecure parameter to the Global registration endpoint added

#9 Updated by Leos Stejskal 8 months ago

  • Related to Feature #30459: Global Registration Template - Capsule callback support added

#10 Updated by Tomer Brisker 8 months ago

  • Category set to Templates

#11 Updated by Leos Stejskal 8 months ago

#12 Updated by Leos Stejskal 8 months ago

#13 Updated by Leos Stejskal 8 months ago

  • Related to Feature #30476: Support scope of permissions for JWT authorization tokens added

#14 Updated by Leos Stejskal 7 months ago

  • Related to Feature #30676: Extend Global registration endpoint with :activation_key parameter. added

#15 Updated by Leos Stejskal 7 months ago

#16 Updated by Leos Stejskal 7 months ago

#17 Updated by Leos Stejskal 7 months ago

  • Related to Feature #30695: Global registration template endpoint - add :insecure parameter added

#18 Updated by Marek Hulán 7 months ago

  • Related to Feature #30696: Improve the error output in global registration template added

#19 Updated by Marek Hulán 7 months ago

  • Related to Refactor #30699: Error logging for invalid token is misleading added

#20 Updated by Leos Stejskal 6 months ago

  • Related to Feature #30714: Global registration - add :url parameter to list of allowed params for the template added

#21 Updated by Leos Stejskal 6 months ago

  • Related to deleted (Feature #30695: Global registration template endpoint - add :insecure parameter)

#22 Updated by Leos Stejskal 6 months ago

#23 Updated by Leos Stejskal 6 months ago

#24 Updated by Leos Stejskal 6 months ago

  • Related to deleted (Feature #30476: Support scope of permissions for JWT authorization tokens)

#25 Updated by Leos Stejskal 6 months ago

#26 Updated by Leos Stejskal 5 months ago

  • Related to Feature #30950: Enable SmartProxy Registration module added

#27 Updated by Marek Hulán 5 months ago

  • Related to Bug #30990: GRT and HRT should use curl with --fail to avoid executing html code on 5xx responses added

#28 Updated by Marek Hulán 5 months ago

  • Related to Bug #30992: HRT API endpoint should document ipv6 parameter added

#29 Updated by Marek Hulán 5 months ago

  • Related to Bug #30993: HRT endpoint enables owner in strong params definition added

#30 Updated by Marek Hulán 5 months ago

  • Related to Feature #31020: Global registration should support disabling REX setup added

#31 Updated by Marek Hulán 5 months ago

  • Related to Feature #31021: Global registration should support disabling insights setup added

#32 Updated by Marek Hulán 5 months ago

  • Related to Feature #31049: Add more reliable way to detect Foreman CA certificate added

#33 Updated by Marek Hulán 5 months ago

  • Related to Bug #31050: Registration fails if Katello is involved and the host is already subscribed, just not registered to this Satellite added

#34 Updated by Marek Hulán 5 months ago

  • Related to Bug #31070: Improve the foreman_server_ca_cert macro documentation added

#35 Updated by Marek Hulán 5 months ago

  • Related to Feature #31081: I should be able to specify REX interface during the registration added

#36 Updated by Marek Hulán 5 months ago

  • Related to Bug #31082: The new insights registration snippet should be added to the Kickstart file added

#37 Updated by Marek Hulán 5 months ago

  • Related to Feature #31137: The registration form should warn user if the OS does not have registration template associated added

#38 Updated by Marek Hulán 5 months ago

  • Related to Refactor #31138: Host registration tab should be removed added

#39 Updated by Marek Hulán 5 months ago

  • Related to Refactor #31143: Use single quotes in registration templates for curl added

#40 Updated by Marek Hulán 4 months ago

  • Related to Feature #31164: Register host button should be added to the empty (welcome) host index page added

#41 Updated by Marek Hulán 4 months ago

  • Related to Refactor #31177: Extract the permitted params to a separate variable in registration controller added

#42 Updated by Marek Hulán 4 months ago

  • Related to Bug #31179: Registration curls print the output, making it hard to understand the progress added

#43 Updated by Marek Hulán 4 months ago

  • Related to Feature #31211: The inline help in the registration form should be hidden in the "?" icon like in other forms added

#44 Updated by Marek Hulán 4 months ago

  • Related to Bug #31212: Registration form parameters (such as insights) should always set the value if it's not an empty string added

#45 Updated by Peter Ondrejka 4 months ago

  • Related to Bug #31245: Host registration UI fails with "wrong number of arguments (given 2, expected 1)" added

#46 Updated by Peter Ondrejka 4 months ago

  • Related to Bug #31279: Activation key not supplied to the global registration template added

#47 Updated by Tomer Brisker 4 months ago

  • Related to Bug #31281: Clarify JWT used for registration template grants full access as the generating user added

#48 Updated by Tomer Brisker 4 months ago

  • Related to Bug #31282: Limit JWT used for host registration to only allow access to the register endpoint added

#49 Updated by Marek Hulán 4 months ago

  • Related to Feature #31341: Deploy the foreman_scap_client as part of registration added

#50 Updated by Leos Stejskal 3 months ago

#51 Updated by Marek Hulán 3 months ago

  • Related to Bug #31397: Global Registration Form - hostgroup_id instead of host_group_id added

#52 Updated by Marek Hulán 3 months ago

  • Related to Feature #31503: Add insecure checkbox to the registration form added

#53 Updated by Leos Stejskal about 2 months ago

  • Related to Feature #31630: Global Registration - Hammer support added

#54 Updated by Leos Stejskal about 1 month ago

#55 Updated by Leos Stejskal 26 days ago

  • Category changed from Templates to Host registration

Also available in: Atom PDF