Page MenuHomePhorge

D25508.1734631829.diff
No OneTemporary

D25508.1734631829.diff

diff --git a/src/applications/auth/sshkey/PhabricatorAuthSSHPublicKey.php b/src/applications/auth/sshkey/PhabricatorAuthSSHPublicKey.php
--- a/src/applications/auth/sshkey/PhabricatorAuthSSHPublicKey.php
+++ b/src/applications/auth/sshkey/PhabricatorAuthSSHPublicKey.php
@@ -55,11 +55,15 @@
list($type, $body, $comment) = $parts;
+ // The only goal is to prevent user error by nonsense input.
+ // This is just a meaningful subset from 'ssh -Q key'.
$recognized_keys = array(
'ssh-dsa',
'ssh-dss',
'ssh-rsa',
'ssh-ed25519',
+ 'sk-ssh-ed25519@openssh.com',
+ 'sk-ecdsa-sha2-nistp256@openssh.com',
'ecdsa-sha2-nistp256',
'ecdsa-sha2-nistp384',
'ecdsa-sha2-nistp521',

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 19, 18:10 (1 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015122
Default Alt Text
D25508.1734631829.diff (745 B)

Event Timeline