AUR web interface

Tasklist

FS#45446 - AUR4 does not accept SSH pub key with LF chars

Attached to Project: AUR web interface
Opened by Milan Knížek (MilanKnizek) - Wednesday, 24 June 2015, 08:52 GMT
Last edited by Lukas Fleischer (lfleischer) - Saturday, 27 June 2015, 11:53 GMT
Task Type Bug Report
Category Backend
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 4.0.0-rc3
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

When I tried to provide my pub key to the new AUR4 web interface, the server refused to update the key (invalid SSH pubkey).

It appears the problem is that it cannot deal with LF chars in the key (I copied the key from Midnight Commander built-in viewer in mate-terminal). Opening in pluma (equivalent to gedit) and copying from there worked okay.

It may be usefull to add "Load from file" option to the web interface.
This task depends upon

Closed by  Lukas Fleischer (lfleischer)
Saturday, 27 June 2015, 11:53 GMT
Reason for closing:  Not a bug
Comment by Lukas Fleischer (lfleischer) - Wednesday, 24 June 2015, 11:08 GMT
I don't think that erroring out on a malformed string is a bug. It is a user error after all. Adding the possibility to upload a key file is a good idea, though...
Comment by Milan Knížek (MilanKnizek) - Wednesday, 24 June 2015, 12:33 GMT
Well, I am no expert, but I thought that SSH pub key format actually uses base64 for the key payload and that base64 can live with whatever line wrapping.

It is clear to me that the $HOME/.ssh/authorized_keys expects the keys to use just a single line, however the web interface for copy&paste is not an authorized_key file...
Comment by Johannes Löthberg (demize) - Wednesday, 24 June 2015, 12:46 GMT
For all intents and purposes it is.

Loading...