chiark / gitweb /
sshkeys: Notes about checking for non-ssh: accounts
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 May 2021 11:52:32 +0000 (12:52 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 May 2021 12:44:07 +0000 (13:44 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/bin/otter.rs
src/sshkeys.rs

index 67f57aa1491d2177cfda0d4774ef5f1572ba24a8..c3f2e94d6af95d91ad882278556df7307c33fb12 100644 (file)
@@ -4,6 +4,8 @@
 
 #![allow(unused_imports)]
 
+// xxx ssh keys: need a force option to set key for non ssh: account
+
 use otter::imports::*;
 
 use std::cell::Cell;
index 05949a87ea4e13ec018dd40b3d6c80dc4f6bbd1b..68f1ebcf4f03b61b6d5eb4fd4e94c764378ee233 100644 (file)
@@ -182,6 +182,10 @@ macro_rules! def_pskeys_get {
         if ! record.account.subaccount.is_empty() {
           throw!(ME::NoSshKeysForSubaccount)
         }
+        // We do *not* check that the account is of scope kind Ssh.
+        // Installing ssh keys for other scopes is fine.
+        // otter(1) will check this.
+
         & $($mut)? record.ssh_keys
       }
     }