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

Branch: refs/heads/authorized-keys Home: https://github.com/yast/yast-users Commit: efedb8cbeaef30ded360970a57dfd180c9c6f090 https://github.com/yast/yast-users/commit/efedb8cbeaef30ded360970a57dfd180c9... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 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: 748ac9593a7bf4121309266a53eac9ccc6916108 https://github.com/yast/yast-users/commit/748ac9593a7bf4121309266a53eac9ccc6... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 May 2021) Changed paths: M src/lib/users/ssh_authorized_keyring.rb Log Message: ----------- Allow to specify keys when instantiating an authorized keyring Commit: 1b0defe53a079b9f050823ccb698c59ddfccd4a3 https://github.com/yast/yast-users/commit/1b0defe53a079b9f050823ccb698c59ddf... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 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: 037bd3e2912190efe6b4eb58ce7fb5921ec23cf3 https://github.com/yast/yast-users/commit/037bd3e2912190efe6b4eb58ce7fb5921e... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 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: 413856a03665be762fd4acd78585b12cf20c9410 https://github.com/yast/yast-users/commit/413856a03665be762fd4acd78585b12cf2... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 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: cb0f63d05f3102f0e099ca326f03c2f6bfe48ff0 https://github.com/yast/yast-users/commit/cb0f63d05f3102f0e099ca326f03c2f6bf... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 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: d6d6d4f7a651f8dadcf49d09113d51fa7cbb9a38 https://github.com/yast/yast-users/commit/d6d6d4f7a651f8dadcf49d09113d51fa7c... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 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: 111a04a48f4f928741ce284611aaeaf36e29bb44 https://github.com/yast/yast-users/commit/111a04a48f4f928741ce284611aaeaf36e... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 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: 7d08ed80425ae2bd14f21de9386461cbb936497b https://github.com/yast/yast-users/commit/7d08ed80425ae2bd14f21de9386461cbb9... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 May 2021) Changed paths: M src/lib/y2users/user.rb Log Message: ----------- Drop no longer relevant comment Commit: ff892790259cdd655a73dcb8e8c939cccc6d85f5 https://github.com/yast/yast-users/commit/ff892790259cdd655a73dcb8e8c939cccc... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 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: a68de66ff9d14b0e7333678811d0aebd4be5be66 https://github.com/yast/yast-users/commit/a68de66ff9d14b0e7333678811d0aebd4b... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 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: 2597c24fc5240df59eb2eee513517ab2bda76293 https://github.com/yast/yast-users/commit/2597c24fc5240df59eb2eee513517ab2bd... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 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: c6bfb5d1993eb16cba0efd4cbee942da3cc98982 https://github.com/yast/yast-users/commit/c6bfb5d1993eb16cba0efd4cbee942da3c... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 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: 491613a5b03edddc2b7f7c5d320f7a61729037d4 https://github.com/yast/yast-users/commit/491613a5b03edddc2b7f7c5d320f7a6172... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 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: 68d1d1307fa5bb70ee180500b64493e11d6b37b8 https://github.com/yast/yast-users/commit/68d1d1307fa5bb70ee180500b64493e11d... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 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: e463cd23ba7b4d833f16f8eacf38c0e50a4e06ef https://github.com/yast/yast-users/commit/e463cd23ba7b4d833f16f8eacf38c0e50a... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 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: 659519c8d50aa6642b05c50cada4937fff95cfb7 https://github.com/yast/yast-users/commit/659519c8d50aa6642b05c50cada4937fff... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 May 2021) Changed paths: M src/lib/y2users/user_validator.rb Log Message: ----------- Remove dead code in UserValidator Commit: 5e4386a8c8841bceafd2f40dd2207296eb978d11 https://github.com/yast/yast-users/commit/5e4386a8c8841bceafd2f40dd2207296eb... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 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: 4b633db55db946c4ece0f8cbf77f6bc194aff1a3 https://github.com/yast/yast-users/commit/4b633db55db946c4ece0f8cbf77f6bc194... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 May 2021) Changed paths: M src/lib/users/dialogs/inst_user_first.rb Log Message: ----------- Better users variables naming in inst_users_first Commit: c12e61ca82555edecf25702994c231a659e12ff8 https://github.com/yast/yast-users/commit/c12e61ca82555edecf25702994c231a659... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 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: 9d66db87811e2a74f88f1b0badaeeb1d6a83326a https://github.com/yast/yast-users/commit/9d66db87811e2a74f88f1b0badaeeb1d6a... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 May 2021) Changed paths: M src/lib/users/dialogs/inst_user_first.rb Log Message: ----------- Check earlier if using same password for root Commit: e1fa8d6a9ba991be1a91cdf1815718e73f4758ac https://github.com/yast/yast-users/commit/e1fa8d6a9ba991be1a91cdf1815718e73f... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 May 2021) Changed paths: M test/lib/y2users/clients/inst_root_first_test.rb M test/lib/y2users/linux/writer_test.rb Log Message: ----------- Minor changes in unit tests Commit: bd389310e1fa8da34d6d3d54c01c556bf062738f https://github.com/yast/yast-users/commit/bd389310e1fa8da34d6d3d54c01c556bf0... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 May 2021) Changed paths: M src/lib/y2users/user_validator.rb Log Message: ----------- Revert "Remove dead code in UserValidator" This reverts commit c6e44848a0d1ec9d523c6e3db777310b8f0e8060. Commit: e639781d279e3d07f2192de48780ee938aac6684 https://github.com/yast/yast-users/commit/e639781d279e3d07f2192de48780ee938a... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 May 2021) Changed paths: M src/lib/y2users/user_validator.rb Log Message: ----------- Fix the UserValidator Using Y2Users::User#password_issues instead Y2Users::Password#issues (which does not exist) for checking the password issues. Commit: cf63b68409974422c51308c687fd90c707def8cd https://github.com/yast/yast-users/commit/cf63b68409974422c51308c687fd90c707... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 May 2021) Changed paths: M src/lib/y2users/user_validator.rb M test/Makefile.am A test/lib/y2users/user_validator_test.rb Log Message: ----------- Allow skipping checks when validating a user Commit: 9c135958d6237ead932bf0de08edecea15c040fc https://github.com/yast/yast-users/commit/9c135958d6237ead932bf0de08edecea15... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-26 (Wed, 26 May 2021) Changed paths: M src/lib/users/dialogs/inst_user_first.rb M src/lib/y2users/user.rb M test/lib/y2users/user_test.rb Log Message: ----------- Skip password when validation the user In the inst_user_first dialog. Compare: https://github.com/yast/yast-users/compare/1483353141bb...9c135958d623
participants (1)
-
David Díaz