[yast/yast-users] 6c86d9: Add initial support for holding authorized keys in...

Branch: refs/heads/authorized-keys Home: https://github.com/yast/yast-users Commit: 6c86d9f9e5d655c0506ea5a80fad12c78656f490 https://github.com/yast/yast-users/commit/6c86d9f9e5d655c0506ea5a80fad12c786... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-21 (Fri, 21 May 2021) Changed paths: M src/lib/y2users/user.rb M test/lib/y2users/user_test.rb Log Message: ----------- Add initial support for holding authorized keys in a user Commit: a230ceeb401626ac0bfedffd7e3f099da77df915 https://github.com/yast/yast-users/commit/a230ceeb401626ac0bfedffd7e3f099da7... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-21 (Fri, 21 May 2021) Changed paths: M src/lib/users/ssh_authorized_keyring.rb Log Message: ----------- Allow to specify keys when instantiating an authorized keyring Commit: 40944643b49132ae273219fc5c28b6f0dbbc1ee4 https://github.com/yast/yast-users/commit/40944643b49132ae273219fc5c28b6f0db... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-21 (Fri, 21 May 2021) Changed paths: M src/lib/y2users/users_simple/reader.rb M test/lib/y2users/users_simple/reader_test.rb Log Message: ----------- Adapt UsersSimple reader to set the root home Commit: d9d0a743af9879aac3c05f06721c4dfe5db6c68b https://github.com/yast/yast-users/commit/d9d0a743af9879aac3c05f06721c4dfe5d... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-21 (Fri, 21 May 2021) Changed paths: M src/lib/y2users/users_simple/reader.rb M src/lib/y2users/users_simple/writer.rb M test/lib/y2users/users_simple/reader_test.rb M test/lib/y2users/users_simple/writer_test.rb Log Message: ----------- Adapt code for getting and setting root authorized key Y2Users::UsersSimple reader and writer are now able to read and write the root public key from/to legacy Yast::UsersSimple database. Commit: 2244e98384765fc150b4fe41f3c72e5ba8f213aa https://github.com/yast/yast-users/commit/2244e98384765fc150b4fe41f3c72e5ba8... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-21 (Fri, 21 May 2021) Changed paths: M src/lib/y2users/parsers/passwd.rb Log Message: ----------- Adapt Passwd parser for reading authorized keys Relying in Yast::Users::SSHAuthorizedKeyring#read_keys Commit: d55874352c8ad2bce57714e417bc5ca166dc48e9 https://github.com/yast/yast-users/commit/d55874352c8ad2bce57714e417bc5ca166... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-21 (Fri, 21 May 2021) Changed paths: M src/lib/y2users/linux/writer.rb M test/lib/y2users/linux/writer_test.rb Log Message: ----------- Adapt Linux writer for writting authorized keys Commit: 7063d405bb71412fd40216063456e740ab763dd2 https://github.com/yast/yast-users/commit/7063d405bb71412fd40216063456e740ab... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-21 (Fri, 21 May 2021) Changed paths: M src/lib/users/widgets/public_key_selector.rb Log Message: ----------- Adapt PublicKeySelector widget For working with new Y2Users users and configuration instead of dealing with the legacy Yast::UsersSimple directly. Commit: 2249d01fda59de8d5ba67c8bf714e40674f5bb19 https://github.com/yast/yast-users/commit/2249d01fda59de8d5ba67c8bf714e40674... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-21 (Fri, 21 May 2021) Changed paths: M src/lib/y2users/linux/writer.rb M test/lib/y2users/linux/writer_test.rb Log Message: ----------- Do not request to write authorized keys if home is not defined Commit: 7612bfac3cec61c93fb82cbd873b99fa0568d5df https://github.com/yast/yast-users/commit/7612bfac3cec61c93fb82cbd873b99fa05... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-21 (Fri, 21 May 2021) Changed paths: M src/lib/y2users/user.rb Log Message: ----------- Drop no longer relevant comment Commit: 49081edc5385865df9ca6abf97569836f4e40f09 https://github.com/yast/yast-users/commit/49081edc5385865df9ca6abf97569836f4... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-21 (Fri, 21 May 2021) Changed paths: M src/lib/y2users/inst_users_dialog_helper.rb M test/lib/y2users/linux/writer_test.rb Log Message: ----------- Adapt code to use the new API introduced in #278 Commit: e25dbd9455f00d013ef5531ae1aa6e8be3f9e374 https://github.com/yast/yast-users/commit/e25dbd9455f00d013ef5531ae1aa6e8be3... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-21 (Fri, 21 May 2021) Changed paths: M src/lib/y2users/user.rb M test/lib/y2users/user_test.rb Log Message: ----------- Use a dup of authorized keys when copying a user Commit: 5c36c0d79440cee48d84756b45dc7c9b1fe45d32 https://github.com/yast/yast-users/commit/5c36c0d79440cee48d84756b45dc7c9b1f... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-21 (Fri, 21 May 2021) Changed paths: M src/Makefile.am A src/lib/y2users/password_helper.rb M test/Makefile.am A test/lib/y2users/password_helper_test.rb Log Message: ----------- Add mixin to hold password helper methods As a first step to get rid of InstUsersDialogHelper. Commit: fdb5c67021658b9eea07514005c1562981730787 https://github.com/yast/yast-users/commit/fdb5c67021658b9eea07514005c1562981... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-21 (Fri, 21 May 2021) Changed paths: M src/Makefile.am M src/lib/users/dialogs/inst_user_first.rb M src/lib/users/widgets.rb M src/lib/users/widgets/public_key_selector.rb R src/lib/y2users/inst_users_dialog_helper.rb M test/widgets_test.rb Log Message: ----------- Get rid of InstUsersDialogHelper Since the plan is to read the user configuration in the dialogs and pass down the needed user to the widgets and the only remaining shared method has been moved to the PasswordHelper, the InstUsersDialogHelper is not useful anymore. Additionally, as a side effect, this changes set includes starting using a copy of the user in which make the changes until all validations have been accomplished. Once it happens, the original user is updates accordingly. Commit: ca31a96795a4c7f2b5a02259bdc789c9c379160f https://github.com/yast/yast-users/commit/ca31a96795a4c7f2b5a02259bdc789c9c3... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-21 (Fri, 21 May 2021) Changed paths: M src/lib/users/dialogs/inst_root_first.rb M src/lib/users/widgets.rb M src/lib/users/widgets/inst_root_first.rb M src/lib/users/widgets/public_key_selector.rb M test/lib/users/dialogs/inst_root_first_test.rb M test/lib/users/widgets/inst_root_first_test.rb M test/lib/users/widgets/public_key_selector_test.rb M test/widgets_test.rb Log Message: ----------- Avoid widgets dealing with users config PasswordWidget and PublicKeySelector widgets were reading the Yast::UsersSimple database into their own instance of YUsers::Config and writing it back when executing the #store method, which might lead to sync problems. To avoid it, now those widgets do not deal with the config anymore. Instead, they just receive the user as a parameter during the initialization and make a copy to perform needed validations before modifying it. Commit: 9e916c08b7c4b6d3ab8fe9879c9cf605b0fa1173 https://github.com/yast/yast-users/commit/9e916c08b7c4b6d3ab8fe9879c9cf605b0... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-21 (Fri, 21 May 2021) Changed paths: M src/lib/y2users/users_simple/reader.rb M test/lib/y2users/users_simple/reader_test.rb Log Message: ----------- Fix Y2Users:UsersSimple::Reader Only set the root authorized key if it isn't empty. Commit: 5e5eeb02c5d48807a28fa4f1cbcbc03853a6e555 https://github.com/yast/yast-users/commit/5e5eeb02c5d48807a28fa4f1cbcbc03853... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-21 (Fri, 21 May 2021) Changed paths: M src/lib/y2users/users_simple/writer.rb M test/lib/y2users/users_simple/writer_test.rb Log Message: ----------- Fix Y2Users::UsersSimple::Writer Always write the root password and authorized key, even if it is empty (which means that attribute is not set). Commit: c6e44848a0d1ec9d523c6e3db777310b8f0e8060 https://github.com/yast/yast-users/commit/c6e44848a0d1ec9d523c6e3db777310b8f... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-21 (Fri, 21 May 2021) Changed paths: M src/lib/y2users/user_validator.rb Log Message: ----------- Remove dead code in UserValidator Commit: aa0f7ddee9e3c12059b5889b432104e5a667bace https://github.com/yast/yast-users/commit/aa0f7ddee9e3c12059b5889b432104e5a6... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-21 (Fri, 21 May 2021) Changed paths: M src/Makefile.am M src/clients/inst_root_first.rb M src/lib/users/dialogs/inst_root_first.rb A src/lib/y2users/clients/inst_root_first.rb M test/Makefile.am M test/lib/users/dialogs/inst_root_first_test.rb A test/lib/y2users/clients/inst_root_first_test.rb Log Message: ----------- Add a new InstRootFirst client For properly update the users' configuration since the #next_handler method isn't the right place to do so (its execution happens BEFORE widgets updates the user object). Commit: 6a1f46ba82dcd17abf40475b2ff19d10b25fb6aa https://github.com/yast/yast-users/commit/6a1f46ba82dcd17abf40475b2ff19d10b2... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-21 (Fri, 21 May 2021) Changed paths: M src/lib/users/dialogs/inst_user_first.rb Log Message: ----------- Better users variables naming in inst_users_first Commit: 625dfc7e4e925ad71d5dceb88aca956485098357 https://github.com/yast/yast-users/commit/625dfc7e4e925ad71d5dceb88aca956485... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-21 (Fri, 21 May 2021) Changed paths: M src/lib/users/dialogs/inst_user_first.rb Log Message: ----------- Adapt autologin initialization Do not read the default autologin value after asking to Yast::UsersSimple if either: * the user is already attached to the configuration (which means that a false value was set on purpose, not because of the lack of initialization), or * the value is set to true Commit: 6e8c4b885eb32fbcbe526887ec7fa599dee3e2ca https://github.com/yast/yast-users/commit/6e8c4b885eb32fbcbe526887ec7fa599de... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-21 (Fri, 21 May 2021) Changed paths: M src/lib/users/dialogs/inst_user_first.rb Log Message: ----------- f better naming Commit: 75258774dbef27d70ddddbd4d11ac79cb1087324 https://github.com/yast/yast-users/commit/75258774dbef27d70ddddbd4d11ac79cb1... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-21 (Fri, 21 May 2021) Changed paths: M src/lib/users/dialogs/inst_user_first.rb Log Message: ----------- Check earlier if using same password for root Compare: https://github.com/yast/yast-users/compare/df96df0b8551...75258774dbef
participants (1)
-
David Díaz