using ssh keys to connect to bazaar.launchpad.net confuses users a great deal

Bug #297398 reported by Robert Collins
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

Users often have trouble understanding ssh public/private keys, their relationship to bzr, how they work and how to set them up. It seems a particular source of pain for new users.

One way to solve this would be an oauth-like, or oauth-based authentication mechanism for bzr. (Perhaps by running against https://bazaar.launchpad.net).

See https://dev.launchpad.net/LEP/SSH_OAuth for more discussion.

Revision history for this message
Diogo Matsubara (matsubara) wrote :

Can you give an example on how this would work?

Changed in launchpad:
status: New → Incomplete
Martin Pool (mbp)
description: updated
Revision history for this message
Martin Pool (mbp) wrote : Re: support password/passphrase authentication for bazaar

example:

user runs 'bzr push lp:~johndoe/project/foo'
user has no ssh private keys, or none registered with launchpad, or has configured their client to prefer password auth
the ssh client negotiates with lp to do password authentication
ssh client prompts the user for their password, and sends it across the encrypted channel
launchpad checks the password against the database, just as when logging in over https
if the password is correct, launchpad allows the user in

Since the password is already used over https to _set_ the ssh pubkey, so in that regard the password is equally trusted.

However, if there is eg a dns-spoofing attack, and the user connects to a server that's not really launchpad (cf bug 238869), and they don't have keys configured, they will end up giving their password to that site. However, doing key based authentication would be nearly as bad because it allows a mitm attack. A better way to solve this is to make sure users can authenticate the server.

For some users it's much easier to type the password every time than to set up a key.

Changed in launchpad:
status: Incomplete → Confirmed
Revision history for this message
Jonathan Lange (jml) wrote :

Very tempted to mark this as wontfix.

Requires adding support for password authentication to the SSH server, and adding a new internal RPC method for validating the password.

Changed in launchpad-bazaar:
importance: Undecided → Low
status: Confirmed → Triaged
Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 297398] Re: support password/passphrase authentication for bazaar

On Thu, 2009-02-05 at 05:45 +0000, Jonathan Lange wrote:
> Very tempted to mark this as wontfix.
>
> Requires adding support for password authentication to the SSH server,
> and adding a new internal RPC method for validating the password.

Well, this year I'd be inclined to ask for openid support :)

-Rob

Revision history for this message
Jonathan Lange (jml) wrote : Re: support password/passphrase authentication for bazaar

That's *definitely* wontfix. With bells on.

Revision history for this message
Tim Penhey (thumper) wrote :

With respect to Martin's comment #2, I think this is a great idea, but in reality we are not likely to get to this ourselves.

If someone else came up with a fix, we'd review and land it happily, but it is unlikely it will bubble to the top of our priorities.

Changed in launchpad-code:
importance: Low → Wishlist
summary: - support password/passphrase authentication for bazaar
+ using ssh keys to connect to bazaar.launchpad.net confuses uses a great
+ deal
Changed in launchpad:
importance: Wishlist → Low
description: updated
summary: - using ssh keys to connect to bazaar.launchpad.net confuses uses a great
+ using ssh keys to connect to bazaar.launchpad.net confuses users a great
deal
tags: added: confusing-ui
Martin Pool (mbp)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.