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

Branch: refs/heads/authorized-keys Home: https://github.com/yast/yast-users Commit: 4d664b9ae7d5c093b3c2307b46fe13d9244a898e https://github.com/yast/yast-users/commit/4d664b9ae7d5c093b3c2307b46fe13d924... 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: ad8fe97c6edf5717a10908fedacfcaa6be942153 https://github.com/yast/yast-users/commit/ad8fe97c6edf5717a10908fedacfcaa6be... 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: 435474b1611b9c3916d8c9b8016fe035a8cf790b https://github.com/yast/yast-users/commit/435474b1611b9c3916d8c9b8016fe035a8... 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: ce4d8b7d3dc4eaef48ac8ade6fcdee70f205592d https://github.com/yast/yast-users/commit/ce4d8b7d3dc4eaef48ac8ade6fcdee70f2... 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: ff69c6345d5cc381e0830e606e7dbc82dd0c153d https://github.com/yast/yast-users/commit/ff69c6345d5cc381e0830e606e7dbc82dd... 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: 782c7cc4ed62e59e6179b4c6d1c96518a011eece https://github.com/yast/yast-users/commit/782c7cc4ed62e59e6179b4c6d1c96518a0... 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: ed63f560c3eb6d4482b4008106494042bb609082 https://github.com/yast/yast-users/commit/ed63f560c3eb6d4482b4008106494042bb... 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: db0bd30192bb855d04fd3cdc4795411487e62bb6 https://github.com/yast/yast-users/commit/db0bd30192bb855d04fd3cdc4795411487... 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: becb28a920f8a400ae43dbfa4a9cae48c391fc55 https://github.com/yast/yast-users/commit/becb28a920f8a400ae43dbfa4a9cae48c3... 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: 2af2e3312151e44ad86484ab6e7f96c37c262786 https://github.com/yast/yast-users/commit/2af2e3312151e44ad86484ab6e7f96c37c... 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: 53675625d23ece25aa0102b10e8788f35ab4afbc https://github.com/yast/yast-users/commit/53675625d23ece25aa0102b10e8788f35a... 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: fa5d1222b0092d8c8c47bb071de53f3352b80c1a https://github.com/yast/yast-users/commit/fa5d1222b0092d8c8c47bb071de53f3352... 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: 58557ba3d8ef5f6c2a54b00ac6e0e03c759358bb https://github.com/yast/yast-users/commit/58557ba3d8ef5f6c2a54b00ac6e0e03c75... 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. The niew InstRootFirst client is the only one in charge of reading and writing from/to Yast::UsersSimple. Commit: cae08c6f8029cc7e2f0c03e375b481110f5022e1 https://github.com/yast/yast-users/commit/cae08c6f8029cc7e2f0c03e375b481110f... 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: 4abb661dc28f97b0cf2ef04d31a527ddeace6ec1 https://github.com/yast/yast-users/commit/4abb661dc28f97b0cf2ef04d31a527ddea... 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: 4c5055592e91266fead19e1969a41650a450a6d5 https://github.com/yast/yast-users/commit/4c5055592e91266fead19e1969a41650a4... 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/f8034213ec16...4c5055592e91
participants (1)
-
David Díaz