Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1950468 - root_pass setting does not enforce minimum length of 8 characters as the host and hostgroups forms do
Summary: root_pass setting does not enforce minimum length of 8 characters as the host...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Settings
Version: 6.8.0
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: 6.13.0
Assignee: nalfassi
QA Contact: visawant
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-16 16:58 UTC by Taft Sanders
Modified: 2023-05-03 13:20 UTC (History)
9 users (show)

Fixed In Version: foreman-3.4.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-03 13:20:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 32925 0 Normal New root_pass setting does not enforce minimum length of 8 characters as the host and hostgroups forms do 2021-07-01 09:16:52 UTC
Red Hat Issue Tracker SAT-14347 0 None None None 2022-12-08 15:59:41 UTC
Red Hat Product Errata RHSA-2023:2097 0 None None None 2023-05-03 13:20:50 UTC

Description Taft Sanders 2021-04-16 16:58:07 UTC
Description of problem:
Satellite host groups require an 8 character minimum password setting. Satellite settings > Provisioning > root_pass, has no minimum requirement.

Version-Release number of selected component (if applicable):
satellite-6.8.6-1

How reproducible:
every time

Steps to Reproduce:
1. Create a host group and set a password of fewer than 8 characters
2. Set a password in the Satellite settings > Provisioning > root_pass, of less than 8 characters
3.

Actual results:
Host group can't have a password of fewer than 8 characters

Expected results:
Host group root password minimum requirements should match that of the Satellite settings

Additional info:
A user is also not able to unset a password in a host group to allow for use of the default password from Satellite settings > Provisioning > root_pass

Comment 1 Tomer Brisker 2021-07-01 09:12:34 UTC
Looks like unsetting a hostgroup password does not work only if the root_pass setting is set to less than 8 characters. Since we require 8 characters both in host and hostgroup, it probably makes sense to also enforce the same requirement for the setting. Moving to Settings component.

Comment 2 Tomer Brisker 2021-07-01 09:16:48 UTC
Created redmine issue https://projects.theforeman.org/issues/32925 from this bug

Comment 3 nalfassi 2022-07-07 12:47:34 UTC
(In reply to Tomer Brisker from comment #1)
> Looks like unsetting a hostgroup password does not work only if the
> root_pass setting is set to less than 8 characters. Since we require 8
> characters both in host and hostgroup, it probably makes sense to also
> enforce the same requirement for the setting. Moving to Settings component.

I checked this on Sattelite 6.11 and this no longer happens. Meaning that the user can unset a hostgroup password (even if it's less than 8 characters).

Comment 4 Bryan Kearney 2022-07-10 16:03:22 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/32925 has been resolved.

Comment 5 Marek Hulan 2022-07-12 08:13:55 UTC
Cool, thanks for the confirmation Nofar, so the fix that is delivered is actually a validation on the setting.

For QE:
1) Navigate to Administer -> Settings -> Provisioning -> Root password
2) try setting a password shorter than 8 chars, it should not allow you that
3) it still must be possible to set an empty password, users may want to configure it on host group or host level

Comment 11 errata-xmlrpc 2023-05-03 13:20:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.13 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:2097


Note You need to log in before you can comment on or make changes to this bug.