Page MenuHomePhorge

D25508.1736454640.diff
No OneTemporary

D25508.1736454640.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, Jan 9, 20:30 (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1108767
Default Alt Text
D25508.1736454640.diff (745 B)

Event Timeline