[yast/yast-users] 184213: Fix authorized_keys creation by setting right perms
Branch: refs/heads/bsc-1188361 Home: https://github.com/yast/yast-users Commit: 184213302372e352a34c38f70cd7166c50108a31 https://github.com/yast/yast-users/commit/184213302372e352a34c38f70cd7166c50... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-07-20 (Tue, 20 Jul 2021) Changed paths: M src/lib/users/ssh_authorized_keyring.rb Log Message: ----------- Fix authorized_keys creation by setting right perms Commit: e34c0e111985ae7e3dd26c981fd958b60427f51a https://github.com/yast/yast-users/commit/e34c0e111985ae7e3dd26c981fd958b604... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-07-20 (Tue, 20 Jul 2021) Changed paths: M src/lib/users/ssh_authorized_keyring.rb M test/lib/users/ssh_authorized_keyring_test.rb Log Message: ----------- Do not add duplicated authorized keys Commit: 59f98c07e456e1c24199e37ce638942281ed31e2 https://github.com/yast/yast-users/commit/59f98c07e456e1c24199e37ce638942281... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-07-20 (Tue, 20 Jul 2021) Changed paths: M test/lib/users/ssh_authorized_keyring_test.rb Log Message: ----------- Add missing unit test Commit: defb8938d84c6830f59150644508b8a5fbdc7989 https://github.com/yast/yast-users/commit/defb8938d84c6830f59150644508b8a5fb... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-07-20 (Tue, 20 Jul 2021) Changed paths: M src/lib/users/ssh_authorized_keys_file.rb M test/lib/users/ssh_authorized_keys_file_test.rb Log Message: ----------- Do not log warnings for comments and empty lines When SSHAuthorizedKeysFile#keys hold keys read by SSHAuthorizedKeyring#read_keys, it could include comments or empty lines too, which are valid but ignored authorized_keys entries (see sshd(8) man page). Thus, it's useless to log warnings about them. Only not valid keys deserve an entry in the logs. Compare: https://github.com/yast/yast-users/compare/95d2550acd30...defb8938d84c
participants (1)
-
David Díaz