[yast/yast-users] df3a1e: Add initial support for holding authorized keys in...
Branch: refs/heads/authorized-keys Home: https://github.com/yast/yast-users Commit: df3a1e2128a4f8186eaa45b9007a5858c3b6d442 https://github.com/yast/yast-users/commit/df3a1e2128a4f8186eaa45b9007a5858c3... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-27 (Thu, 27 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: 9ed8e5959746564c05f994a3ff7ae5b95cd0bc25 https://github.com/yast/yast-users/commit/9ed8e5959746564c05f994a3ff7ae5b95c... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-27 (Thu, 27 May 2021) Changed paths: M src/lib/users/ssh_authorized_keyring.rb Log Message: ----------- Allow to specify keys when instantiating an authorized keyring Commit: b846d91289b6e8f3b45106738534f56417fc719a https://github.com/yast/yast-users/commit/b846d91289b6e8f3b45106738534f56417... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-27 (Thu, 27 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: 12a4dd68fcf6073832254ea17da3550b5c4f6803 https://github.com/yast/yast-users/commit/12a4dd68fcf6073832254ea17da3550b5c... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-27 (Thu, 27 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: fda28cbd762c1a6134e2a838d8aaf18cda2e724d https://github.com/yast/yast-users/commit/fda28cbd762c1a6134e2a838d8aaf18cda... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-27 (Thu, 27 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: cc5bdc1ea84bf566ada5988349e5b3b85c62cc1a https://github.com/yast/yast-users/commit/cc5bdc1ea84bf566ada5988349e5b3b85c... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-27 (Thu, 27 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: 9c45014d57ecd9e20757baf3561d652f4b8b2e0b https://github.com/yast/yast-users/commit/9c45014d57ecd9e20757baf3561d652f4b... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-27 (Thu, 27 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: f5e1c74465ff3f6f22c54213c6dceb49d22dd494 https://github.com/yast/yast-users/commit/f5e1c74465ff3f6f22c54213c6dceb49d2... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-27 (Thu, 27 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: 4ba990bbe0f42f578a5734d27095ed245e321b8d https://github.com/yast/yast-users/commit/4ba990bbe0f42f578a5734d27095ed245e... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-27 (Thu, 27 May 2021) Changed paths: M src/lib/y2users/inst_users_dialog_helper.rb M src/lib/y2users/users_simple/writer.rb M test/lib/y2users/linux/writer_test.rb M test/lib/y2users/users_simple/reader_test.rb Log Message: ----------- Adapt code to use the new API introduced in #278 Commit: 7f589d3ca95dc75514bd97d8e5b1b8982a17457e https://github.com/yast/yast-users/commit/7f589d3ca95dc75514bd97d8e5b1b8982a... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-27 (Thu, 27 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: fabf87de08024d9e50b538491b8ad5e6e8fd41ab https://github.com/yast/yast-users/commit/fabf87de08024d9e50b538491b8ad5e6e8... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-27 (Thu, 27 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: cabd84a17e922f6c5739c8b8c212860e4fb780ba https://github.com/yast/yast-users/commit/cabd84a17e922f6c5739c8b8c212860e4f... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-27 (Thu, 27 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: ----------- Improve users validations and get rid of InstUsersDialogHelper This commit includes two distinguished changes: * Start using a copy of users in which make the changes until all validations have been accomplished. Once it happens, the original users are updated accordingly. * The deletion of InstUsersDialogHelper, which is not useful anymore since the plan is to read the user configuration in the clients/dialogs and pass down the needed user to the widgets. The only remaining shared method has been moved to the PasswordHelper. Commit: 8ad0d70bade823f924a31118ceac2c3642a8309a https://github.com/yast/yast-users/commit/8ad0d70bade823f924a31118ceac2c3642... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-27 (Thu, 27 May 2021) Changed paths: M src/Makefile.am M src/clients/inst_root_first.rb 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 A src/lib/y2users/clients/inst_root_first.rb M test/Makefile.am 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 A test/lib/y2users/clients/inst_root_first_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. For reading and writing from/to Yast::UsersSimple, a new InstRootFirts client has been added. Commit: 4fcac9b5b56641a2af1efdd6507a350879141a8e https://github.com/yast/yast-users/commit/4fcac9b5b56641a2af1efdd6507a350879... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-27 (Thu, 27 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: a945fbe0233b4002db35613a61b5d12fedee658b https://github.com/yast/yast-users/commit/a945fbe0233b4002db35613a61b5d12fed... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-27 (Thu, 27 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: bb55ef99dc0a63ded254d901a3bc5968a92a83b8 https://github.com/yast/yast-users/commit/bb55ef99dc0a63ded254d901a3bc5968a9... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-05-27 (Thu, 27 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 validating the user In the inst_user_first dialog. Compare: https://github.com/yast/yast-users/compare/4c5055592e91...bb55ef99dc0a
participants (1)
-
David Díaz