Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 624262 - Making Gentoo Bugzilla instance secure enough to handle embargoed issues
Summary: Making Gentoo Bugzilla instance secure enough to handle embargoed issues
Status: CONFIRMED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bugzilla Admins
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-08 14:45 UTC by Kristian Fiskerstrand
Modified: 2018-05-25 20:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kristian Fiskerstrand gentoo-dev Security 2017-07-08 14:45:58 UTC
As discussed with robbat2 and the security@ alias, making a bug to better track this issue.

Background:
===========
Bugzilla isn't secure to use for embargoed issues, as email notification is sent out in clear irrespective of restrictions put in place for group. Gentoo further allows developers to forward emails off of Gentoo infrastructure, so a secure environment is not guranteed for all developers.

In theory Bugzilla supports OpenPGP, in reality it doesnt:
----------------------------------------------------------
Borrowing the text from [this year's GSoC proposal]:
Currently the OpenPGP bugzilla support is defunct in at least three ways:

    It encrypts to the first public key it considers viable[1], not respecting usage flags[2], leading to scenarios where the message is un-decryptable
    There is no mechanism for refreshing public keys from known public sources (e.g HKP keyservers) leading to a situation where subkey rotation or changers to primary certificate (e.g due to expiry or revocation) is not picked up automatically and needs to be manually adjusted, failure to do so can lead to encryption to a known non-viable certificate
    There is no group definition where multiple public keys can be assigned e.g to an alias account (security@) in bugzilla.

Having support for OpenPGP is necessary to retain confidentiality of restricted bugs in bugzilla, a lack of this results in information leakage. Alternatively, bug emails for group restricted bugs should not include metadata or data that can identify the issue, but merely report e.g "bug XXX has been updated, please log in to see the changes" 

Discussion about solution
=========================
Recapping some of the email discussion for archiving purposes:
 * We should try to make a generic solution that can be upstreamed, not only a gentoo specific one
 * Users should be able to provide fingerprint of OpenPGP public keyblock in bugzilla interface
 * We already have fingerprint for devs in LDAP, we can use this to populate Bugzilla information for devs
 * Bugzilla OpenPGP store needs to be able to be refreshed to get information about revoked keyblocks
 * Refresh functionality should be configurable, there might be installations that do not want this feature, but default should be on.
 * Failing to find a usable public keyblock to encrypt any message to should result in no email notification being sent to that user
 * [MemoryHole] is needed if information other than bug ID provided in Subject

... I've probably forgotten something trying to summarize here, but lets not forget this at least...

References:
[this year's GSoC proposal]
https://wiki.gentoo.org/wiki/Google_Summer_of_Code/2017/Ideas#Improve_OpenPGP_support_for_bugzilla

[MemoryHole]
http://modernpgp.org/memoryhole/
https://wiki.gnupg.org/OpenPGPEmailSummit201607/MemoryHole

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=790487
[2] http://tools.ietf.org/html/rfc4880#section-5.2.3.21
Comment 1 Kristian Fiskerstrand gentoo-dev Security 2018-05-25 20:09:32 UTC
Promising comment on https://bugzilla.mozilla.org/show_bug.cgi?id=790487#c16 :
"This bug may have been resolved by the Securemail update last week. If anyone following along can verify whether it has or not, that would be very useful to know."