[tor-bugs] #9060 [TorBirdy]: gpg reads .gnupg/gpg.conf

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Sep 17 20:56:32 UTC 2013


#9060: gpg reads .gnupg/gpg.conf
--------------------------+----------------------
     Reporter:  proper    |      Owner:  sukhbir
         Type:  defect    |     Status:  accepted
     Priority:  normal    |  Milestone:
    Component:  TorBirdy  |    Version:
   Resolution:            |   Keywords:
Actual Points:            |  Parent ID:
       Points:            |
--------------------------+----------------------

Comment (by sukhbir):

 OK, so given that we are no longer forcing `--throw-keyids`, let's revisit
 this ticket.

 The command line settings take precedence over the configuration file and
 I think this works well for us because we are not switching between these
 preferences anyways. We were doing so just for `--throw-keyids` but as
 pointed out, that has also changed. So if the user did have some setting
 in the configuration file, it will be overwritten by TorBirdy's settings,
 which is exactly what we want.

 The reason adrelanos had this problem when we were forcing `--throw-
 keyids` by default was that when `--throw-keyids` was disabled, we were
 not setting `--no-throw-keyids` but instead just removing the argument
 completely, and therefore the setting from the configuration file was read
 by GPG (and took precedence over our non-existent setting.) But this is no
 longer a concern now.

 There are no other options which are toggled between the configurations,
 so I think we are safe to go with the default route. If the need for this
 arises or you have some other opinion and disagree, I will merge the patch
 isis submitted.

 While I agree with the intention of the ticket, we have followed the idea
 of "forcing" all settings and not allow them to be overwritten by the user
 ones; the idea behind "we know better" is also related to that because if
 we start asking what should the user prefer -- their settings or our
 settings -- it gets tricky and we had rather live with the latter :)

 (I am still open to what you have to say though and will not close the
 ticket myself.)

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/9060#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list