After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 157818 - Keyserver support
Keyserver support
Status: RESOLVED FIXED
Product: seahorse
Classification: Applications
Component: general
0.7.x
Other Linux
: Normal enhancement
: ---
Assigned To: Seahorse Maintainer
Seahorse Maintainer
Depends on: 159083 159918
Blocks:
 
 
Reported: 2004-11-10 02:45 UTC by Stef Walter
Modified: 2005-07-03 14:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch with basic underlying support (86.01 KB, patch)
2004-11-10 02:46 UTC, Stef Walter
none Details | Review
Key search results window (18.27 KB, image/png)
2004-11-21 04:55 UTC, Stef Walter
  Details
Key search dialog (13.67 KB, image/png)
2004-11-21 04:55 UTC, Stef Walter
  Details
Updated patch for keyserver support (112.88 KB, patch)
2004-11-27 22:25 UTC, Stef Walter
none Details | Review
Screenshot of partially working key server support (161.31 KB, image/png)
2004-11-28 02:14 UTC, Stef Walter
  Details
Patch with working (but rough) key server search support (123.83 KB, patch)
2004-11-28 02:17 UTC, Stef Walter
committed Details | Review
Adds return keypress functionality to the entry field (1.66 KB, patch)
2005-01-23 02:40 UTC, Adam Schreiber
committed Details | Review
re-adds the press return to search functionality (1.01 KB, patch)
2005-06-20 02:19 UTC, Adam Schreiber
accepted-commit_now Details | Review

Description Stef Walter 2004-11-10 02:45:07 UTC
I've been working on keyserver support for seahorse. This bug will track progress.
Comment 1 Stef Walter 2004-11-10 02:46:47 UTC
Created attachment 33625 [details] [review]
Patch with basic underlying support

This patch contains nearly complete underlying support for keyservers.
Keyservers are accessed using the gpgkeys_* plugins similar to how GPA does it.


The code has not been debugged or tested. I'm posting it here so people can
look at it and possibly contribute comments or ideas.
Comment 2 Adam Schreiber 2004-11-10 17:51:52 UTC
In libseahorse/gpgmex-keyserver.c, there is a list of #defines from GPG's
include/keyserver.h.  If GPG changes those defines, will something critically
break to let us know they need to be changed?  Or can it break in a way that
lets someone know they need to be changed?

There are a lot of files that only have #include <gpgmex.h> added, but none of
the functions in the C file have changed names, while in gpgmex.h, the functions
have changed names.  Is this because they only use a Macro from gpgmex.h that
hasn't changed names, or will this patch not compile? 
Comment 3 Stef Walter 2004-11-10 18:14:24 UTC
Thanks for taking a look. Yes, the return values from the gpgkeys_* plugins are
copied from gpg. Actually this is how GPA does it. They aren't exposed anywhere
in the gpg headers or anything, which is a shame. Perhaps we could request this
change in gpg. 

Yes, I moved the GPG_IS_OK, GPG_E and other macros to gpgmex.h. I'm thinking
that gpgmex is where we'll put our extensions to GPGME. Perhaps I should name it
seahorse-gpgmex.h. These features should really belong in GPGME, and perhaps the
GPG developers will see fit to include them at some point. 
Comment 4 Stef Walter 2004-11-11 17:46:58 UTC
Committed all the basic GPGMEX code. 
Comment 5 Stef Walter 2004-11-21 04:55:12 UTC
Created attachment 33970 [details]
Key search results window

Mockup of key search results window.
Comment 6 Stef Walter 2004-11-21 04:55:47 UTC
Created attachment 33971 [details]
Key search dialog

Mockup of keyserver search dialog.
Comment 7 Adam Schreiber 2004-11-21 14:20:59 UTC
When displaying the key search results, have we already downloaded all of the
keys and haven't imported them yet?  If we haven't, what shows up in the
properties dialog when you click the properies button?  Do we need that button?
Comment 8 Stef Walter 2004-11-21 17:52:58 UTC
You're right, we haven't imported them yet. But we do get information from the
server such as:

- subkeys
- userids
- expiry date
- revoked status
- expired status

etc.... My thought was to display the Properties dialog but disable or remove
all the fields that we don't have yet (before importing).

WDYT?
Comment 9 Adam Schreiber 2004-11-21 18:00:03 UTC
I think the properties dialog with some of the fields disabled would work.  It
might be appropriate to place much of this information in the key search results
window, much like the regular key manager window does.  For instance, we could
have columns such as:

Name(includes main userid and email address), Key ID, Expiration Date(add a
revoked identifier to the expiration date and expired fields of this column), #
of subkeys.

Then, if more information was desired they could click on properties.  I'm not
sure that properties is such a good term.  Maybe "Key Information"?  I do
realize that is how we use properties normally though.
Comment 10 Stef Walter 2004-11-21 18:08:47 UTC
I think that we should show the same colums as the user has visible in the key
manager window. The only column that doesn't apply is 'Validity' and that could
either be hidden, or set to 'Unknown'.

Comment 11 Adam Schreiber 2004-11-21 18:46:03 UTC
Agreed.
Comment 12 Stef Walter 2004-11-22 03:59:13 UTC
A list of all the basic operations possible on a keyserver search results window. 

IMPORT FEATURES
- Import to local keyring (menu item/ctx menu)
- Drag and drop to local keyring window

EXPORT FEATURES
- Copy key to clipboard
- Save Key As... (menu item/ctx menu)
- Drag and drop to nautilus

UPLOAD FEATURES
- Drag and drop from nautilus
- Paste key from clipboard
- Upload key ... (menu item)

OTHER
- Key Properties
- Key search (starts a new search)

Missing anything?
Comment 13 Adam Schreiber 2004-11-22 04:19:21 UTC
Not that I can think of right now.  We will want to add some of the upload
functions to the regular key manager window.  

Additionally in the normal key manager window, we'll want to be able to select
one or more keys and update them from a keyserver.  There ought to be an update
all keys option as well. 
Comment 14 Stef Walter 2004-11-22 17:39:54 UTC
Yes, those would be in the main window. Along with a 'search for remote keys' or
some such option. 

MAIN WINDOW KEY SERVER FEATURES
- Search for Remote Keys
- Upload to Keyserver (selected keys)
- Update from Keyserver (selected/all keys)

Comment 15 José Carlos García Sogo 2004-11-23 22:08:47 UTC
 I really don't get used to bugzilla... BTS is nicer! ;-)

 Only one point: I don't see the need for being able to upload a key you have
just searched for using the new dialog. IMO, upload should be only in main
window, as you upload keys from your public keyring to the server.

 Nice work!
Comment 16 Stef Walter 2004-11-27 22:21:31 UTC
True 'upload' should only be found in the main window.

BTW, I'm thinking of removing 'Delete' from the main window toolbar and
replacing it with the key server search item. Reasons:

- Deleting a key is less frequent action
- Deleting a key is context sensitive (as are some other toolbar items, 
  but this is a stroke against it)
- We need to encourage others to use key servers in order to perpetuate 
  the web of trust thingy.
- Need to limit our toolbar items.

Comment 17 Stef Walter 2004-11-27 22:25:54 UTC
Created attachment 34199 [details] [review]
Updated patch for keyserver support

Updated patch. Includes keyserver search dialog code.
Comment 18 Stef Walter 2004-11-28 02:14:43 UTC
Created attachment 34206 [details]
Screenshot of partially working key server support

Many rough edges, but key server support is coming along.
Comment 19 Stef Walter 2004-11-28 02:17:05 UTC
Created attachment 34207 [details] [review]
Patch with working (but rough) key server search support

It runs, and searches a key server without much fanfare (or even progress
updates :)
Comment 20 Stef Walter 2004-11-29 00:51:24 UTC
Committed initial keyserver support. Currently only supports searching, you
can't do anything else with the keys.
Comment 21 Adam Schreiber 2005-01-23 02:40:53 UTC
Created attachment 36403 [details] [review]
Adds return keypress functionality to the entry field

It was anoying me that pressing return in the entry field of the search dialog
didn't start the search.  This patch only adjusts the glade file to add an
accelerator and map it to the ok_clicked handler the search button uses.
Comment 22 Adam Schreiber 2005-01-25 02:54:29 UTC
I noticed today that me cvs build sucessfully imported keys from a keyserver. 
Is this something new you, Nate, committed?  How hard would it be to get
exporting to a server working if import does indeed work?
Comment 23 Stef Walter 2005-02-04 18:08:34 UTC
The export code is all there but building it into the UI requires the progress
dialog support.
Comment 24 Stef Walter 2005-04-06 01:09:38 UTC
Completed LDAP key server support today. Publish and Sync works. 
Comment 25 Adam Schreiber 2005-06-20 02:19:19 UTC
Created attachment 48026 [details] [review]
re-adds the press return to search functionality

I think this was lost when the dialog was changed to include selecting
keyservers and DNS_SD servers.
Comment 26 Stef Walter 2005-07-02 21:36:18 UTC
Looks good to commit to HEAD. I'll do something similar on the stable branch.
This patch doesn't apply because the dialog has changed. 
Comment 27 Adam Schreiber 2005-07-03 14:44:47 UTC
Committed to HEAD.