From b19c716613a09c3980fa145ac045c4770d7548d1 Mon Sep 17 00:00:00 2001 From: Maciej Borzecki Date: Tue, 6 Feb 2024 14:02:57 +0100 Subject: [PATCH] console_conf/controllers: do not attempt to set user's key fingerprint In preparation for running console-conf as a strictly confined snaps, review of the existing code has shown that user's key fingerprints are not being used or displayed anywhere. Since we would not be able to read those public keys anyway, we may as well drop the code which attempts to device the key fingerprints. Signed-off-by: Maciej Borzecki --- console_conf/controllers/identity.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/console_conf/controllers/identity.py b/console_conf/controllers/identity.py index 47a45095..e2b44331 100644 --- a/console_conf/controllers/identity.py +++ b/console_conf/controllers/identity.py @@ -156,9 +156,6 @@ class IdentityController(TuiController): device_owner = get_device_owner() if device_owner: self.model.add_user(device_owner) - key_file = os.path.join(device_owner["homedir"], ".ssh/authorized_keys") - cp = run_command(["ssh-keygen", "-lf", key_file]) - self.model.user.fingerprints = cp.stdout.replace("\r", "").splitlines() return self.make_login_view() else: return IdentityView(self.model, self)