Project

General

Profile

Feature #2943

Make it possible to unset a host's root password

Added by Robin Bowes about 6 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host creation
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

If a root password is set at a the host level it is not possible to unset it without munging the database directly.

Add some way to clear the password that has been set in the host interface.

FWIW, the SQL required to clear the root password is as follows:

update hosts set root_pass = null where name = '<your host name here>';


Related issues

Related to Foreman - Bug #11387: LDAP Account password cannot be empty after edit Closed2015-08-17
Has duplicate Foreman - Bug #9417: Impossible to see / clear root password from hostgroupDuplicate2015-02-17

Associated revisions

Revision 2348fc8e (diff)
Added by Amir Fefer almost 4 years ago

Fixes #2943,#11387 - Add unset option to password_f in layout helper, added in Host and hostgroup root_pass, LDAP acount password, BMC password and compute resources password

#2943,#11387 - Please enter the commit message for your changes. Lines starting

History

#1 Updated by Steve Traylen over 5 years ago

Indeed there looks to have been a regression on - http://projects.theforeman.org/issues/1392

#2 Updated by Dominic Cleal over 5 years ago

Steve Traylen wrote:

Indeed there looks to have been a regression on - http://projects.theforeman.org/issues/1392

Yes, this happened in #2484 - a combination of password fields no longer having their current value preset in Rails (which is good for security), and then in response we changed the form not to overwrite a host's password with a blank value from the form when you edit a host. This means you can no longer deliberately reset it by deleting the value, as there is no current value - but also means users don't inadvertently reset it just by editing a host.

I think to implement this (again), we would introduce something like a checkbox to the side of the password field which you'd tick if you wanted to remove it entirely.

#3 Updated by Dominic Cleal over 4 years ago

  • Has duplicate Bug #9417: Impossible to see / clear root password from hostgroup added

#4 Updated by Bryan Kearney over 4 years ago

  • Bugzilla link set to 1193310

#5 Updated by Dominic Cleal about 4 years ago

  • Related to Bug #11387: LDAP Account password cannot be empty after edit added

#6 Updated by Amir Fefer about 4 years ago

  • Status changed from New to Assigned
  • Assignee set to Amir Fefer

#7 Updated by The Foreman Bot almost 4 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2632 added
  • Pull request deleted ()

#8 Updated by Amir Fefer almost 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#9 Updated by Dominic Cleal almost 4 years ago

  • Category set to Host creation
  • Legacy Backlogs Release (now unused) set to 63

Also available in: Atom PDF