)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"28c56a2bdd85f717ab9baf048a58107d719852db","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"There\u0027s still one open question; once that\u0027s hashed out, we can remove"},{"line_number":10,"context_line":"the \"draft\" label and review it for real."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I9adcd8979af8f1d0ebd912c503ae36a8041ed32d"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"baa201ad_f6939458","line":11,"updated":"2014-10-06 19:57:46.000000000","message":"Add \u0027SecurityImpact\u0027 to garner attention from others interested in OpenStack\u0027s security.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"4afd53d6d556871ab15d931c3359f19ada8db780","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"There\u0027s still one open question; once that\u0027s hashed out, we can remove"},{"line_number":10,"context_line":"the \"draft\" label and review it for real."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I9adcd8979af8f1d0ebd912c503ae36a8041ed32d"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"baa201ad_53d799ed","line":11,"in_reply_to":"baa201ad_f6939458","updated":"2014-10-10 10:07:13.000000000","message":"I just came here to drop the same comment. However I\u0027ll send an email directly to the OSSG.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"821a9d106afed65f9ac58a185287f8ad3c6743b7","unresolved":false,"context_lines":[{"line_number":12,"context_line":"This spec revises the \"spec for on-disk encryption\" here"},{"line_number":13,"context_line":"  https://review.openstack.org/#/c/123220/"},{"line_number":14,"context_line":"and extends the security model and the design. It also takes"},{"line_number":15,"context_line":"into account some of the discussion there."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"For relevant background, see also the earlier blueprint"},{"line_number":18,"context_line":"  https://blueprints.launchpad.net/swift/+spec/swift-enc-proxy"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"baa201ad_d5644a4b","line":15,"updated":"2014-10-10 13:40:09.000000000","message":"This reference is no longer needed.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"}],"specs/in_progress/at_rest_encryption.rst":[{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"a6572b1817b5738d45ce90f060f494b3cd34cee9","unresolved":false,"context_lines":[{"line_number":234,"context_line":"at all. To that end, it should be deliberately kept as small as"},{"line_number":235,"context_line":"possible without regard for any actual security of the keys."},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"Perhaps the trivial keymaster could use the SHA-256 of a configurable"},{"line_number":238,"context_line":"prefix concatenated with the object\u0027s full path for the cryptographic"},{"line_number":239,"context_line":"key. That is,::"},{"line_number":240,"context_line":""}],"source_content_type":"text/x-rst","patch_set":11,"id":"5a890539_e09f7501","line":237,"updated":"2014-11-21 13:01:50.000000000","message":"There is a new Key Manager library called Castellan. This is how we will be integrating with Nova and Cinder. The initial code for the library will be pulled from Cinder. I included some links below.\n\nKeyManager code in Cinder:\nhttps://github.com/openstack/cinder/blob/master/cinder/keymgr/key_mgr.py\n\nTesting KeyManager:\nhttps://github.com/openstack/cinder/blob/master/cinder/keymgr/conf_key_mgr.py\n\nCastellan repo -- just a shell now but will contain code under keymgr package from Cinder as initial cut:\nhttps://github.com/cloudkeep/castellan\n\nCR to add Castellan to infra:\nhttps://review.openstack.org/#/c/136140","commit_id":"97ecc00b898e0b578c352f747320d2f1863a5149"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"2f6949db82bdccc0fc316ee4fa26f8cb36240818","unresolved":false,"context_lines":[{"line_number":298,"context_line":"the middleware pipeline to see plaintext user metadata."},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"Both metadata names and values will be encrypted. Leaving"},{"line_number":301,"context_line":"\"X-Object-Sysmeta-UM-Preferred-Contraband-Vendor: Y7JF30oF5TXTeEIqOu8\u003d\""},{"line_number":302,"context_line":"on disk is just not good enough."},{"line_number":303,"context_line":""},{"line_number":304,"context_line":"Further, the object\u0027s plaintext etag and content type are sensitive"}],"source_content_type":"text/x-rst","patch_set":11,"id":"5a890539_aaf7da8a","line":301,"updated":"2014-12-03 13:46:29.000000000","message":"I\u0027m not sure if the X-Object-Sysmeta- prefix is a mistake here (should be X-Object-Meta) or whether you are thinking that X-Object-Sysmeta-UM is a namespace to which user meta keys are mapped. Is it the latter?","commit_id":"97ecc00b898e0b578c352f747320d2f1863a5149"}],"specs/swift/at_rest_encryption.rst":[{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"306cd2cf1c0221c4bdf332fe0ec1a0dd4f326066","unresolved":false,"context_lines":[{"line_number":48,"context_line":"There are other ways to attack a Swift cluster, but this spec does not"},{"line_number":49,"context_line":"address them. In particular, this spec does not address these threats:"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"  * an attacker gains root access to the Swift nodes"},{"line_number":52,"context_line":"  * an attacker compromises the key database"},{"line_number":53,"context_line":"  * an attacker modifies Swift\u0027s code (on the Swift nodes) for evil"},{"line_number":54,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aa7fdbe_c4936e4d","line":51,"updated":"2014-10-22 22:12:30.000000000","message":"In the threat model above it seems like this would be part of the threat model. It sounds like proxy will encrypt and then send to Swift nodes. Having root access to Swift nodes should be ok, but not to the proxy. Is that true?","commit_id":"052b591d53953600d40c5d9fd4e93dc2b0ab6b71"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"b15b670114b01cc5c4cdea6ff51d2c7243560733","unresolved":false,"context_lines":[{"line_number":48,"context_line":"There are other ways to attack a Swift cluster, but this spec does not"},{"line_number":49,"context_line":"address them. In particular, this spec does not address these threats:"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"  * an attacker gains root access to the Swift nodes"},{"line_number":52,"context_line":"  * an attacker compromises the key database"},{"line_number":53,"context_line":"  * an attacker modifies Swift\u0027s code (on the Swift nodes) for evil"},{"line_number":54,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aa7fdbe_106ade80","line":51,"in_reply_to":"9aa7fdbe_c4936e4d","updated":"2014-10-24 15:11:04.000000000","message":"+1","commit_id":"052b591d53953600d40c5d9fd4e93dc2b0ab6b71"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"b15b670114b01cc5c4cdea6ff51d2c7243560733","unresolved":false,"context_lines":[{"line_number":49,"context_line":"address them. In particular, this spec does not address these threats:"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"  * an attacker gains root access to the Swift nodes"},{"line_number":52,"context_line":"  * an attacker compromises the key database"},{"line_number":53,"context_line":"  * an attacker modifies Swift\u0027s code (on the Swift nodes) for evil"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"If these threats are mitigated at all, it is a fortunate byproduct, but it is"}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aa7fdbe_70332aab","line":52,"updated":"2014-10-24 15:11:04.000000000","message":"Clearly outside the scope of this specification, but compromising the key database should not directly impact the security of the objects themselves. Swift\u0027s access controls should provide a layer of defense -- i.e., just because an attacker has an encryption key, the attacker still needs to retrieve the encrypted object.","commit_id":"052b591d53953600d40c5d9fd4e93dc2b0ab6b71"},{"author":{"_account_id":2696,"name":"Darrell Bishop","email":"dbishop@nvidia.com","username":"darrellb"},"change_message_id":"7890642a930b0ed9a157be457b2b5e8ebc478c1e","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":"  * an attacker gains root access to the Swift nodes"},{"line_number":52,"context_line":"  * an attacker compromises the key database"},{"line_number":53,"context_line":"  * an attacker modifies Swift\u0027s code (on the Swift nodes) for evil"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"If these threats are mitigated at all, it is a fortunate byproduct, but it is"},{"line_number":56,"context_line":"not the intent of this spec to address them."}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aa7fdbe_2ff97380","line":53,"updated":"2014-10-23 13:57:40.000000000","message":"\"Swift\u0027s code (on the proxy nodes) for evil\"","commit_id":"052b591d53953600d40c5d9fd4e93dc2b0ab6b71"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"306cd2cf1c0221c4bdf332fe0ec1a0dd4f326066","unresolved":false,"context_lines":[{"line_number":71,"context_line":"responsible for retrieving key material for the crypto engine. Swift"},{"line_number":72,"context_line":"will support a variety of key-material retrievers, called"},{"line_number":73,"context_line":"\"keymasters\", via Python\u0027s entry-points mechanism. Typically, a Swift"},{"line_number":74,"context_line":"cluster will use only one keymaster."},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"2.1 Request Path"},{"line_number":77,"context_line":"----------------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aa7fdbe_c4ba8ebf","line":74,"updated":"2014-10-22 22:12:30.000000000","message":"Is this spec proposing supporting multiple key masters or only one?","commit_id":"052b591d53953600d40c5d9fd4e93dc2b0ab6b71"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"306cd2cf1c0221c4bdf332fe0ec1a0dd4f326066","unresolved":false,"context_lines":[{"line_number":82,"context_line":"keymaster filter shall sit between them. Example::"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"    [pipeline:main]"},{"line_number":85,"context_line":"    pipeline \u003d catch_errors gatekeeper ... decrypter keymaster encrypter proxy-logging proxy-server"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"The encrypter middleware is responsible for encrypting the object\u0027s"},{"line_number":88,"context_line":"data and metadata on a PUT or POST request. Additionally, it computes"}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aa7fdbe_84eec6b2","line":85,"updated":"2014-10-22 22:12:30.000000000","message":"I think our goal should be to minimize the time and availability of the encryption keys. By putting it directly with the encryptor and decryptor we can minimize it.","commit_id":"052b591d53953600d40c5d9fd4e93dc2b0ab6b71"},{"author":{"_account_id":13556,"name":"Nikola Knezevic","email":"kne@zurich.ibm.com","username":"kne"},"change_message_id":"0d11c109867712035e3291ea67ae33a3566592aa","unresolved":false,"context_lines":[{"line_number":131,"context_line":"validating any Etag header sent by the client on a PUT request; the"},{"line_number":132,"context_line":"Etag header\u0027s value is the MD5 hash of the uploaded object data. With"},{"line_number":133,"context_line":"encrypted objects, the plaintext is not available to the object"},{"line_number":134,"context_line":"server, so the encrypter must perform the validation instead."},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"2.2 Inter-Middleware Communication"},{"line_number":137,"context_line":"----------------------------------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a8c0949_58220b02","line":134,"updated":"2014-11-10 08:44:29.000000000","message":"What about using the same approach as EC is doing? encryptor middleware add X-Sysmeta-Enc-Etag header with the md5sum of the plaintext, and decryptor returns this header whenever it needs to send it to the client. This would allow for a nice composition of EC and Enc, plus w/e comes next.","commit_id":"052b591d53953600d40c5d9fd4e93dc2b0ab6b71"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"b15b670114b01cc5c4cdea6ff51d2c7243560733","unresolved":false,"context_lines":[{"line_number":169,"context_line":"object auditor will obtain the object\u0027s key or some other key and use"},{"line_number":170,"context_line":"it to authenticate the stored MD5 hash prior to reading the object\u0027s"},{"line_number":171,"context_line":"contents; this way, objects placed in the system by an attacker will"},{"line_number":172,"context_line":"be detected and quarantined."},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"Note that this is a relatively resource-inexpensive addition to the"},{"line_number":175,"context_line":"object auditor, which is good because the object auditor is one of the"}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aa7fdbe_045d4315","line":172,"updated":"2014-10-24 15:11:04.000000000","message":"This design extends trust to the object auditor. Is it feasible to store the MD5 hash of the *encrypted* object so the auditor need not worry about the existence of encryption?","commit_id":"052b591d53953600d40c5d9fd4e93dc2b0ab6b71"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"306cd2cf1c0221c4bdf332fe0ec1a0dd4f326066","unresolved":false,"context_lines":[{"line_number":185,"context_line":""},{"line_number":186,"context_line":"The cryptographic algorithm will be configurable, though Swift will"},{"line_number":187,"context_line":"only allow \"good\" algorithms to be chosen (e.g. AES-256 is in, DES is"},{"line_number":188,"context_line":"out). The choice will be restricted to symmetric ciphers."},{"line_number":189,"context_line":""},{"line_number":190,"context_line":"Similarly, the choice of authentication function will be configurable."},{"line_number":191,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aa7fdbe_844a46aa","line":188,"updated":"2014-10-22 22:12:30.000000000","message":"I like that it can be configurable, but I would like for any algorithm to be chosen.","commit_id":"052b591d53953600d40c5d9fd4e93dc2b0ab6b71"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"b15b670114b01cc5c4cdea6ff51d2c7243560733","unresolved":false,"context_lines":[{"line_number":185,"context_line":""},{"line_number":186,"context_line":"The cryptographic algorithm will be configurable, though Swift will"},{"line_number":187,"context_line":"only allow \"good\" algorithms to be chosen (e.g. AES-256 is in, DES is"},{"line_number":188,"context_line":"out). The choice will be restricted to symmetric ciphers."},{"line_number":189,"context_line":""},{"line_number":190,"context_line":"Similarly, the choice of authentication function will be configurable."},{"line_number":191,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aa7fdbe_a497178f","line":188,"in_reply_to":"9aa7fdbe_844a46aa","updated":"2014-10-24 15:11:04.000000000","message":"+1 The designation of \"good\" algorithms seems like it would be open to (endless) debate.","commit_id":"052b591d53953600d40c5d9fd4e93dc2b0ab6b71"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"306cd2cf1c0221c4bdf332fe0ec1a0dd4f326066","unresolved":false,"context_lines":[{"line_number":187,"context_line":"only allow \"good\" algorithms to be chosen (e.g. AES-256 is in, DES is"},{"line_number":188,"context_line":"out). The choice will be restricted to symmetric ciphers."},{"line_number":189,"context_line":""},{"line_number":190,"context_line":"Similarly, the choice of authentication function will be configurable."},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"In order to allow for ranged GET requests, the cipher shall be used"},{"line_number":193,"context_line":"in counter (CTR) mode."}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aa7fdbe_048816e6","line":190,"updated":"2014-10-22 22:12:30.000000000","message":"+1","commit_id":"052b591d53953600d40c5d9fd4e93dc2b0ab6b71"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"b15b670114b01cc5c4cdea6ff51d2c7243560733","unresolved":false,"context_lines":[{"line_number":190,"context_line":"Similarly, the choice of authentication function will be configurable."},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"In order to allow for ranged GET requests, the cipher shall be used"},{"line_number":193,"context_line":"in counter (CTR) mode."},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"The entire object shall be encrypted as a single byte stream; it will"},{"line_number":196,"context_line":"not be sliced up into pieces that can be separately authenticated."}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aa7fdbe_64a9af8f","line":193,"updated":"2014-10-24 15:11:04.000000000","message":"I\u0027m not a cryptography expert, but it seems like other modes would also allow ranged GET requests (with minimal overhead). If incorrect, an explanation would be beneficial. Otherwise, why restrict the cipher mode?","commit_id":"052b591d53953600d40c5d9fd4e93dc2b0ab6b71"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"b15b670114b01cc5c4cdea6ff51d2c7243560733","unresolved":false,"context_lines":[{"line_number":193,"context_line":"in counter (CTR) mode."},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"The entire object shall be encrypted as a single byte stream; it will"},{"line_number":196,"context_line":"not be sliced up into pieces that can be separately authenticated."},{"line_number":197,"context_line":"This is also necessary for ranged GET requests."},{"line_number":198,"context_line":""},{"line_number":199,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aa7fdbe_a47d571e","line":196,"updated":"2014-10-24 15:11:04.000000000","message":"Why restrict the implementation? That is, why is encryption as a single byte stream preferable?","commit_id":"052b591d53953600d40c5d9fd4e93dc2b0ab6b71"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"b15b670114b01cc5c4cdea6ff51d2c7243560733","unresolved":false,"context_lines":[{"line_number":214,"context_line":"the block size and operating characteristics of every single supported"},{"line_number":215,"context_line":"cipher/blocksize/mode. Besides the network overhead (especially for"},{"line_number":216,"context_line":"small byteranges), the complexity of the resulting code would make it"},{"line_number":217,"context_line":"an excellent home for bugs."},{"line_number":218,"context_line":""},{"line_number":219,"context_line":""},{"line_number":220,"context_line":"3.3. Justification of Authentication Boundary"}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aa7fdbe_44674b4d","line":217,"updated":"2014-10-24 15:11:04.000000000","message":"Nice explanation.","commit_id":"052b591d53953600d40c5d9fd4e93dc2b0ab6b71"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"b15b670114b01cc5c4cdea6ff51d2c7243560733","unresolved":false,"context_lines":[{"line_number":223,"context_line":"Were Swift to divide objects into individually-authenticated slices,"},{"line_number":224,"context_line":"then on a ranged GET request, the requested byteranges would have to"},{"line_number":225,"context_line":"be expanded to fetch whole slices. Simple shifting would not work"},{"line_number":226,"context_line":"since not every object in a cluster is necessarily encrypted."},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"Worse, if the slice size were configurable, then ranged GET requests"},{"line_number":229,"context_line":"would drastically drop in efficiency. Were a client to request bytes"}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aa7fdbe_04538339","line":226,"updated":"2014-10-24 15:11:04.000000000","message":"I probably don\u0027t understand the internals of Swift correctly, but why does the encryption of every object matter? Based on the API documentation, it seems like the range pertains to a specific object only.","commit_id":"052b591d53953600d40c5d9fd4e93dc2b0ab6b71"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"306cd2cf1c0221c4bdf332fe0ec1a0dd4f326066","unresolved":false,"context_lines":[{"line_number":270,"context_line":"If the keymaster hands back a different key for decryption than was"},{"line_number":271,"context_line":"used for encryption, the client will receive garbage. To prevent this,"},{"line_number":272,"context_line":"the encrypter will use authenticated encryption (either with the"},{"line_number":273,"context_line":"object\u0027s key or with a key derived from it) to store the original"},{"line_number":274,"context_line":"object\u0027s etag. This is not something the keymaster should ever do, of"},{"line_number":275,"context_line":"course, but bugs happen."},{"line_number":276,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aa7fdbe_84f8864a","line":273,"updated":"2014-10-22 22:12:30.000000000","message":"I\u0027m not sure which approach you plan to do?","commit_id":"052b591d53953600d40c5d9fd4e93dc2b0ab6b71"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"306cd2cf1c0221c4bdf332fe0ec1a0dd4f326066","unresolved":false,"context_lines":[{"line_number":302,"context_line":"5.2 Keymasters in Core Swift"},{"line_number":303,"context_line":"----------------------------"},{"line_number":304,"context_line":""},{"line_number":305,"context_line":"5.2.1 Trivial Keymaster"},{"line_number":306,"context_line":"^^^^^^^^^^^^^^^^^^^^^^^"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"Swift will need a trivial keymaster for functional tests of the crypto"}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aa7fdbe_24b19a8f","line":305,"updated":"2014-10-22 22:12:30.000000000","message":"Check out Cinder to look at the KeyManager interface. That is how we integrated Barbican into Cinder. It also contains default KeyManager that can be used for testing. I think this would speed up your process and make it more consistent across the projects. There is a CR in Nova to integrate this as well.\n\nWe are looking to either put this into Oslo or start a new library for it.","commit_id":"052b591d53953600d40c5d9fd4e93dc2b0ab6b71"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"b15b670114b01cc5c4cdea6ff51d2c7243560733","unresolved":false,"context_lines":[{"line_number":361,"context_line":""},{"line_number":362,"context_line":"Not only the contents of an object are sensitive; metadata is"},{"line_number":363,"context_line":"sensitive too. User metadata will be encrypted with the same key and"},{"line_number":364,"context_line":"IV as the rest of the metadata. Since metadata values must be valid"},{"line_number":365,"context_line":"UTF-8 strings, the encrypted values will be suitably encoded (probably"},{"line_number":366,"context_line":"base64) for storage. In order to preserve the current user-metadata"},{"line_number":367,"context_line":"length limits despite the bloat caused by encoding, the encrypter will"}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aa7fdbe_677a9178","line":364,"updated":"2014-10-24 15:11:04.000000000","message":"\"...rest of the metadata\" -\u003e \"...rest of the object\"?","commit_id":"052b591d53953600d40c5d9fd4e93dc2b0ab6b71"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"af8ca553bfd93be90fe96c801b9b513a4d7add1b","unresolved":false,"context_lines":[{"line_number":367,"context_line":"length limits despite the bloat caused by encoding, the encrypter will"},{"line_number":368,"context_line":"actually store the ciphertext of the user\u0027s metadata values in system"},{"line_number":369,"context_line":"metadata. That way, users don\u0027t see lower metadata-size limits when"},{"line_number":370,"context_line":"encryption is in use."},{"line_number":371,"context_line":""},{"line_number":372,"context_line":"This means that the encrypter is responsible for enforcing"},{"line_number":373,"context_line":"user-metadata limits on encrypted objects, as it is the last entity in"}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aa7fdbe_835d37ef","line":370,"updated":"2014-10-29 18:30:57.000000000","message":"IF we are ever to support updateable user metadata then presumably each user metadata item would need to be preserved as a separate [enc(key),enc(value)] pair so that the object server could manipulate them, as opposed to serializing them all into a single encrypted sysmeta blob?","commit_id":"052b591d53953600d40c5d9fd4e93dc2b0ab6b71"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"af8ca553bfd93be90fe96c801b9b513a4d7add1b","unresolved":false,"context_lines":[{"line_number":371,"context_line":""},{"line_number":372,"context_line":"This means that the encrypter is responsible for enforcing"},{"line_number":373,"context_line":"user-metadata limits on encrypted objects, as it is the last entity in"},{"line_number":374,"context_line":"the middleware pipeline to see plaintext user metadata."},{"line_number":375,"context_line":""},{"line_number":376,"context_line":"Both metadata names and values will be encrypted. Leaving"},{"line_number":377,"context_line":"\"X-Object-Sysmeta-UM-Preferred-Cocaine-Vendor: Y7JF30oF5TXTeEIqOu8\u003d\""}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aa7fdbe_c025755d","line":374,"updated":"2014-10-29 18:30:57.000000000","message":"If we move the metadata constraints checks ahead of the encryptor (e.g. to gatekeeper) could we then avoid packing the encrypted user metadata into sysmeta?\n\nOr, introduce an X-Backend-Relax-Constraints header that causes the proxy to, well, relax the constraints.","commit_id":"052b591d53953600d40c5d9fd4e93dc2b0ab6b71"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"af8ca553bfd93be90fe96c801b9b513a4d7add1b","unresolved":false,"context_lines":[{"line_number":374,"context_line":"the middleware pipeline to see plaintext user metadata."},{"line_number":375,"context_line":""},{"line_number":376,"context_line":"Both metadata names and values will be encrypted. Leaving"},{"line_number":377,"context_line":"\"X-Object-Sysmeta-UM-Preferred-Cocaine-Vendor: Y7JF30oF5TXTeEIqOu8\u003d\""},{"line_number":378,"context_line":"on disk is just not good enough."},{"line_number":379,"context_line":""},{"line_number":380,"context_line":"Further, the object\u0027s plaintext etag and content type are sensitive"}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aa7fdbe_804c4d78","line":377,"updated":"2014-10-29 18:30:57.000000000","message":"I think you mean X-Object-Meta-UM-Preferred-Cocaine-Vendor, sysmeta will not be encrypted","commit_id":"052b591d53953600d40c5d9fd4e93dc2b0ab6b71"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"af8ca553bfd93be90fe96c801b9b513a4d7add1b","unresolved":false,"context_lines":[{"line_number":388,"context_line":"stored in the object\u0027s metadata. This way, the client sees the"},{"line_number":389,"context_line":"plaintext etag and content type in container listings and in object"},{"line_number":390,"context_line":"GET or HEAD responses, just like it would without encryption enabled,"},{"line_number":391,"context_line":"but the plaintext values of those are not stored anywhere."},{"line_number":392,"context_line":""},{"line_number":393,"context_line":""},{"line_number":394,"context_line":"6.2.1 A Note On Etag"}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aa7fdbe_e02439b1","line":391,"updated":"2014-10-29 18:30:57.000000000","message":"nice","commit_id":"052b591d53953600d40c5d9fd4e93dc2b0ab6b71"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"af8ca553bfd93be90fe96c801b9b513a4d7add1b","unresolved":false,"context_lines":[{"line_number":444,"context_line":"contents. This spec proposes that the hash be authenticated so that"},{"line_number":445,"context_line":"the auditor can detect malicious tampering as well as bitrot. Should"},{"line_number":446,"context_line":"the key for the authentication tag be the object key, or should it be"},{"line_number":447,"context_line":"separate from the object key?"},{"line_number":448,"context_line":""},{"line_number":449,"context_line":"If it\u0027s a separate key, then the storage nodes never receive keys that"},{"line_number":450,"context_line":"can decrypt stored objects, but this either requires that we store two"}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aa7fdbe_2021e1b4","line":447,"updated":"2014-10-29 18:30:57.000000000","message":"(disclaimer: i\u0027m not a security expert!) can\u0027t the auditor authenticate the etag using a public key - it doesn\u0027t need to decrypt the etag (if I am understading it - the goal is for the auditor to verify that (a) the etag was signed by the encrypter and (b) the etag matches the md5 of the ciphertext that is being audited.)","commit_id":"052b591d53953600d40c5d9fd4e93dc2b0ab6b71"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"af8ca553bfd93be90fe96c801b9b513a4d7add1b","unresolved":false,"context_lines":[{"line_number":447,"context_line":"separate from the object key?"},{"line_number":448,"context_line":""},{"line_number":449,"context_line":"If it\u0027s a separate key, then the storage nodes never receive keys that"},{"line_number":450,"context_line":"can decrypt stored objects, but this either requires that we store two"},{"line_number":451,"context_line":"keys per object, or that every keymaster is able to return a derived"},{"line_number":452,"context_line":"key for audit."},{"line_number":453,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aa7fdbe_602be994","line":450,"updated":"2014-10-29 18:30:57.000000000","message":"what does \u0027store\u0027 here refer to?","commit_id":"052b591d53953600d40c5d9fd4e93dc2b0ab6b71"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"56fc6a3b05471208f628d59b280d344e99161e96","unresolved":false,"context_lines":[{"line_number":30,"context_line":"are discarded, and if not properly wiped, may still contain data. An"},{"line_number":31,"context_line":"insider might steal or clone disks from the data center."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Goal 1: an attacker who gains read access to Swift\u0027s filesystems"},{"line_number":34,"context_line":"should not be able to gain any useful data. This provides"},{"line_number":35,"context_line":"confidentiality for users\u0027 data."},{"line_number":36,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a890539_3902cf0b","line":33,"updated":"2014-11-12 08:13:46.000000000","message":"Maybe be explicit that this is the Swift object server filesystem?","commit_id":"ddc1587158b7756d70a8f80008dcf59bf361cacf"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"0648bbc246e73865dfdbce0533373e15be3cd257","unresolved":false,"context_lines":[{"line_number":30,"context_line":"are discarded, and if not properly wiped, may still contain data. An"},{"line_number":31,"context_line":"insider might steal or clone disks from the data center."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Goal 1: an attacker who gains read access to Swift\u0027s filesystems"},{"line_number":34,"context_line":"should not be able to gain any useful data. This provides"},{"line_number":35,"context_line":"confidentiality for users\u0027 data."},{"line_number":36,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a890539_157dc1b1","line":33,"in_reply_to":"5a890539_3902cf0b","updated":"2014-11-13 00:11:42.000000000","message":"Done","commit_id":"ddc1587158b7756d70a8f80008dcf59bf361cacf"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"56fc6a3b05471208f628d59b280d344e99161e96","unresolved":false,"context_lines":[{"line_number":34,"context_line":"should not be able to gain any useful data. This provides"},{"line_number":35,"context_line":"confidentiality for users\u0027 data."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Goal 2: it should be possible to shred an object so that it cannot be"},{"line_number":38,"context_line":"recovered by deleting the key. This requires support from the"},{"line_number":39,"context_line":"keymaster for key deletion. This provides a guarantee that an object"},{"line_number":40,"context_line":"is not retained any longer than necessary."}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a890539_3419f679","line":37,"updated":"2014-11-12 08:13:46.000000000","message":"I think shred is a specific tool for over-writing rather than an accepted cryptographic term, though I think we all know what\u0027s meant here.","commit_id":"ddc1587158b7756d70a8f80008dcf59bf361cacf"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"0648bbc246e73865dfdbce0533373e15be3cd257","unresolved":false,"context_lines":[{"line_number":34,"context_line":"should not be able to gain any useful data. This provides"},{"line_number":35,"context_line":"confidentiality for users\u0027 data."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Goal 2: it should be possible to shred an object so that it cannot be"},{"line_number":38,"context_line":"recovered by deleting the key. This requires support from the"},{"line_number":39,"context_line":"keymaster for key deletion. This provides a guarantee that an object"},{"line_number":40,"context_line":"is not retained any longer than necessary."}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a890539_7545256f","line":37,"in_reply_to":"5a890539_3419f679","updated":"2014-11-13 00:11:42.000000000","message":"Done","commit_id":"ddc1587158b7756d70a8f80008dcf59bf361cacf"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"56fc6a3b05471208f628d59b280d344e99161e96","unresolved":false,"context_lines":[{"line_number":37,"context_line":"Goal 2: it should be possible to shred an object so that it cannot be"},{"line_number":38,"context_line":"recovered by deleting the key. This requires support from the"},{"line_number":39,"context_line":"keymaster for key deletion. This provides a guarantee that an object"},{"line_number":40,"context_line":"is not retained any longer than necessary."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"Not Goals / Possible Future Work"},{"line_number":43,"context_line":"--------------------------------"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a890539_b42406b0","line":40,"updated":"2014-11-12 08:13:46.000000000","message":"is not retained in any recoverable/decipherable way.","commit_id":"ddc1587158b7756d70a8f80008dcf59bf361cacf"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"0648bbc246e73865dfdbce0533373e15be3cd257","unresolved":false,"context_lines":[{"line_number":37,"context_line":"Goal 2: it should be possible to shred an object so that it cannot be"},{"line_number":38,"context_line":"recovered by deleting the key. This requires support from the"},{"line_number":39,"context_line":"keymaster for key deletion. This provides a guarantee that an object"},{"line_number":40,"context_line":"is not retained any longer than necessary."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"Not Goals / Possible Future Work"},{"line_number":43,"context_line":"--------------------------------"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a890539_b55ead43","line":40,"in_reply_to":"5a890539_b42406b0","updated":"2014-11-13 00:11:42.000000000","message":"Done","commit_id":"ddc1587158b7756d70a8f80008dcf59bf361cacf"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"56fc6a3b05471208f628d59b280d344e99161e96","unresolved":false,"context_lines":[{"line_number":50,"context_line":"  * an attacker modifies Swift\u0027s code (on the Swift nodes) for evil"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"If these threats are mitigated at all, it is a fortunate byproduct, but it is"},{"line_number":53,"context_line":"not the intent of this spec to address them."},{"line_number":54,"context_line":""},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"2. Encryption and Key Management"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a890539_9458ea33","line":53,"updated":"2014-11-12 08:13:46.000000000","message":"I like this change. Where possible we can enhance security in these areas and should document when that happens but I\u0027m happy for them to be outside of the specific goals.","commit_id":"ddc1587158b7756d70a8f80008dcf59bf361cacf"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"63022847c35b307f0aa93a9784efe01bbe03a229","unresolved":false,"context_lines":[{"line_number":130,"context_line":"----------------------------------"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"The keymaster communicates the encryption key to the encrypter and"},{"line_number":133,"context_line":"decrypter middlewares by placing a zero-argument callable in the WSGI"},{"line_number":134,"context_line":"environment dictionary at the key \"swift.crypto.fetch_crypto_keys\"."},{"line_number":135,"context_line":"When called, this will return the key(s) necessary to process the"},{"line_number":136,"context_line":"current request. It must be present on any GET or HEAD request for an"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a890539_734b8b87","line":133,"updated":"2014-11-12 13:50:28.000000000","message":"+1 for changing this, so we no longer store the key in global memory.","commit_id":"ddc1587158b7756d70a8f80008dcf59bf361cacf"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"63022847c35b307f0aa93a9784efe01bbe03a229","unresolved":false,"context_lines":[{"line_number":160,"context_line":""},{"line_number":161,"context_line":"Swift will use AES in CTR mode with 256-bit keys."},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"Similarly, the choice of authentication function will be configurable."},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"In order to allow for ranged GET requests, the cipher shall be used"},{"line_number":166,"context_line":"in counter (CTR) mode."}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a890539_b3b5f3ef","line":163,"updated":"2014-11-12 13:50:28.000000000","message":"So does this mean the algorithm and cipher mode will be configurable as well?","commit_id":"ddc1587158b7756d70a8f80008dcf59bf361cacf"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"0648bbc246e73865dfdbce0533373e15be3cd257","unresolved":false,"context_lines":[{"line_number":160,"context_line":""},{"line_number":161,"context_line":"Swift will use AES in CTR mode with 256-bit keys."},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"Similarly, the choice of authentication function will be configurable."},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"In order to allow for ranged GET requests, the cipher shall be used"},{"line_number":166,"context_line":"in counter (CTR) mode."}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a890539_953ff1d5","line":163,"in_reply_to":"5a890539_82afbae2","updated":"2014-11-13 00:11:42.000000000","message":"Whoops, this is junk that I missed. If we \u0027re not doing authenticated encryption, then we don\u0027t need to choose an authentication function at all. I\u0027m just going to take this line out.","commit_id":"ddc1587158b7756d70a8f80008dcf59bf361cacf"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"3c388e965fb8a496553ccc3c1432b2f7679a0e33","unresolved":false,"context_lines":[{"line_number":160,"context_line":""},{"line_number":161,"context_line":"Swift will use AES in CTR mode with 256-bit keys."},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"Similarly, the choice of authentication function will be configurable."},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"In order to allow for ranged GET requests, the cipher shall be used"},{"line_number":166,"context_line":"in counter (CTR) mode."}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a890539_82afbae2","line":163,"in_reply_to":"5a890539_b3b5f3ef","updated":"2014-11-12 17:18:39.000000000","message":"I think what was discussed was a hard coded known-good algorithm / cipher mode combination to start with, while not making any concrete assumptions about said cipher combination so other demonstrably good (ie. tested) combinations could be put in place later on.","commit_id":"ddc1587158b7756d70a8f80008dcf59bf361cacf"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"56fc6a3b05471208f628d59b280d344e99161e96","unresolved":false,"context_lines":[{"line_number":165,"context_line":"In order to allow for ranged GET requests, the cipher shall be used"},{"line_number":166,"context_line":"in counter (CTR) mode."},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"The entire object shall be encrypted as a single byte stream."},{"line_number":169,"context_line":""},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"3.2. Why AES-256-CTR"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a890539_54ea0210","line":168,"updated":"2014-11-12 08:13:46.000000000","message":"Any thoughts on how the Nonce/IV should be derived / stored ?","commit_id":"ddc1587158b7756d70a8f80008dcf59bf361cacf"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"0648bbc246e73865dfdbce0533373e15be3cd257","unresolved":false,"context_lines":[{"line_number":165,"context_line":"In order to allow for ranged GET requests, the cipher shall be used"},{"line_number":166,"context_line":"in counter (CTR) mode."},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"The entire object shall be encrypted as a single byte stream."},{"line_number":169,"context_line":""},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"3.2. Why AES-256-CTR"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a890539_d52099b2","line":168,"in_reply_to":"5a890539_54ea0210","updated":"2014-11-13 00:11:42.000000000","message":"Derived by reading /dev/urandom, I imagine, and stored in system metadata.","commit_id":"ddc1587158b7756d70a8f80008dcf59bf361cacf"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"56fc6a3b05471208f628d59b280d344e99161e96","unresolved":false,"context_lines":[{"line_number":192,"context_line":""},{"line_number":193,"context_line":"The cipher and mode will be stored in system metadata on every"},{"line_number":194,"context_line":"encrypted object. This way, when Swift gains support for other ciphers"},{"line_number":195,"context_line":"or modes, existing objects can still be decrypted."},{"line_number":196,"context_line":""},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"4. Robustness"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a890539_749ffeb4","line":195,"updated":"2014-11-12 08:13:46.000000000","message":"Excellent.","commit_id":"ddc1587158b7756d70a8f80008dcf59bf361cacf"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"63022847c35b307f0aa93a9784efe01bbe03a229","unresolved":false,"context_lines":[{"line_number":234,"context_line":"at all. To that end, it should be deliberately kept as small as"},{"line_number":235,"context_line":"possible without regard for any actual security of the keys."},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"Perhaps the trivial keymaster could use the SHA-256 of a configurable"},{"line_number":238,"context_line":"prefix concatenated with the object\u0027s full path for the cryptographic"},{"line_number":239,"context_line":"key. That is,::"},{"line_number":240,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a890539_d310bfaa","line":237,"updated":"2014-11-12 13:50:28.000000000","message":"Barbican is creating a new project that has a KeyManager interface. This is how we have integrated with Cinder and Nova. I would suggest using that library.\n\nIn that library we will have at least one testable KeyManager implementation. We have one that simply stores a key in a configuration file. The same key is returned for every get call. That is not secure, but it makes testing very easy because the key is predictable and easy to know. At one point we had another testing implementation that stored the keys in a database. I don\u0027t know if that one is still around or not.\n\nI think using the KeyManager library will save you time and get you on the path to integration with Barbican. Plus we are designing the interface to make it compatible with HSMs directly if you have such high assurance needs.","commit_id":"ddc1587158b7756d70a8f80008dcf59bf361cacf"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"0648bbc246e73865dfdbce0533373e15be3cd257","unresolved":false,"context_lines":[{"line_number":234,"context_line":"at all. To that end, it should be deliberately kept as small as"},{"line_number":235,"context_line":"possible without regard for any actual security of the keys."},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"Perhaps the trivial keymaster could use the SHA-256 of a configurable"},{"line_number":238,"context_line":"prefix concatenated with the object\u0027s full path for the cryptographic"},{"line_number":239,"context_line":"key. That is,::"},{"line_number":240,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a890539_30000b01","line":237,"in_reply_to":"5a890539_d310bfaa","updated":"2014-11-13 00:11:42.000000000","message":"Possibly interesting. What is the name of that library?","commit_id":"ddc1587158b7756d70a8f80008dcf59bf361cacf"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"56fc6a3b05471208f628d59b280d344e99161e96","unresolved":false,"context_lines":[{"line_number":243,"context_line":"This will allow for testing of the PUT and GET paths, the COPY path"},{"line_number":244,"context_line":"(the destination object\u0027s key will differ from the source object\u0027s),"},{"line_number":245,"context_line":"and also the invalid key path (by changing the prefix after an object"},{"line_number":246,"context_line":"is PUT)."},{"line_number":247,"context_line":""},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"5.2.2 Barbican Keymaster"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a890539_5483e255","line":246,"updated":"2014-11-12 08:13:46.000000000","message":"+1 - looks fine to me, easy enough to check CT matches expectations too","commit_id":"ddc1587158b7756d70a8f80008dcf59bf361cacf"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"56fc6a3b05471208f628d59b280d344e99161e96","unresolved":false,"context_lines":[{"line_number":250,"context_line":"^^^^^^^^^^^^^^^^^^^^^^^^"},{"line_number":251,"context_line":""},{"line_number":252,"context_line":"Swift will probably want a keymaster that stores things in Barbican at"},{"line_number":253,"context_line":"some point."},{"line_number":254,"context_line":""},{"line_number":255,"context_line":""},{"line_number":256,"context_line":"6. Metadata Encryption"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a890539_74ed3e25","line":253,"updated":"2014-11-12 08:13:46.000000000","message":"I think this is something that could be worked on in parallel perhaps? Once the keymaster definition/test implementation is locked down?","commit_id":"ddc1587158b7756d70a8f80008dcf59bf361cacf"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"0648bbc246e73865dfdbce0533373e15be3cd257","unresolved":false,"context_lines":[{"line_number":250,"context_line":"^^^^^^^^^^^^^^^^^^^^^^^^"},{"line_number":251,"context_line":""},{"line_number":252,"context_line":"Swift will probably want a keymaster that stores things in Barbican at"},{"line_number":253,"context_line":"some point."},{"line_number":254,"context_line":""},{"line_number":255,"context_line":""},{"line_number":256,"context_line":"6. Metadata Encryption"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a890539_900d3f3a","line":253,"in_reply_to":"5a890539_74ed3e25","updated":"2014-11-13 00:11:42.000000000","message":"Yep, seems so.","commit_id":"ddc1587158b7756d70a8f80008dcf59bf361cacf"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"56fc6a3b05471208f628d59b280d344e99161e96","unresolved":false,"context_lines":[{"line_number":299,"context_line":""},{"line_number":300,"context_line":"Both metadata names and values will be encrypted. Leaving"},{"line_number":301,"context_line":"\"X-Object-Sysmeta-UM-Preferred-Contraband-Vendor: Y7JF30oF5TXTeEIqOu8\u003d\""},{"line_number":302,"context_line":"on disk is just not good enough."},{"line_number":303,"context_line":""},{"line_number":304,"context_line":"Further, the object\u0027s plaintext etag and content type are sensitive"},{"line_number":305,"context_line":"information and will be stored encrypted as well, both in the"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a890539_d4dd1272","line":302,"updated":"2014-11-12 08:13:46.000000000","message":"+1","commit_id":"ddc1587158b7756d70a8f80008dcf59bf361cacf"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"56fc6a3b05471208f628d59b280d344e99161e96","unresolved":false,"context_lines":[{"line_number":348,"context_line":"Each object is encrypted with a randomly-chosen key. That key is"},{"line_number":349,"context_line":"encrypted with the object key from the keymaster and its ciphertext is"},{"line_number":350,"context_line":"stored in the object\u0027s metadata. This allows for future work on a"},{"line_number":351,"context_line":"re-key operation, though re-keying is outside the scope of this work."},{"line_number":352,"context_line":""},{"line_number":353,"context_line":""},{"line_number":354,"context_line":"7. Client-Visible Changes"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a890539_94cb8aa4","line":351,"updated":"2014-11-12 08:13:46.000000000","message":"Can you explain this first sentence a little more please, I\u0027m finding it hard to follow.","commit_id":"ddc1587158b7756d70a8f80008dcf59bf361cacf"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"63022847c35b307f0aa93a9784efe01bbe03a229","unresolved":false,"context_lines":[{"line_number":348,"context_line":"Each object is encrypted with a randomly-chosen key. That key is"},{"line_number":349,"context_line":"encrypted with the object key from the keymaster and its ciphertext is"},{"line_number":350,"context_line":"stored in the object\u0027s metadata. This allows for future work on a"},{"line_number":351,"context_line":"re-key operation, though re-keying is outside the scope of this work."},{"line_number":352,"context_line":""},{"line_number":353,"context_line":""},{"line_number":354,"context_line":"7. Client-Visible Changes"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a890539_53a68f54","line":351,"in_reply_to":"5a890539_94cb8aa4","updated":"2014-11-12 13:50:28.000000000","message":"I am confused as well. Could you please clarify? It sounds like there are two types of keys now?","commit_id":"ddc1587158b7756d70a8f80008dcf59bf361cacf"},{"author":{"_account_id":2696,"name":"Darrell Bishop","email":"dbishop@nvidia.com","username":"darrellb"},"change_message_id":"61fed08458f65123e4009ba64a195bb6cd514fd2","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Swift objects are typically stored on disk as files in a standard"},{"line_number":23,"context_line":"POSIX filesystem; in the typical 3-replica case, an object is"},{"line_number":24,"context_line":"represented as 3 files on 3 distinct filesystems on within the cluster."},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"An attacker may gain access to disks in a number of ways. When a disk"},{"line_number":27,"context_line":"fails, it may be returned to the manufacturer under warranty; since it"}],"source_content_type":"text/x-rst","patch_set":8,"id":"5a890539_c3ba9622","line":24,"updated":"2014-11-13 05:49:17.000000000","message":"\"on within the cluster.\"?","commit_id":"ffc19a16073df25f0bf5dec72158b361b574b6e6"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"203cfd64f8f5bc7cfc54ea9b8976ed96a9f0bd3e","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Swift objects are typically stored on disk as files in a standard"},{"line_number":23,"context_line":"POSIX filesystem; in the typical 3-replica case, an object is"},{"line_number":24,"context_line":"represented as 3 files on 3 distinct filesystems on within the cluster."},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"An attacker may gain access to disks in a number of ways. When a disk"},{"line_number":27,"context_line":"fails, it may be returned to the manufacturer under warranty; since it"}],"source_content_type":"text/x-rst","patch_set":8,"id":"5a890539_0301b905","line":24,"in_reply_to":"5a890539_c3ba9622","updated":"2014-11-14 19:31:48.000000000","message":"Done","commit_id":"ffc19a16073df25f0bf5dec72158b361b574b6e6"},{"author":{"_account_id":2696,"name":"Darrell Bishop","email":"dbishop@nvidia.com","username":"darrellb"},"change_message_id":"61fed08458f65123e4009ba64a195bb6cd514fd2","unresolved":false,"context_lines":[{"line_number":262,"context_line":"metadata."},{"line_number":263,"context_line":""},{"line_number":264,"context_line":"First, there is basic metadata, like Content-Length, Content-Type, and"},{"line_number":265,"context_line":"Etag. This is always present and user-visible."},{"line_number":266,"context_line":""},{"line_number":267,"context_line":"Second, there is user metadata. These are headers starting with"},{"line_number":268,"context_line":"X-Object-Meta-, X-Container-Meta-, or X-Account-Meta- on objects,"}],"source_content_type":"text/x-rst","patch_set":8,"id":"5a890539_c3bff6f9","line":265,"updated":"2014-11-13 05:49:17.000000000","message":"\"These are always present...\"","commit_id":"ffc19a16073df25f0bf5dec72158b361b574b6e6"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"203cfd64f8f5bc7cfc54ea9b8976ed96a9f0bd3e","unresolved":false,"context_lines":[{"line_number":262,"context_line":"metadata."},{"line_number":263,"context_line":""},{"line_number":264,"context_line":"First, there is basic metadata, like Content-Length, Content-Type, and"},{"line_number":265,"context_line":"Etag. This is always present and user-visible."},{"line_number":266,"context_line":""},{"line_number":267,"context_line":"Second, there is user metadata. These are headers starting with"},{"line_number":268,"context_line":"X-Object-Meta-, X-Container-Meta-, or X-Account-Meta- on objects,"}],"source_content_type":"text/x-rst","patch_set":8,"id":"5a890539_6310bd59","line":265,"in_reply_to":"5a890539_c3bff6f9","updated":"2014-11-14 19:31:48.000000000","message":"Done","commit_id":"ffc19a16073df25f0bf5dec72158b361b574b6e6"},{"author":{"_account_id":2696,"name":"Darrell Bishop","email":"dbishop@nvidia.com","username":"darrellb"},"change_message_id":"61fed08458f65123e4009ba64a195bb6cd514fd2","unresolved":false,"context_lines":[{"line_number":307,"context_line":"the proxy server will actually encrypt the etag and content type"},{"line_number":308,"context_line":"_twice_: once with the object\u0027s key, and once with the container\u0027s"},{"line_number":309,"context_line":"key. When the object server updates the container database after"},{"line_number":310,"context_line":"finishing a PUT request, it will send the container-key-encrypted"},{"line_number":311,"context_line":"values over to the container. The object-key-encrypted values will be"},{"line_number":312,"context_line":"stored in the object\u0027s metadata. This way, the client sees the"},{"line_number":313,"context_line":"plaintext etag and content type in container listings and in object"}],"source_content_type":"text/x-rst","patch_set":8,"id":"5a890539_c36d369a","line":310,"updated":"2014-11-13 05:49:17.000000000","message":"So, to clarify, the ```fetch_crypto_keys()``` function needs to return the container and object keys, at least for object PUTs?\n\nAlso, this will necessitate some small change to the object-server so that it knows to send a different value to the container-server vs. what\u0027s stored in the object, right?","commit_id":"ffc19a16073df25f0bf5dec72158b361b574b6e6"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"203cfd64f8f5bc7cfc54ea9b8976ed96a9f0bd3e","unresolved":false,"context_lines":[{"line_number":307,"context_line":"the proxy server will actually encrypt the etag and content type"},{"line_number":308,"context_line":"_twice_: once with the object\u0027s key, and once with the container\u0027s"},{"line_number":309,"context_line":"key. When the object server updates the container database after"},{"line_number":310,"context_line":"finishing a PUT request, it will send the container-key-encrypted"},{"line_number":311,"context_line":"values over to the container. The object-key-encrypted values will be"},{"line_number":312,"context_line":"stored in the object\u0027s metadata. This way, the client sees the"},{"line_number":313,"context_line":"plaintext etag and content type in container listings and in object"}],"source_content_type":"text/x-rst","patch_set":8,"id":"5a890539_e303cd0d","line":310,"in_reply_to":"5a890539_c36d369a","updated":"2014-11-14 19:31:48.000000000","message":"Yes, it\u0027ll need some supporting code in the object server. Not much, though.","commit_id":"ffc19a16073df25f0bf5dec72158b361b574b6e6"}],"specs/swift/on_disk_encryption.rst":[{"author":{"_account_id":7233,"name":"Matthew Oliver","email":"matt@oliver.net.au","username":"mattoliverau"},"change_message_id":"105dc1642885b192277ba4c19f2640879e043a04","unresolved":false,"context_lines":[{"line_number":235,"context_line":"Should sysmeta be encrypted as well? Some sysmeta values can be"},{"line_number":236,"context_line":"sensitive, but if middleware is moved from pre-crypto to post-crypto"},{"line_number":237,"context_line":"or vice versa, all its existing sysmeta may become unusable garbage"},{"line_number":238,"context_line":"from its viewpoint."}],"source_content_type":"text/x-rst","patch_set":1,"id":"da9df570_c1aac018","line":238,"updated":"2014-09-23 01:26:42.000000000","message":"So am I correct in assuming that the keymaster generates a separate key or something for each object, or is it user specified?\n\nI wonder if user specified container encryption would be a nice feature for users as well. I.E they specify a key for all objects in a container to be encrypted as. Kind of like an encryption storage policy.. but I guess if a user is that paranoid they should simply be encrypting each object before putting it up in the cluster rather then sending the key up via potentially the internet.","commit_id":"f1010eeba3e24496ec27e6cc39f9adda3a9eef45"},{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"5c183fbfcaaee5197a635e4f7e8d837168e2c0f0","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":"Swift objects are typically stored on disk as files in a standard"},{"line_number":22,"context_line":"POSIX filesystem; in the typical 3-replica case, an object is"},{"line_number":23,"context_line":"represented as 3 files on 3 distinct filesystems on within the cluster."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"An attacker may gain access to disks in a number of ways. When a disk"},{"line_number":26,"context_line":"fails, it may be returned to the manufacturer under warranty; since"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_0ba8f51e","line":23,"updated":"2014-10-06 14:38:52.000000000","message":"...filesystems within...","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"8f34186cea3514290a3621585cf1fd857eebff7e","unresolved":false,"context_lines":[{"line_number":26,"context_line":"fails, it may be returned to the manufacturer under warranty; since"},{"line_number":27,"context_line":"it has failed, erasing the data may not be possible, but the data may"},{"line_number":28,"context_line":"still be present on the platters. When disks reach end-of-life, they"},{"line_number":29,"context_line":"are discarded, and if not properly wiped, may still contain data. An"},{"line_number":30,"context_line":"attacker may simply break into the data center and steal disks."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"This spec describes a way to minimize the information leaked when an"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_dfb472d3","line":29,"updated":"2014-10-10 10:04:42.000000000","message":"crypto term would be purged rather than wiped","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"28c56a2bdd85f717ab9baf048a58107d719852db","unresolved":false,"context_lines":[{"line_number":27,"context_line":"it has failed, erasing the data may not be possible, but the data may"},{"line_number":28,"context_line":"still be present on the platters. When disks reach end-of-life, they"},{"line_number":29,"context_line":"are discarded, and if not properly wiped, may still contain data. An"},{"line_number":30,"context_line":"attacker may simply break into the data center and steal disks."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"This spec describes a way to minimize the information leaked when an"},{"line_number":33,"context_line":"attacker can read the data on the filesystems holding Swift objects."}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_d275b5cb","line":30,"updated":"2014-10-06 19:57:46.000000000","message":"What about compromising machines in the cluster (e.g., via improper configuration or software vulnerabilities)? All the existing threats could be mitigated via full disk encryption.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"c9063157582fbd53e2837de5f7f95438560ef61b","unresolved":false,"context_lines":[{"line_number":27,"context_line":"it has failed, erasing the data may not be possible, but the data may"},{"line_number":28,"context_line":"still be present on the platters. When disks reach end-of-life, they"},{"line_number":29,"context_line":"are discarded, and if not properly wiped, may still contain data. An"},{"line_number":30,"context_line":"attacker may simply break into the data center and steal disks."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"This spec describes a way to minimize the information leaked when an"},{"line_number":33,"context_line":"attacker can read the data on the filesystems holding Swift objects."}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_ae405e08","line":30,"in_reply_to":"baa201ad_3fdade17","updated":"2014-10-10 11:46:45.000000000","message":"+1","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"06c5c30624c264af976ec04aff46b631bccbf86b","unresolved":false,"context_lines":[{"line_number":27,"context_line":"it has failed, erasing the data may not be possible, but the data may"},{"line_number":28,"context_line":"still be present on the platters. When disks reach end-of-life, they"},{"line_number":29,"context_line":"are discarded, and if not properly wiped, may still contain data. An"},{"line_number":30,"context_line":"attacker may simply break into the data center and steal disks."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"This spec describes a way to minimize the information leaked when an"},{"line_number":33,"context_line":"attacker can read the data on the filesystems holding Swift objects."}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_32884cc6","line":30,"in_reply_to":"baa201ad_3fdade17","updated":"2014-10-10 12:50:56.000000000","message":"Touché, Rob. Your comment is the analysis that I would like to see as part of the spec. :-)","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"8f34186cea3514290a3621585cf1fd857eebff7e","unresolved":false,"context_lines":[{"line_number":27,"context_line":"it has failed, erasing the data may not be possible, but the data may"},{"line_number":28,"context_line":"still be present on the platters. When disks reach end-of-life, they"},{"line_number":29,"context_line":"are discarded, and if not properly wiped, may still contain data. An"},{"line_number":30,"context_line":"attacker may simply break into the data center and steal disks."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"This spec describes a way to minimize the information leaked when an"},{"line_number":33,"context_line":"attacker can read the data on the filesystems holding Swift objects."}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_3fdade17","line":30,"in_reply_to":"baa201ad_d275b5cb","updated":"2014-10-10 10:04:42.000000000","message":"Live system threats are _not_ mitigated by data at rest encryption.\n\nNow, in this particular model, where the proxy is performing encryption before data lands on the object server some typical live system threats to confidentiality are mitigated but those around integrity (depending on encryption mode) and availability still stand.\n\nWhich I know that you know Joel, just as this is finialised we should be very clear to the whole community what crypto does, and doesn\u0027t buy you.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"8f34186cea3514290a3621585cf1fd857eebff7e","unresolved":false,"context_lines":[{"line_number":30,"context_line":"attacker may simply break into the data center and steal disks."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"This spec describes a way to minimize the information leaked when an"},{"line_number":33,"context_line":"attacker can read the data on the filesystems holding Swift objects."},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"Not The Threat Model"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_df39d242","line":33,"updated":"2014-10-10 10:04:42.000000000","message":"This spec defines a method of encrypting data at rest to a sufficient standard that the risk of a compromised disk being accessed by an attacker is reduced to an acceptable level by stopping an attacker who has physical or logical access to a drive being able to read object data from that drive.\n\n^ Or something. Original feels very slack.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"8f34186cea3514290a3621585cf1fd857eebff7e","unresolved":false,"context_lines":[{"line_number":55,"context_line":"of the data and metadata, and it also takes care of any necessary"},{"line_number":56,"context_line":"data integrity functions."},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"The second part is the keymaster. This is the part responsible for"},{"line_number":59,"context_line":"retrieving the secret key for the requested object."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"The crypto engine and the keymaster shall be implemented as three"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_18f45086","line":58,"updated":"2014-10-10 10:04:42.000000000","message":"The second part is key management. This is the process by which the key material is stored, retrieved and supplied to the crypto engine. The process may be split with an agent responsible for storing key material safely (sometimes a Hardware Security Module) and an agent responsible for retrieving key material for the crypto engine.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"1fef4623882790b3e5c8090dc39a86bdc94d8982","unresolved":false,"context_lines":[{"line_number":55,"context_line":"of the data and metadata, and it also takes care of any necessary"},{"line_number":56,"context_line":"data integrity functions."},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"The second part is the keymaster. This is the part responsible for"},{"line_number":59,"context_line":"retrieving the secret key for the requested object."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"The crypto engine and the keymaster shall be implemented as three"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9aa7fdbe_f5ba5009","line":58,"in_reply_to":"baa201ad_18f45086","updated":"2014-10-18 00:17:36.000000000","message":"Done","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"8f34186cea3514290a3621585cf1fd857eebff7e","unresolved":false,"context_lines":[{"line_number":58,"context_line":"The second part is the keymaster. This is the part responsible for"},{"line_number":59,"context_line":"retrieving the secret key for the requested object."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"The crypto engine and the keymaster shall be implemented as three"},{"line_number":62,"context_line":"separate pieces of middleware. The crypto engine shall have both"},{"line_number":63,"context_line":"\"decrypter\" and \"encrypter\" filter-factory functions, and the"},{"line_number":64,"context_line":"keymaster filter shall sit between them. Example::"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_981680a6","line":61,"updated":"2014-10-10 10:04:42.000000000","message":"Everytime I read \"Keymaster\" I think Gwildor.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"1fef4623882790b3e5c8090dc39a86bdc94d8982","unresolved":false,"context_lines":[{"line_number":58,"context_line":"The second part is the keymaster. This is the part responsible for"},{"line_number":59,"context_line":"retrieving the secret key for the requested object."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"The crypto engine and the keymaster shall be implemented as three"},{"line_number":62,"context_line":"separate pieces of middleware. The crypto engine shall have both"},{"line_number":63,"context_line":"\"decrypter\" and \"encrypter\" filter-factory functions, and the"},{"line_number":64,"context_line":"keymaster filter shall sit between them. Example::"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9aa7fdbe_1537d4b1","line":61,"in_reply_to":"baa201ad_981680a6","updated":"2014-10-18 00:17:36.000000000","message":"I was going for Ghostbusters, but I\u0027ll take Gwildor.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"1fa56379f95c3c6da8c35cd7ae5056ab71e3aaf7","unresolved":false,"context_lines":[{"line_number":72,"context_line":"The decrypter middleware is responsible for decrypting the object\u0027s"},{"line_number":73,"context_line":"data and metadata on a GET or HEAD response."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"DELETE and OPTIONS requests are unaffected by encryption, so neither"},{"line_number":76,"context_line":"the encrypter nor decrypter need to do anything."},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"The decrypter, encrypter, and keymaster will all use the hook in the"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_2bb4d933","line":75,"updated":"2014-10-06 15:05:48.000000000","message":"Would delete not need to remove the keys associated with the encrypted objects?","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":12430,"name":"Ed Reynolds","email":"ed.reynolds@hp.com"},"change_message_id":"7c656c3e081ee0f280667ec47a3d546b698e1bde","unresolved":false,"context_lines":[{"line_number":72,"context_line":"The decrypter middleware is responsible for decrypting the object\u0027s"},{"line_number":73,"context_line":"data and metadata on a GET or HEAD response."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"DELETE and OPTIONS requests are unaffected by encryption, so neither"},{"line_number":76,"context_line":"the encrypter nor decrypter need to do anything."},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"The decrypter, encrypter, and keymaster will all use the hook in the"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_6b2593ad","line":75,"in_reply_to":"baa201ad_25a91d24","updated":"2014-10-09 22:36:52.000000000","message":"Agree. If one object per key, DELETE should remove both.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"28c56a2bdd85f717ab9baf048a58107d719852db","unresolved":false,"context_lines":[{"line_number":72,"context_line":"The decrypter middleware is responsible for decrypting the object\u0027s"},{"line_number":73,"context_line":"data and metadata on a GET or HEAD response."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"DELETE and OPTIONS requests are unaffected by encryption, so neither"},{"line_number":76,"context_line":"the encrypter nor decrypter need to do anything."},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"The decrypter, encrypter, and keymaster will all use the hook in the"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_cd119a53","line":75,"in_reply_to":"baa201ad_2bb4d933","updated":"2014-10-06 19:57:46.000000000","message":"Concur. DELETE should remove encryption keys to mitigate the risk of a future compromise affecting the keymaster.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"8f34186cea3514290a3621585cf1fd857eebff7e","unresolved":false,"context_lines":[{"line_number":72,"context_line":"The decrypter middleware is responsible for decrypting the object\u0027s"},{"line_number":73,"context_line":"data and metadata on a GET or HEAD response."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"DELETE and OPTIONS requests are unaffected by encryption, so neither"},{"line_number":76,"context_line":"the encrypter nor decrypter need to do anything."},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"The decrypter, encrypter, and keymaster will all use the hook in the"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_d8bac86d","line":75,"in_reply_to":"baa201ad_6b2593ad","updated":"2014-10-10 10:04:42.000000000","message":"So what\u0027s required here is a point of clarification. Is the proposal a key per object or a key per tenant? In the case of the latter obviously key material shouldn\u0027t be purged. In the case of the former it seems likely that the key should deleted along with the data. However, it may be prudent to supplement DELETE with a function such as PURGE to define the two behaviours. If a user were to DELETE the object then that\u0027s all that happens. If the user were to PURGE the object then it would be deleted and the key material also deleted.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"1d2854ced89aa98eddc65e8e1e3bf0b9c1c872ba","unresolved":false,"context_lines":[{"line_number":72,"context_line":"The decrypter middleware is responsible for decrypting the object\u0027s"},{"line_number":73,"context_line":"data and metadata on a GET or HEAD response."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"DELETE and OPTIONS requests are unaffected by encryption, so neither"},{"line_number":76,"context_line":"the encrypter nor decrypter need to do anything."},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"The decrypter, encrypter, and keymaster will all use the hook in the"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_25a91d24","line":75,"in_reply_to":"baa201ad_cd119a53","updated":"2014-10-09 17:16:19.000000000","message":"The keymaster can do that if it wants to. Depends on the keymaster.\n\nFor example, if the keymaster is based on a single top-level key that then ripples down to the accounts, containers, and objects, then there\u0027s no need to do anything on a DELETE request. OTOH, if each object has its own unique key, then the keymaster should delete the key from the external system.\n\nI was attempting to say that neither the encrypter nor decrypter need to do any processing of DELETE or OPTIONS requests; I\u0027ll re-word to make it clearer.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"c9063157582fbd53e2837de5f7f95438560ef61b","unresolved":false,"context_lines":[{"line_number":72,"context_line":"The decrypter middleware is responsible for decrypting the object\u0027s"},{"line_number":73,"context_line":"data and metadata on a GET or HEAD response."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"DELETE and OPTIONS requests are unaffected by encryption, so neither"},{"line_number":76,"context_line":"the encrypter nor decrypter need to do anything."},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"The decrypter, encrypter, and keymaster will all use the hook in the"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_2e1f0eb9","line":75,"in_reply_to":"baa201ad_d8bac86d","updated":"2014-10-10 11:46:45.000000000","message":"Maybe better to just clearly define the behaviour of DELETE. Can\u0027t think of any where a none purge DELETE would be what you want if using one object per key. I could be wrong here though.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":7012,"name":"Brianna Poulos","email":"Brianna.Poulos@jhuapl.edu","username":"brianna-poulos"},"change_message_id":"94fef315ca964b6b65345f58203cd42a331baab0","unresolved":false,"context_lines":[{"line_number":78,"context_line":"The decrypter, encrypter, and keymaster will all use the hook in the"},{"line_number":79,"context_line":"WSGI environment at \"swift.copy_hook\" to ensure that COPY requests"},{"line_number":80,"context_line":"result in the new object being encrypted with its own key, not with"},{"line_number":81,"context_line":"the source object\u0027s key."},{"line_number":82,"context_line":""},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"Inter-Middleware Communication"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_0db9e214","line":81,"updated":"2014-10-06 19:27:29.000000000","message":"Does this require completely decrypting the original (with the original key) and completely re-encrypting the copy (with the new key)?  Would this be a time consuming process?\n\nThe way that nova/keymgr and cinder/keymgr handle this is by having an \"encryption key uuid\" which is used to access the key.  When the volume needs to be copied (i.e. a backup needs to be done or a volume is cloned) the key itself is duplicated and associated with a new encryption key id.  That way if the original volume is deleted, its encryption key id can be deleted/invalidated as well, but the copied volume can use its own, different encryption key id to access the key.  This doesn\u0027t require decrypting and re-encrypting the entire volume.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"1d2854ced89aa98eddc65e8e1e3bf0b9c1c872ba","unresolved":false,"context_lines":[{"line_number":78,"context_line":"The decrypter, encrypter, and keymaster will all use the hook in the"},{"line_number":79,"context_line":"WSGI environment at \"swift.copy_hook\" to ensure that COPY requests"},{"line_number":80,"context_line":"result in the new object being encrypted with its own key, not with"},{"line_number":81,"context_line":"the source object\u0027s key."},{"line_number":82,"context_line":""},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"Inter-Middleware Communication"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_4529c199","line":81,"in_reply_to":"baa201ad_0db9e214","updated":"2014-10-09 17:16:19.000000000","message":"It does require a full reencryption process, but a COPY request in Swift also requires the proxy to copy the object from one set of object servers to another (new name -\u003e new hash -\u003e new locations), so COPY requests wouldn\u0027t benefit much from another layer of key indirection.\n\nThat\u0027s not to say Swift should or should not have the extra layer of keying for other reasons, just that COPY requests don\u0027t need anything either way.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":12430,"name":"Ed Reynolds","email":"ed.reynolds@hp.com"},"change_message_id":"7c656c3e081ee0f280667ec47a3d546b698e1bde","unresolved":false,"context_lines":[{"line_number":78,"context_line":"The decrypter, encrypter, and keymaster will all use the hook in the"},{"line_number":79,"context_line":"WSGI environment at \"swift.copy_hook\" to ensure that COPY requests"},{"line_number":80,"context_line":"result in the new object being encrypted with its own key, not with"},{"line_number":81,"context_line":"the source object\u0027s key."},{"line_number":82,"context_line":""},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"Inter-Middleware Communication"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_8899dd21","line":81,"in_reply_to":"baa201ad_4529c199","updated":"2014-10-09 22:36:52.000000000","message":"I\u0027m not up on Swift internals, but:  Would it be feasible to have 2 modes for COPY, say COPY and COPY(new), where the later obtains a new key and re-encrypts the data?   The former could copy the ciphertext and associate with the existing key.  Note the previous comments about deleting keys when the object is deleted becomes more problematic (multiple objects per key).  Alternatively, clone the original key.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"1fef4623882790b3e5c8090dc39a86bdc94d8982","unresolved":false,"context_lines":[{"line_number":78,"context_line":"The decrypter, encrypter, and keymaster will all use the hook in the"},{"line_number":79,"context_line":"WSGI environment at \"swift.copy_hook\" to ensure that COPY requests"},{"line_number":80,"context_line":"result in the new object being encrypted with its own key, not with"},{"line_number":81,"context_line":"the source object\u0027s key."},{"line_number":82,"context_line":""},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"Inter-Middleware Communication"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9aa7fdbe_7514a0f5","line":81,"in_reply_to":"baa201ad_8899dd21","updated":"2014-10-18 00:17:36.000000000","message":"It\u0027d be a new client-facing request that only applies to encrypted objects. I don\u0027t think it\u0027s particularly valuable.\n\nAlso, reference counting in an eventually-consistent system seems to always end in pain. Maybe there are good ways to do it, but I have yet to find one.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"1fa56379f95c3c6da8c35cd7ae5056ab71e3aaf7","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"The keymaster communicates the encryption key to the encrypter and"},{"line_number":88,"context_line":"decrypter middlewares by placing it in the WSGI environment dictionary"},{"line_number":89,"context_line":"at the name \"swift.crypto.key\"."},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"On a PUT or POST request, the keymaster must place the key in the WSGI"},{"line_number":92,"context_line":"environment during request processing; that is, before passing the"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_0bbc7505","line":89,"updated":"2014-10-06 15:05:48.000000000","message":"Is there any security risk to putting this in an environment variable? Why not put key retrieval an encryption/decryption in the same middleware module?","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"8f34186cea3514290a3621585cf1fd857eebff7e","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"The keymaster communicates the encryption key to the encrypter and"},{"line_number":88,"context_line":"decrypter middlewares by placing it in the WSGI environment dictionary"},{"line_number":89,"context_line":"at the name \"swift.crypto.key\"."},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"On a PUT or POST request, the keymaster must place the key in the WSGI"},{"line_number":92,"context_line":"environment during request processing; that is, before passing the"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_b86c240a","line":89,"in_reply_to":"baa201ad_0bbc7505","updated":"2014-10-10 10:04:42.000000000","message":"+1","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"c9063157582fbd53e2837de5f7f95438560ef61b","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"The keymaster communicates the encryption key to the encrypter and"},{"line_number":88,"context_line":"decrypter middlewares by placing it in the WSGI environment dictionary"},{"line_number":89,"context_line":"at the name \"swift.crypto.key\"."},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"On a PUT or POST request, the keymaster must place the key in the WSGI"},{"line_number":92,"context_line":"environment during request processing; that is, before passing the"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_aee77eab","line":89,"in_reply_to":"baa201ad_b86c240a","updated":"2014-10-10 11:46:45.000000000","message":"+1","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"28c56a2bdd85f717ab9baf048a58107d719852db","unresolved":false,"context_lines":[{"line_number":90,"context_line":""},{"line_number":91,"context_line":"On a PUT or POST request, the keymaster must place the key in the WSGI"},{"line_number":92,"context_line":"environment during request processing; that is, before passing the"},{"line_number":93,"context_line":"request to the remainder of the middleware pipeline. This is so that"},{"line_number":94,"context_line":"the encrypter can encrypt the object\u0027s data in a streaming fashion"},{"line_number":95,"context_line":"without buffering the whole object."},{"line_number":96,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_ad42963b","line":93,"updated":"2014-10-06 19:57:46.000000000","message":"In general, one should limit the handling of the key. Why is this approach better than having the encryptor (decryptor) request the key directly from the keymaster?","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"8f34186cea3514290a3621585cf1fd857eebff7e","unresolved":false,"context_lines":[{"line_number":90,"context_line":""},{"line_number":91,"context_line":"On a PUT or POST request, the keymaster must place the key in the WSGI"},{"line_number":92,"context_line":"environment during request processing; that is, before passing the"},{"line_number":93,"context_line":"request to the remainder of the middleware pipeline. This is so that"},{"line_number":94,"context_line":"the encrypter can encrypt the object\u0027s data in a streaming fashion"},{"line_number":95,"context_line":"without buffering the whole object."},{"line_number":96,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_d848088a","line":93,"in_reply_to":"baa201ad_ad42963b","updated":"2014-10-10 10:04:42.000000000","message":"I\u0027d also like to understand why this approach is taken. When designing such systems I want key retrieval as close to the crypto operations as possible.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"1fa56379f95c3c6da8c35cd7ae5056ab71e3aaf7","unresolved":false,"context_lines":[{"line_number":97,"context_line":"On a GET or HEAD request, the keymaster must place the key in the WSGI"},{"line_number":98,"context_line":"environment before returning control to the decrypter. It need not be"},{"line_number":99,"context_line":"done at request-handling time. This lets attributes of the key be"},{"line_number":100,"context_line":"stored in sysmeta, for example the key ID in an external database."},{"line_number":101,"context_line":""},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"3. Cryptographic Algorithm Choice"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_cb734d7e","line":100,"updated":"2014-10-06 15:05:48.000000000","message":"Sorry, I am from Barbican team and do not understand the internals of Swift. This part makes me nervous that key could be placed elsewhere. Could you elaborate more on this?","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"c9063157582fbd53e2837de5f7f95438560ef61b","unresolved":false,"context_lines":[{"line_number":97,"context_line":"On a GET or HEAD request, the keymaster must place the key in the WSGI"},{"line_number":98,"context_line":"environment before returning control to the decrypter. It need not be"},{"line_number":99,"context_line":"done at request-handling time. This lets attributes of the key be"},{"line_number":100,"context_line":"stored in sysmeta, for example the key ID in an external database."},{"line_number":101,"context_line":""},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"3. Cryptographic Algorithm Choice"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_ae9e9e05","line":100,"in_reply_to":"baa201ad_1808d02c","updated":"2014-10-10 11:46:45.000000000","message":"+1","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"8f34186cea3514290a3621585cf1fd857eebff7e","unresolved":false,"context_lines":[{"line_number":97,"context_line":"On a GET or HEAD request, the keymaster must place the key in the WSGI"},{"line_number":98,"context_line":"environment before returning control to the decrypter. It need not be"},{"line_number":99,"context_line":"done at request-handling time. This lets attributes of the key be"},{"line_number":100,"context_line":"stored in sysmeta, for example the key ID in an external database."},{"line_number":101,"context_line":""},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"3. Cryptographic Algorithm Choice"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_1808d02c","line":100,"in_reply_to":"baa201ad_cb734d7e","updated":"2014-10-10 10:04:42.000000000","message":"+1 (I\u0027m not Barbican so much as OSSG but echo Nathan\u0027s concerns)","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"28c56a2bdd85f717ab9baf048a58107d719852db","unresolved":false,"context_lines":[{"line_number":109,"context_line":""},{"line_number":110,"context_line":"The crypto engine uses AES-256 in Galois Counter Mode (GCM) for both"},{"line_number":111,"context_line":"secrecy and integrity. That\u0027s AES-256 in Counter (CTR) mode, plus"},{"line_number":112,"context_line":"Galois authentication."},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"The encryption mode is not operator-selectable. Choosing an encryption"},{"line_number":115,"context_line":"mode requires a good, up-to-date understanding of cryptography;"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_6d9d0e0a","line":112,"updated":"2014-10-06 19:57:46.000000000","message":"GCM is limited to encrypting 2**39 - 256 bits of plaintext for any given key and IV combination (http://csrc.nist.gov/publications/nistpubs/800-38D/SP-800-38D.pdf). How will files exceeding this limit be handled?","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"8f34186cea3514290a3621585cf1fd857eebff7e","unresolved":false,"context_lines":[{"line_number":109,"context_line":""},{"line_number":110,"context_line":"The crypto engine uses AES-256 in Galois Counter Mode (GCM) for both"},{"line_number":111,"context_line":"secrecy and integrity. That\u0027s AES-256 in Counter (CTR) mode, plus"},{"line_number":112,"context_line":"Galois authentication."},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"The encryption mode is not operator-selectable. Choosing an encryption"},{"line_number":115,"context_line":"mode requires a good, up-to-date understanding of cryptography;"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_f3388dd6","line":112,"in_reply_to":"baa201ad_00f6c78e","updated":"2014-10-10 10:04:42.000000000","message":"Needs to be documented or an error condition needs to be in there for this. This is crypto, we can\u0027t assume people will do sensible things.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"1d2854ced89aa98eddc65e8e1e3bf0b9c1c872ba","unresolved":false,"context_lines":[{"line_number":109,"context_line":""},{"line_number":110,"context_line":"The crypto engine uses AES-256 in Galois Counter Mode (GCM) for both"},{"line_number":111,"context_line":"secrecy and integrity. That\u0027s AES-256 in Counter (CTR) mode, plus"},{"line_number":112,"context_line":"Galois authentication."},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"The encryption mode is not operator-selectable. Choosing an encryption"},{"line_number":115,"context_line":"mode requires a good, up-to-date understanding of cryptography;"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_00f6c78e","line":112,"in_reply_to":"baa201ad_6d9d0e0a","updated":"2014-10-09 17:16:19.000000000","message":"Swift limits objects to 5 GiB by default (5 * 2**30), so files won\u0027t exceed this limit.\n\nLarger files are handled via large-object middleware, which (in essence) concatenates multiple objects into one big response. The large-object middlewares will both be to the left of the crypto-engine part of the pipeline, so the encrypter/decrypter need concern themselves only with normal (plain, small, \u003c\u003d 5 GiB) objects.\n\nI suppose an operator *could* configure their cluster to allow 512 GiB objects, but at that point GCM\u0027s limits are the least of their problems.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"c9063157582fbd53e2837de5f7f95438560ef61b","unresolved":false,"context_lines":[{"line_number":109,"context_line":""},{"line_number":110,"context_line":"The crypto engine uses AES-256 in Galois Counter Mode (GCM) for both"},{"line_number":111,"context_line":"secrecy and integrity. That\u0027s AES-256 in Counter (CTR) mode, plus"},{"line_number":112,"context_line":"Galois authentication."},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"The encryption mode is not operator-selectable. Choosing an encryption"},{"line_number":115,"context_line":"mode requires a good, up-to-date understanding of cryptography;"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_2ea9ce24","line":112,"in_reply_to":"baa201ad_f3388dd6","updated":"2014-10-10 11:46:45.000000000","message":"+1","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"5c183fbfcaaee5197a635e4f7e8d837168e2c0f0","unresolved":false,"context_lines":[{"line_number":116,"context_line":"choosing the wrong encryption mode has dire consequences. Requiring"},{"line_number":117,"context_line":"operators to pick encryption and authentication algorithms is an open"},{"line_number":118,"context_line":"invitation for them to get it wrong. Operators only have one choice"},{"line_number":119,"context_line":"here: use on-disk encryption or don\u0027t."},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"The encrypter will generate a per-object random IV on PUT, and the IV"},{"line_number":122,"context_line":"will be stored in object sysmeta. Also, the GCM auth tag will be"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_560700ca","line":119,"updated":"2014-10-06 14:38:52.000000000","message":"While a good intention, this introduces barriers to adoption. Corporate and government standards may require the use of specific algorithms and encryption modes, which may or may not include AES-256-GCM. Hard coding this setting forces the user\u0027s hand.\n\nThis also introduces fragility. Should vulnerabilities ever be discovered in AES-256 and/or GCM, users would be dependent upon a future patch. Alternatively, they would need to jump into the code base directly to change the setting. Neither is a good option.\n\nRather than dictate which algorithm to use, it would be better to set AES-256-GCM as the default algorithm from a set of choices. Users would need to go out of their way to switch to something different.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"c9063157582fbd53e2837de5f7f95438560ef61b","unresolved":false,"context_lines":[{"line_number":116,"context_line":"choosing the wrong encryption mode has dire consequences. Requiring"},{"line_number":117,"context_line":"operators to pick encryption and authentication algorithms is an open"},{"line_number":118,"context_line":"invitation for them to get it wrong. Operators only have one choice"},{"line_number":119,"context_line":"here: use on-disk encryption or don\u0027t."},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"The encrypter will generate a per-object random IV on PUT, and the IV"},{"line_number":122,"context_line":"will be stored in object sysmeta. Also, the GCM auth tag will be"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_8e355af9","line":119,"in_reply_to":"baa201ad_1392719f","updated":"2014-10-10 11:46:45.000000000","message":"+1","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"8f34186cea3514290a3621585cf1fd857eebff7e","unresolved":false,"context_lines":[{"line_number":116,"context_line":"choosing the wrong encryption mode has dire consequences. Requiring"},{"line_number":117,"context_line":"operators to pick encryption and authentication algorithms is an open"},{"line_number":118,"context_line":"invitation for them to get it wrong. Operators only have one choice"},{"line_number":119,"context_line":"here: use on-disk encryption or don\u0027t."},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"The encrypter will generate a per-object random IV on PUT, and the IV"},{"line_number":122,"context_line":"will be stored in object sysmeta. Also, the GCM auth tag will be"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_1392719f","line":119,"in_reply_to":"baa201ad_28fb9148","updated":"2014-10-10 10:04:42.000000000","message":"Completely agree, crypto needs to be configurable, by all means have sensible defaults and I\u0027d be happy to make sure a chapter gets added to the OpenStack Security Guide on the topic too but hard-coded Crypto is just bad practice. I\u0027m not suggesting that all ciphers and modes of operation should be supported and maybe to start off with all that works is the sensible default but hard-coded crypto is bad.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"28c56a2bdd85f717ab9baf048a58107d719852db","unresolved":false,"context_lines":[{"line_number":116,"context_line":"choosing the wrong encryption mode has dire consequences. Requiring"},{"line_number":117,"context_line":"operators to pick encryption and authentication algorithms is an open"},{"line_number":118,"context_line":"invitation for them to get it wrong. Operators only have one choice"},{"line_number":119,"context_line":"here: use on-disk encryption or don\u0027t."},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"The encrypter will generate a per-object random IV on PUT, and the IV"},{"line_number":122,"context_line":"will be stored in object sysmeta. Also, the GCM auth tag will be"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_5691c045","line":119,"in_reply_to":"baa201ad_560700ca","updated":"2014-10-06 19:57:46.000000000","message":"I strongly concur with Peter. A good default should be provided, but operators should be free to select alternative implementations.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":12430,"name":"Ed Reynolds","email":"ed.reynolds@hp.com"},"change_message_id":"7c656c3e081ee0f280667ec47a3d546b698e1bde","unresolved":false,"context_lines":[{"line_number":116,"context_line":"choosing the wrong encryption mode has dire consequences. Requiring"},{"line_number":117,"context_line":"operators to pick encryption and authentication algorithms is an open"},{"line_number":118,"context_line":"invitation for them to get it wrong. Operators only have one choice"},{"line_number":119,"context_line":"here: use on-disk encryption or don\u0027t."},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"The encrypter will generate a per-object random IV on PUT, and the IV"},{"line_number":122,"context_line":"will be stored in object sysmeta. Also, the GCM auth tag will be"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_28fb9148","line":119,"in_reply_to":"baa201ad_5691c045","updated":"2014-10-09 22:36:52.000000000","message":"I would also like to see selectable crypto algorithms and modes, with a well-reasoned default (your logic on AES GCM is sound).  Allowing operators to choose and set crypto modes will be required to meet some regulations and possibly export controls.  A list of supported ciphers and modes (like TLS negotiation) may be an option in the future, but a bit complex at this point.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"1d2854ced89aa98eddc65e8e1e3bf0b9c1c872ba","unresolved":false,"context_lines":[{"line_number":116,"context_line":"choosing the wrong encryption mode has dire consequences. Requiring"},{"line_number":117,"context_line":"operators to pick encryption and authentication algorithms is an open"},{"line_number":118,"context_line":"invitation for them to get it wrong. Operators only have one choice"},{"line_number":119,"context_line":"here: use on-disk encryption or don\u0027t."},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"The encrypter will generate a per-object random IV on PUT, and the IV"},{"line_number":122,"context_line":"will be stored in object sysmeta. Also, the GCM auth tag will be"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_c0b83f77","line":119,"in_reply_to":"baa201ad_5691c045","updated":"2014-10-09 17:16:19.000000000","message":"I\u0027ve got more to say about this, but briefly, consider a ranged GET request, i.e. one with a Range header set. At request time, we know nothing of the object, but we have to make sure to request enough bytes from the object server to be able to decrypt the thing.\n\nWith AES-256-CTR, we can just let the Range header go through untouched and decrypt the bytes that come back. We might have to do a little in-memory padding for pycrypto\u0027s sake, but that\u0027s it.\n\nIf we start allowing operators to select from some collection of ciphers and modes, then we have to make sure to get enough bytes that we can decrypt the range the client requested, regardless of what encryption method was used. That\u0027s extra code complexity and extra bytes transferred.\n\nThere\u0027s other stuff too. I\u0027ll say more about this in the next revision of the document.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"8f34186cea3514290a3621585cf1fd857eebff7e","unresolved":false,"context_lines":[{"line_number":120,"context_line":""},{"line_number":121,"context_line":"The encrypter will generate a per-object random IV on PUT, and the IV"},{"line_number":122,"context_line":"will be stored in object sysmeta. Also, the GCM auth tag will be"},{"line_number":123,"context_line":"stored in object sysmeta as well so that it can be checked later."},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"3.2. Justification of Cryptographic Algorithm"},{"line_number":126,"context_line":"---------------------------------------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_33bdb503","line":123,"updated":"2014-10-10 10:04:42.000000000","message":"Are there any strong entropy requirements around IV selection?","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"28c56a2bdd85f717ab9baf048a58107d719852db","unresolved":false,"context_lines":[{"line_number":123,"context_line":"stored in object sysmeta as well so that it can be checked later."},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"3.2. Justification of Cryptographic Algorithm"},{"line_number":126,"context_line":"---------------------------------------------"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"CTR mode basically turns a block cipher into a stream cipher, so"},{"line_number":129,"context_line":"dealing with range GET requests becomes much easier. No modification"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_0d71e243","line":126,"updated":"2014-10-06 19:57:46.000000000","message":"I understand that GCM is efficient, but this section should also highlight the security issues involved with the selection of GCM (especially in light of the prior subsection).","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"8f34186cea3514290a3621585cf1fd857eebff7e","unresolved":false,"context_lines":[{"line_number":138,"context_line":"instructions. See"},{"line_number":139,"context_line":"https://crypto.stanford.edu/RealWorldCrypto/slides/gueron.pdf for more"},{"line_number":140,"context_line":"details and benchmark results. Notably, it\u0027s significantly faster than"},{"line_number":141,"context_line":"AES-CTR-256 + HMAC-SHA1."},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"While it may seem reasonable to use HMAC-MD5 given that the encrypter"},{"line_number":144,"context_line":"will already have to compute the MD5 hash of the uploaded object (to"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_5372394a","line":141,"updated":"2014-10-10 10:04:42.000000000","message":"Will PyCrypto support using these extensions/instructions?","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"5c183fbfcaaee5197a635e4f7e8d837168e2c0f0","unresolved":false,"context_lines":[{"line_number":158,"context_line":"containing the MD5 hash of the key used to encrypt the object. The"},{"line_number":159,"context_line":"decrypter will compare the MD5 hash of the decryption key to the MD5"},{"line_number":160,"context_line":"hash stored in the object sysmeta and raise an error if they do not"},{"line_number":161,"context_line":"match."},{"line_number":162,"context_line":""},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"4.2 No Key"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_76a244fe","line":161,"updated":"2014-10-06 14:38:52.000000000","message":"The MD5 hash is vulnerable to collision attacks and should not be used for secure applications.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"28c56a2bdd85f717ab9baf048a58107d719852db","unresolved":false,"context_lines":[{"line_number":158,"context_line":"containing the MD5 hash of the key used to encrypt the object. The"},{"line_number":159,"context_line":"decrypter will compare the MD5 hash of the decryption key to the MD5"},{"line_number":160,"context_line":"hash stored in the object sysmeta and raise an error if they do not"},{"line_number":161,"context_line":"match."},{"line_number":162,"context_line":""},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"4.2 No Key"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_edd81e20","line":161,"updated":"2014-10-06 19:57:46.000000000","message":"Why store a hash of the encryption key instead of simply returning garbage?\n\nMore to the point, the keymaster returning the wrong key seems like an implementation error that should simply be avoided.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":11330,"name":"Christian Cachin","email":"cca@zurich.ibm.com","username":"cca88"},"change_message_id":"3d80c0862d865afdfdb2952894b5fd9139c337c8","unresolved":false,"context_lines":[{"line_number":158,"context_line":"containing the MD5 hash of the key used to encrypt the object. The"},{"line_number":159,"context_line":"decrypter will compare the MD5 hash of the decryption key to the MD5"},{"line_number":160,"context_line":"hash stored in the object sysmeta and raise an error if they do not"},{"line_number":161,"context_line":"match."},{"line_number":162,"context_line":""},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"4.2 No Key"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_1dd7e2c0","line":161,"in_reply_to":"baa201ad_0b92479f","updated":"2014-10-10 09:27:13.000000000","message":"I share Ed\u0027s concern, and the details can be subtle. From a cryptographic viewpoint, many times good engineering practice has led to catastrophic security failures.\n\nAs I have commented here before and explained in the revised draft specification, one has to consider the security model. If the attacker is assumed to never modify stored data, then counter mode is sufficient; no authentication needed. If the attacker may attempt to violate integrity, then cryptographically sound authenticated encryption should be used (like those in IEEE P1619.1).\n\nLet\u0027s not engage in ad-hoc crypto engineering.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"8f34186cea3514290a3621585cf1fd857eebff7e","unresolved":false,"context_lines":[{"line_number":158,"context_line":"containing the MD5 hash of the key used to encrypt the object. The"},{"line_number":159,"context_line":"decrypter will compare the MD5 hash of the decryption key to the MD5"},{"line_number":160,"context_line":"hash stored in the object sysmeta and raise an error if they do not"},{"line_number":161,"context_line":"match."},{"line_number":162,"context_line":""},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"4.2 No Key"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_535159d7","line":161,"in_reply_to":"baa201ad_1dd7e2c0","updated":"2014-10-10 10:04:42.000000000","message":"+1 Ed and Christian","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":12430,"name":"Ed Reynolds","email":"ed.reynolds@hp.com"},"change_message_id":"7c656c3e081ee0f280667ec47a3d546b698e1bde","unresolved":false,"context_lines":[{"line_number":158,"context_line":"containing the MD5 hash of the key used to encrypt the object. The"},{"line_number":159,"context_line":"decrypter will compare the MD5 hash of the decryption key to the MD5"},{"line_number":160,"context_line":"hash stored in the object sysmeta and raise an error if they do not"},{"line_number":161,"context_line":"match."},{"line_number":162,"context_line":""},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"4.2 No Key"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_0b92479f","line":161,"in_reply_to":"baa201ad_c03d9fde","updated":"2014-10-09 22:36:52.000000000","message":"I\u0027m not sure this is necessary (verify we have the correct key for decryption).  Even if a better hash is used (SHA-xxx).   Having this provides another check for known-ciphertext attacks (an attacker can check if his key guess is correct by comparing its hash).\n\nBetter to rely on integrity check of the plaintext itself, like a SHA HMAC of plaintext using a derived key, then encrypt the HMAC+PT).   Or GCM per your previous proposal above.\n\nPersonally, if the key manager or other code is using or getting the wrong key, I think it is better to expose that flaw early.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"1d2854ced89aa98eddc65e8e1e3bf0b9c1c872ba","unresolved":false,"context_lines":[{"line_number":158,"context_line":"containing the MD5 hash of the key used to encrypt the object. The"},{"line_number":159,"context_line":"decrypter will compare the MD5 hash of the decryption key to the MD5"},{"line_number":160,"context_line":"hash stored in the object sysmeta and raise an error if they do not"},{"line_number":161,"context_line":"match."},{"line_number":162,"context_line":""},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"4.2 No Key"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_c03d9fde","line":161,"in_reply_to":"baa201ad_edd81e20","updated":"2014-10-09 17:16:19.000000000","message":"I do not think implementation errors can \"simply be avoided\". If they could, there would be no need for bug-tracking software, nor would we even have a meaning for \"bug\" beyond the six-legged kind.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"8f34186cea3514290a3621585cf1fd857eebff7e","unresolved":false,"context_lines":[{"line_number":170,"context_line":"tell if an object is encrypted or not by the presence of system"},{"line_number":171,"context_line":"metadata headers (e.g. the MD5 hash of the encryption key), so the"},{"line_number":172,"context_line":"decrypter can prevent this by raising an error if no key was provided"},{"line_number":173,"context_line":"for the decryption of an encrypted object."},{"line_number":174,"context_line":""},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"4.3 Future Algorithm Change"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_d313890b","line":173,"updated":"2014-10-10 10:04:42.000000000","message":"Should this be considered adding as a valid feature? - should a client be able to say to Swift \"I\u0027d like you to send me the ciphertext object please, I\u0027ll fetch the key myself\" ?","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"1fef4623882790b3e5c8090dc39a86bdc94d8982","unresolved":false,"context_lines":[{"line_number":170,"context_line":"tell if an object is encrypted or not by the presence of system"},{"line_number":171,"context_line":"metadata headers (e.g. the MD5 hash of the encryption key), so the"},{"line_number":172,"context_line":"decrypter can prevent this by raising an error if no key was provided"},{"line_number":173,"context_line":"for the decryption of an encrypted object."},{"line_number":174,"context_line":""},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"4.3 Future Algorithm Change"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9aa7fdbe_152c344a","line":173,"in_reply_to":"baa201ad_d313890b","updated":"2014-10-18 00:17:36.000000000","message":"I can\u0027t really see a use case for it. If the client wants to handle its own keys, the client should encrypt its objects prior to sending them to Swift. \n\nThis sort of sounds like something for a client that doesn\u0027t fully trust the storage system with its objects\u0027 plaintext, so it seems like such a client would want to encrypt before uploading anyway.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":12430,"name":"Ed Reynolds","email":"ed.reynolds@hp.com"},"change_message_id":"7c656c3e081ee0f280667ec47a3d546b698e1bde","unresolved":false,"context_lines":[{"line_number":181,"context_line":"objects be decryptable as well. To facilitate this, the encrypter will"},{"line_number":182,"context_line":"store the encryption algorithm used in object sysmeta so that a future"},{"line_number":183,"context_line":"decrypter can use the correct algorithm for the object."},{"line_number":184,"context_line":""},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"5. Multiple Keymasters"},{"line_number":187,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_eb498333","line":184,"updated":"2014-10-09 22:36:52.000000000","message":"SSL and TLS have a list of crypto modes, key sizes, etc. I can\u0027t recall the RFC off hand)... but could be a future enhancement for a standard way of dealing with ever evolving set of crypto functions.  It can also enable some \u0027crypto migration and key rotation functions, which may be desirable.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"1fa56379f95c3c6da8c35cd7ae5056ab71e3aaf7","unresolved":false,"context_lines":[{"line_number":183,"context_line":"decrypter can use the correct algorithm for the object."},{"line_number":184,"context_line":""},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"5. Multiple Keymasters"},{"line_number":187,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"5.1 Coexisting Keymasters"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_71896e74","line":186,"updated":"2014-10-06 15:05:48.000000000","message":"Have you considered using the KeyManager interface that is in Cinder and Nova? Could you provide more details on the KeyMaster and if the KeyManager interface would work? One thing I am pushing for is a common KeyManager interface that should be put into Oslo.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"8f34186cea3514290a3621585cf1fd857eebff7e","unresolved":false,"context_lines":[{"line_number":183,"context_line":"decrypter can use the correct algorithm for the object."},{"line_number":184,"context_line":""},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"5. Multiple Keymasters"},{"line_number":187,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"5.1 Coexisting Keymasters"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_33f055c9","line":186,"in_reply_to":"baa201ad_4000cf01","updated":"2014-10-10 10:04:42.000000000","message":"Interesting, why such a hard sell? Maybe we can talk more about this, it\u0027s an area that the OSSG could help provide support.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"8f34186cea3514290a3621585cf1fd857eebff7e","unresolved":false,"context_lines":[{"line_number":183,"context_line":"decrypter can use the correct algorithm for the object."},{"line_number":184,"context_line":""},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"5. Multiple Keymasters"},{"line_number":187,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"5.1 Coexisting Keymasters"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_93d74123","line":186,"in_reply_to":"baa201ad_71896e74","updated":"2014-10-10 10:04:42.000000000","message":"Completely agree","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"1d2854ced89aa98eddc65e8e1e3bf0b9c1c872ba","unresolved":false,"context_lines":[{"line_number":183,"context_line":"decrypter can use the correct algorithm for the object."},{"line_number":184,"context_line":""},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"5. Multiple Keymasters"},{"line_number":187,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"5.1 Coexisting Keymasters"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_4000cf01","line":186,"in_reply_to":"baa201ad_71896e74","updated":"2014-10-09 17:16:19.000000000","message":"Cryptography in Swift is hard enough to sell to most of the core team without Oslo in it. Adding in stuff from oslo-incubator will result in either -2s or a total lack of reviews, depending on how cores are feeling that day.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"c9063157582fbd53e2837de5f7f95438560ef61b","unresolved":false,"context_lines":[{"line_number":183,"context_line":"decrypter can use the correct algorithm for the object."},{"line_number":184,"context_line":""},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"5. Multiple Keymasters"},{"line_number":187,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"5.1 Coexisting Keymasters"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_ac494790","line":186,"in_reply_to":"baa201ad_93d74123","updated":"2014-10-10 11:46:45.000000000","message":"I would love to see stuff moved to shared location as crypto stuff starts to emerge and coalesce in various projects. Im curious why the hard sell on Oslo as well?","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"1fef4623882790b3e5c8090dc39a86bdc94d8982","unresolved":false,"context_lines":[{"line_number":183,"context_line":"decrypter can use the correct algorithm for the object."},{"line_number":184,"context_line":""},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"5. Multiple Keymasters"},{"line_number":187,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"5.1 Coexisting Keymasters"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9aa7fdbe_0f37c5b1","line":186,"in_reply_to":"baa201ad_ac494790","updated":"2014-10-18 00:17:36.000000000","message":"Oslo *libraries* are no harder to include than any other dependency, although for ease of installation, new dependencies are typically not introduced unless clearly necessary.\n\nOslo *incubator* disregards the last 40 years\u0027 worth of thinking around shared libraries and makes you copy and paste their code into your source tree. I\u0027ve never seen another Python library that does that, and if I ever do, I won\u0027t use that one either. It also becomes much harder to change or extend things in oslo-incubator since your change has to go through Oslo\u0027s set of core reviewers to land in the library, then has to go through Swift\u0027s (or other project\u0027s) core reviewers to get used. Then you get the problem of oslo-incubator updates breaking your stuff, the noisy \"update oslo\" commits, the transitive dependencies from oslo-incubator\u0027s requirements.txt that you may or may not need depending on which pieces you actually use... it\u0027s just a big mess.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"1fa56379f95c3c6da8c35cd7ae5056ab71e3aaf7","unresolved":false,"context_lines":[{"line_number":198,"context_line":"5.2 Keymasters in Core Swift"},{"line_number":199,"context_line":"----------------------------"},{"line_number":200,"context_line":""},{"line_number":201,"context_line":"5.2.1 Trivial Keymaster"},{"line_number":202,"context_line":"^^^^^^^^^^^^^^^^^^^^^^^"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"Swift will need a trivial keymaster for functional tests of the crypto"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_91c892a9","line":201,"updated":"2014-10-06 15:05:48.000000000","message":"There is a ConfKeyManager in Cinder that uses a static key for all encryption/decryption. That is used only for testing. You could reuse that here if KeyManager interface works for you.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"5c183fbfcaaee5197a635e4f7e8d837168e2c0f0","unresolved":false,"context_lines":[{"line_number":215,"context_line":"This will allow for testing of the PUT and GET paths, the COPY path"},{"line_number":216,"context_line":"(the destination object\u0027s key will differ from the source object\u0027s),"},{"line_number":217,"context_line":"and also the invalid key path (by changing the prefix after an object"},{"line_number":218,"context_line":"is PUT)."},{"line_number":219,"context_line":""},{"line_number":220,"context_line":"5.2.2 Barbican Keymaster"},{"line_number":221,"context_line":"^^^^^^^^^^^^^^^^^^^^^^^^"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_36151ce5","line":218,"updated":"2014-10-06 14:38:52.000000000","message":"There has been work done previously on integrating key management with Cinder and Nova, including the use of dummy key managers for testing purposes.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"1fa56379f95c3c6da8c35cd7ae5056ab71e3aaf7","unresolved":false,"context_lines":[{"line_number":217,"context_line":"and also the invalid key path (by changing the prefix after an object"},{"line_number":218,"context_line":"is PUT)."},{"line_number":219,"context_line":""},{"line_number":220,"context_line":"5.2.2 Barbican Keymaster"},{"line_number":221,"context_line":"^^^^^^^^^^^^^^^^^^^^^^^^"},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"Swift will probably want a keymaster that stores things in Barbican at"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_11bca205","line":220,"updated":"2014-10-06 15:05:48.000000000","message":"Cinder has BarbicanKeyManager.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"1d2854ced89aa98eddc65e8e1e3bf0b9c1c872ba","unresolved":false,"context_lines":[{"line_number":217,"context_line":"and also the invalid key path (by changing the prefix after an object"},{"line_number":218,"context_line":"is PUT)."},{"line_number":219,"context_line":""},{"line_number":220,"context_line":"5.2.2 Barbican Keymaster"},{"line_number":221,"context_line":"^^^^^^^^^^^^^^^^^^^^^^^^"},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"Swift will probably want a keymaster that stores things in Barbican at"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_4b2b7633","line":220,"in_reply_to":"baa201ad_11bca205","updated":"2014-10-09 17:16:19.000000000","message":"Swift developers already have Zuul (tests) and Gatekeeper (a middleware). It would be a terrible missed opportunity if we wound up with Zuul, the Gatekeeper, and the Key...Manager.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"c9063157582fbd53e2837de5f7f95438560ef61b","unresolved":false,"context_lines":[{"line_number":217,"context_line":"and also the invalid key path (by changing the prefix after an object"},{"line_number":218,"context_line":"is PUT)."},{"line_number":219,"context_line":""},{"line_number":220,"context_line":"5.2.2 Barbican Keymaster"},{"line_number":221,"context_line":"^^^^^^^^^^^^^^^^^^^^^^^^"},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"Swift will probably want a keymaster that stores things in Barbican at"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_6c759f31","line":220,"in_reply_to":"baa201ad_4b2b7633","updated":"2014-10-10 11:46:45.000000000","message":"+1","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"8f34186cea3514290a3621585cf1fd857eebff7e","unresolved":false,"context_lines":[{"line_number":221,"context_line":"^^^^^^^^^^^^^^^^^^^^^^^^"},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"Swift will probably want a keymaster that stores things in Barbican at"},{"line_number":224,"context_line":"some point."},{"line_number":225,"context_line":""},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"6. Metadata Encryption"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_339e9564","line":224,"updated":"2014-10-10 10:04:42.000000000","message":"That\u0027s something I\u0027d like to help make happen.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"1fef4623882790b3e5c8090dc39a86bdc94d8982","unresolved":false,"context_lines":[{"line_number":221,"context_line":"^^^^^^^^^^^^^^^^^^^^^^^^"},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"Swift will probably want a keymaster that stores things in Barbican at"},{"line_number":224,"context_line":"some point."},{"line_number":225,"context_line":""},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"6. Metadata Encryption"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9aa7fdbe_2fa649c2","line":224,"in_reply_to":"baa201ad_339e9564","updated":"2014-10-18 00:17:36.000000000","message":"Sounds good to me. Hop into #openstack-swift sometime and talk to torgomatic (me), notmyname (John Dickinson), or anyone else who\u0027s there and interested.\n\nOne requirement to think about beforehand is the ability to use Barbican without Keystone. Swift has pluggable auth systems, so while Swift certainly supports use of Keystone, not all Swift deployments use it, and so it probably shouldn\u0027t be required. (One could restrict use of the Barbican keymaster to Keystone-using deployments, but that seems like a missed opportunity to me.)","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"28c56a2bdd85f717ab9baf048a58107d719852db","unresolved":false,"context_lines":[{"line_number":246,"context_line":"Careful selection of counter values for etag encryption will be"},{"line_number":247,"context_line":"required. Re-use of a counter for two different metadata items will"},{"line_number":248,"context_line":"make metadata trivially decryptable by any attacker who understands"},{"line_number":249,"context_line":"how XOR works."},{"line_number":250,"context_line":""},{"line_number":251,"context_line":""},{"line_number":252,"context_line":"6.2 System Metadata"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_6d6b4ef1","line":249,"updated":"2014-10-06 19:57:46.000000000","message":"How will reuse be precluded? (I\u0027d like to see this information as part of the specification given its importance.)","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"1d2854ced89aa98eddc65e8e1e3bf0b9c1c872ba","unresolved":false,"context_lines":[{"line_number":246,"context_line":"Careful selection of counter values for etag encryption will be"},{"line_number":247,"context_line":"required. Re-use of a counter for two different metadata items will"},{"line_number":248,"context_line":"make metadata trivially decryptable by any attacker who understands"},{"line_number":249,"context_line":"how XOR works."},{"line_number":250,"context_line":""},{"line_number":251,"context_line":""},{"line_number":252,"context_line":"6.2 System Metadata"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_eb6d0a9b","line":249,"in_reply_to":"baa201ad_6d6b4ef1","updated":"2014-10-09 17:16:19.000000000","message":"Well, the encrypter middleware is responsible for those values, so it can pick different ones.\n\nProbably easier to go with a distinct IV per metadata value, though. That\u0027ll be less fighting against pycrypto since pycrypto wants counters to start at 0. It\u0027ll also allow for Linux AF_ALG sockets someday; those don\u0027t expose any interface for starting at a counter \u003e 0.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"28c56a2bdd85f717ab9baf048a58107d719852db","unresolved":false,"context_lines":[{"line_number":268,"context_line":""},{"line_number":269,"context_line":"Since the MD5 of the plaintext is sensitive enough to be stored"},{"line_number":270,"context_line":"encrypted, it seems foolish to then store it in the clear in the"},{"line_number":271,"context_line":"container database. Note that this *will not* break SLO, since it"},{"line_number":272,"context_line":"relies on object HEAD requests for manifest validation, and then it"},{"line_number":273,"context_line":"checks etags against the headers on GET responses. Also, this *will"},{"line_number":274,"context_line":"not* break DLO, since DLOs don\u0027t check etags at all."}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_0d53a239","line":271,"updated":"2014-10-06 19:57:46.000000000","message":"Please expand acronyms.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"28c56a2bdd85f717ab9baf048a58107d719852db","unresolved":false,"context_lines":[{"line_number":271,"context_line":"container database. Note that this *will not* break SLO, since it"},{"line_number":272,"context_line":"relies on object HEAD requests for manifest validation, and then it"},{"line_number":273,"context_line":"checks etags against the headers on GET responses. Also, this *will"},{"line_number":274,"context_line":"not* break DLO, since DLOs don\u0027t check etags at all."},{"line_number":275,"context_line":""},{"line_number":276,"context_line":""},{"line_number":277,"context_line":"7. Open Questions"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_2d330615","line":274,"updated":"2014-10-06 19:57:46.000000000","message":"Ditto on acronym.","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"c9063157582fbd53e2837de5f7f95438560ef61b","unresolved":false,"context_lines":[{"line_number":271,"context_line":"container database. Note that this *will not* break SLO, since it"},{"line_number":272,"context_line":"relies on object HEAD requests for manifest validation, and then it"},{"line_number":273,"context_line":"checks etags against the headers on GET responses. Also, this *will"},{"line_number":274,"context_line":"not* break DLO, since DLOs don\u0027t check etags at all."},{"line_number":275,"context_line":""},{"line_number":276,"context_line":""},{"line_number":277,"context_line":"7. Open Questions"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baa201ad_6cfbdf47","line":274,"in_reply_to":"baa201ad_2d330615","updated":"2014-10-10 11:46:45.000000000","message":"+1","commit_id":"f1b7e3b92bfd43725adc206d7e56fa85922733ef"}],"specs/swift/storage_encryption.rst":[{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"1033defd978c8c16740a0e45591c6e3aa2033acd","unresolved":false,"context_lines":[{"line_number":12,"context_line":"1. Goals"},{"line_number":13,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"To better protect the data in their clusters, Swift clients and"},{"line_number":16,"context_line":"operators may wish to have objects stored in an encrypted form. This"},{"line_number":17,"context_line":"spec describes a plan to add an encryption capability to Swift."},{"line_number":18,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_80052216","line":15,"updated":"2014-10-12 12:21:05.000000000","message":"maybe users rather than clients to avoid ambiguity between API clients and people who want to use swift?","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":330,"name":"John Dickinson","email":"me@not.mn","username":"notmyname"},"change_message_id":"1e30dd4217a19b8a289733c4e649082024497464","unresolved":false,"context_lines":[{"line_number":12,"context_line":"1. Goals"},{"line_number":13,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"To better protect the data in their clusters, Swift clients and"},{"line_number":16,"context_line":"operators may wish to have objects stored in an encrypted form. This"},{"line_number":17,"context_line":"spec describes a plan to add an encryption capability to Swift."},{"line_number":18,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_311bcacb","line":15,"in_reply_to":"baa201ad_80052216","updated":"2014-10-13 03:10:12.000000000","message":"In this case \"clients\" is the right word. There are two users of swift (note how overloaded \"users\" is): deployers and API clients. Either you are an operator on a Swift cluster, or you interact with it via the API. There isn\u0027t a need for a new term or further distinguishing nuance here.\n\nPlease stick with \"client\".","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"1033defd978c8c16740a0e45591c6e3aa2033acd","unresolved":false,"context_lines":[{"line_number":17,"context_line":"spec describes a plan to add an encryption capability to Swift."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Storage encryption for Swift is concerned with encrypting objects on"},{"line_number":20,"context_line":"the proxy server. It addresses a broader scope than disk-level"},{"line_number":21,"context_line":"encryption, where data is encrypted by the disk or near the disk"},{"line_number":22,"context_line":"interface. The present encryption design protects objects at a higher"},{"line_number":23,"context_line":"level and against a broader set of attacks than disk encryption. The"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_fb1f7f59","line":20,"updated":"2014-10-12 12:21:05.000000000","message":"It doesn\u0027t _have_ to be done on the proxy server but that\u0027s by far the simplest way to do it. So this sentance should be made more specific to this proposal.\n\nPossibly:\nThis draft for Swift storage encryption is concerned with...","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"1033defd978c8c16740a0e45591c6e3aa2033acd","unresolved":false,"context_lines":[{"line_number":19,"context_line":"Storage encryption for Swift is concerned with encrypting objects on"},{"line_number":20,"context_line":"the proxy server. It addresses a broader scope than disk-level"},{"line_number":21,"context_line":"encryption, where data is encrypted by the disk or near the disk"},{"line_number":22,"context_line":"interface. The present encryption design protects objects at a higher"},{"line_number":23,"context_line":"level and against a broader set of attacks than disk encryption. The"},{"line_number":24,"context_line":"storage encryption design allows to use different keys and key"},{"line_number":25,"context_line":"managers depending on the account and owner of objects, especially for"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_bb4c1778","line":22,"updated":"2014-10-12 12:21:05.000000000","message":"Again consider not making this statement so broad, consider : This encryption design...","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"3390e532149d6ff05d8e2fd780ecf7d00ad339e8","unresolved":false,"context_lines":[{"line_number":21,"context_line":"encryption, where data is encrypted by the disk or near the disk"},{"line_number":22,"context_line":"interface. The present encryption design protects objects at a higher"},{"line_number":23,"context_line":"level and against a broader set of attacks than disk encryption. The"},{"line_number":24,"context_line":"storage encryption design allows to use different keys and key"},{"line_number":25,"context_line":"managers depending on the account and owner of objects, especially for"},{"line_number":26,"context_line":"supporting clusters that serve to multiple non-trusting clients."},{"line_number":27,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_00269268","line":24,"updated":"2014-10-10 14:00:05.000000000","message":"...design allows for the use of different keys...","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"1033defd978c8c16740a0e45591c6e3aa2033acd","unresolved":false,"context_lines":[{"line_number":30,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Swift objects are processed by stateless proxy servers, stored on"},{"line_number":33,"context_line":"object servers, and travel over a network between them. Metadata is"},{"line_number":34,"context_line":"stored on further servers. This spec describes a way to minimize the"},{"line_number":35,"context_line":"information leaked when an attacker can get access to a Swift cluster"},{"line_number":36,"context_line":"or parts of it. Encryption is performed in the proxy server; the"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_5b3debba","line":33,"updated":"2014-10-12 12:21:05.000000000","message":"Swift makes no guarantees about the state or safety of this network, part of the attack model and should probably be mentioned.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"1033defd978c8c16740a0e45591c6e3aa2033acd","unresolved":false,"context_lines":[{"line_number":32,"context_line":"Swift objects are processed by stateless proxy servers, stored on"},{"line_number":33,"context_line":"object servers, and travel over a network between them. Metadata is"},{"line_number":34,"context_line":"stored on further servers. This spec describes a way to minimize the"},{"line_number":35,"context_line":"information leaked when an attacker can get access to a Swift cluster"},{"line_number":36,"context_line":"or parts of it. Encryption is performed in the proxy server; the"},{"line_number":37,"context_line":"internal network and the object servers only get to see protected"},{"line_number":38,"context_line":"data."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_aff83c4a","line":35,"updated":"2014-10-12 12:21:05.000000000","message":"s/can get/gains/","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"1033defd978c8c16740a0e45591c6e3aa2033acd","unresolved":false,"context_lines":[{"line_number":56,"context_line":"warranty; since it has failed, erasing the data may not be possible,"},{"line_number":57,"context_line":"but the data may still be present on the platters. When disks reach"},{"line_number":58,"context_line":"end-of-life, they are discarded, and if not properly wiped, may still"},{"line_number":59,"context_line":"contain data. An attacker may simply break into the data center and"},{"line_number":60,"context_line":"steal disks."},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"**Attack on object server**"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_ef996420","line":59,"updated":"2014-10-12 12:21:05.000000000","message":"A malicious insider / rouge data centre employee should be mentioned here, in fact I\u0027d say more likely than some random attacker making off with hardware.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"1033defd978c8c16740a0e45591c6e3aa2033acd","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"**Attack on object server**"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"An attacker may get user-level or root access to an object server,"},{"line_number":65,"context_line":"where it may read objects from the file system, or even modify them,"},{"line_number":66,"context_line":"or even modify the server process."},{"line_number":67,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_0f9f8804","line":64,"updated":"2014-10-12 12:21:05.000000000","message":"s/get/gain/","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"1033defd978c8c16740a0e45591c6e3aa2033acd","unresolved":false,"context_lines":[{"line_number":62,"context_line":"**Attack on object server**"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"An attacker may get user-level or root access to an object server,"},{"line_number":65,"context_line":"where it may read objects from the file system, or even modify them,"},{"line_number":66,"context_line":"or even modify the server process."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"**Attack on cluster network**"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_4f88b0c6","line":65,"updated":"2014-10-12 12:21:05.000000000","message":"s/it/they","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":11861,"name":"Travis McPeak","email":"tmcpeak@us.ibm.com","username":"travis-mcpeak"},"change_message_id":"c62071165e6e296559a4c202b592a318907b7005","unresolved":false,"context_lines":[{"line_number":63,"context_line":""},{"line_number":64,"context_line":"An attacker may get user-level or root access to an object server,"},{"line_number":65,"context_line":"where it may read objects from the file system, or even modify them,"},{"line_number":66,"context_line":"or even modify the server process."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"**Attack on cluster network**"},{"line_number":69,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_7f6f582b","line":66,"updated":"2014-10-16 22:01:36.000000000","message":"Do we want to mention malware here or is this basically the same as an attacker?","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"6ac0720112bb77f2341012e899e4497e30accfb0","unresolved":false,"context_lines":[{"line_number":80,"context_line":"This design protects objects from being leaked due to attacks on the"},{"line_number":81,"context_line":"disks, on the object servers, and on the cluster. It does not protect"},{"line_number":82,"context_line":"objects from attack on the proxy servers, and it does not protect against"},{"line_number":83,"context_line":"data loss caused by attackers."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"For protection against exposure on disk alone, storage encryption on"},{"line_number":86,"context_line":"the proxy server would be overkill. If the goal of encryption in Swift"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_6cee74b6","line":83,"updated":"2014-10-10 18:48:40.000000000","message":"Are you going to provide data integrity as well as confidentiality? You hint at it, but I\u0027m not sure if you will be doing that in addition to the encryption.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"1033defd978c8c16740a0e45591c6e3aa2033acd","unresolved":false,"context_lines":[{"line_number":80,"context_line":"This design protects objects from being leaked due to attacks on the"},{"line_number":81,"context_line":"disks, on the object servers, and on the cluster. It does not protect"},{"line_number":82,"context_line":"objects from attack on the proxy servers, and it does not protect against"},{"line_number":83,"context_line":"data loss caused by attackers."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"For protection against exposure on disk alone, storage encryption on"},{"line_number":86,"context_line":"the proxy server would be overkill. If the goal of encryption in Swift"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_cfbbc073","line":83,"in_reply_to":"baa201ad_01c76a13","updated":"2014-10-12 12:21:05.000000000","message":"Yeah hmac makes a lot of sense if it runs that way, easy enough to put it in the metadata I would think.\n\nAlso worth keeping in mind that integrity failures don\u0027t necessarily indicate compromised systems, broken disks etc will flip bits from time to time.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":12430,"name":"Ed Reynolds","email":"ed.reynolds@hp.com"},"change_message_id":"cd77f61cc4a767214d6d60e28f1a545a2f1c6f02","unresolved":false,"context_lines":[{"line_number":80,"context_line":"This design protects objects from being leaked due to attacks on the"},{"line_number":81,"context_line":"disks, on the object servers, and on the cluster. It does not protect"},{"line_number":82,"context_line":"objects from attack on the proxy servers, and it does not protect against"},{"line_number":83,"context_line":"data loss caused by attackers."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"For protection against exposure on disk alone, storage encryption on"},{"line_number":86,"context_line":"the proxy server would be overkill. If the goal of encryption in Swift"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_01c76a13","line":83,"in_reply_to":"baa201ad_6cee74b6","updated":"2014-10-10 22:25:35.000000000","message":"I see discussion below of using AES-GCM mode for both confidentiality and integrity.  If using AES-256-CBC and HMAC-SHA512, I would suggest computing the HMAC over the plaintext, prepending, and then encrypting.  I would think users are concerned more about integrity of plaintext vs. the resulting ciphertext.\n\nC \u003d Enc(key, (HMAC(P) | P))\n\nIf the ciphertext gets garbled, the decryption will run, but the subsequent hash verification will fail, indicating corruption.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"3390e532149d6ff05d8e2fd780ecf7d00ad339e8","unresolved":false,"context_lines":[{"line_number":84,"context_line":""},{"line_number":85,"context_line":"For protection against exposure on disk alone, storage encryption on"},{"line_number":86,"context_line":"the proxy server would be overkill. If the goal of encryption in Swift"},{"line_number":87,"context_line":"were limited to this, then that goal could be achieved with easier"},{"line_number":88,"context_line":"with file-system encryption or with device encryption on the object"},{"line_number":89,"context_line":"servers (for example, ecryptfs or dm-crypt/LUKS on Linux)."},{"line_number":90,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_40e6da17","line":87,"updated":"2014-10-10 14:00:05.000000000","message":"...could be achieved with file-system...","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"1033defd978c8c16740a0e45591c6e3aa2033acd","unresolved":false,"context_lines":[{"line_number":101,"context_line":"  * an attacker gains access to the proxy nodes or other services such"},{"line_number":102,"context_line":"    as authentication servers or key managers"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"  * an attacker modifies Swift\u0027s code"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"If these threats are mitigated at all, it is a fortunate byproduct, but it is"},{"line_number":107,"context_line":"not the intent of this spec to address them."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_2fbb6c73","line":104,"updated":"2014-10-12 12:21:05.000000000","message":"Upstream modifications?","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":330,"name":"John Dickinson","email":"me@not.mn","username":"notmyname"},"change_message_id":"1e30dd4217a19b8a289733c4e649082024497464","unresolved":false,"context_lines":[{"line_number":101,"context_line":"  * an attacker gains access to the proxy nodes or other services such"},{"line_number":102,"context_line":"    as authentication servers or key managers"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"  * an attacker modifies Swift\u0027s code"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"If these threats are mitigated at all, it is a fortunate byproduct, but it is"},{"line_number":107,"context_line":"not the intent of this spec to address them."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_1177a603","line":104,"in_reply_to":"baa201ad_2fbb6c73","updated":"2014-10-13 03:10:12.000000000","message":"no. more like \"attacker changes the code running on the box\"","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":11861,"name":"Travis McPeak","email":"tmcpeak@us.ibm.com","username":"travis-mcpeak"},"change_message_id":"c62071165e6e296559a4c202b592a318907b7005","unresolved":false,"context_lines":[{"line_number":102,"context_line":"    as authentication servers or key managers"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"  * an attacker modifies Swift\u0027s code"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"If these threats are mitigated at all, it is a fortunate byproduct, but it is"},{"line_number":107,"context_line":"not the intent of this spec to address them."},{"line_number":108,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_3fe790ad","line":105,"updated":"2014-10-16 22:01:36.000000000","message":"Do we want to mention memory scraping here?","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"6ac0720112bb77f2341012e899e4497e30accfb0","unresolved":false,"context_lines":[{"line_number":113,"context_line":"There are two logical parts to data encryption on the proxy"},{"line_number":114,"context_line":"server. The first part is the crypto engine; this performs the actual"},{"line_number":115,"context_line":"encryption and decryption of the data and metadata, and it also takes"},{"line_number":116,"context_line":"care of any necessary data integrity (a.k.a. authentication) functions."},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"The second part is the keymaster. This is the part responsible for"},{"line_number":119,"context_line":"retrieving the secret key for the requested object."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_2c3b8c39","line":116,"updated":"2014-10-10 18:48:40.000000000","message":"When you say authentication, I assume you mean authenticating the data and not the user. Right?","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":12430,"name":"Ed Reynolds","email":"ed.reynolds@hp.com"},"change_message_id":"cd77f61cc4a767214d6d60e28f1a545a2f1c6f02","unresolved":false,"context_lines":[{"line_number":113,"context_line":"There are two logical parts to data encryption on the proxy"},{"line_number":114,"context_line":"server. The first part is the crypto engine; this performs the actual"},{"line_number":115,"context_line":"encryption and decryption of the data and metadata, and it also takes"},{"line_number":116,"context_line":"care of any necessary data integrity (a.k.a. authentication) functions."},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"The second part is the keymaster. This is the part responsible for"},{"line_number":119,"context_line":"retrieving the secret key for the requested object."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_81f8bac5","line":116,"in_reply_to":"baa201ad_2c3b8c39","updated":"2014-10-10 22:25:35.000000000","message":"+1  I suggest removing (a.k.a. authentication) from this sentence. I don\u0027t intend to knit-pick, as I believe you are addressing data integrity, which is achieved via a Message AUTHENTICATION Code (MAC).  But most security folks associate the word \"authentication\" with users and IDM.  Integrity is read as applying to data.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"1033defd978c8c16740a0e45591c6e3aa2033acd","unresolved":false,"context_lines":[{"line_number":113,"context_line":"There are two logical parts to data encryption on the proxy"},{"line_number":114,"context_line":"server. The first part is the crypto engine; this performs the actual"},{"line_number":115,"context_line":"encryption and decryption of the data and metadata, and it also takes"},{"line_number":116,"context_line":"care of any necessary data integrity (a.k.a. authentication) functions."},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"The second part is the keymaster. This is the part responsible for"},{"line_number":119,"context_line":"retrieving the secret key for the requested object."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_afa67c51","line":116,"in_reply_to":"baa201ad_81f8bac5","updated":"2014-10-12 12:21:05.000000000","message":"Unless this is directly implying use of GCM?","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"6ac0720112bb77f2341012e899e4497e30accfb0","unresolved":false,"context_lines":[{"line_number":120,"context_line":""},{"line_number":121,"context_line":"The crypto engine and the keymaster shall be implemented as three"},{"line_number":122,"context_line":"separate pieces of middleware. The crypto engine shall have both"},{"line_number":123,"context_line":"\"decrypter\" and \"encrypter\" filter-factory functions, and the"},{"line_number":124,"context_line":"\"keymaster\" filter shall sit between them. Example::"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    [pipeline:main]"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_4cfb7047","line":123,"updated":"2014-10-10 18:48:40.000000000","message":"Why not put the key master in the decryptor and encryptor? What is the advantage of pulling it out into its own middleware?","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"a7163864467fb2ec8bc8e39f541bef31504c1859","unresolved":false,"context_lines":[{"line_number":120,"context_line":""},{"line_number":121,"context_line":"The crypto engine and the keymaster shall be implemented as three"},{"line_number":122,"context_line":"separate pieces of middleware. The crypto engine shall have both"},{"line_number":123,"context_line":"\"decrypter\" and \"encrypter\" filter-factory functions, and the"},{"line_number":124,"context_line":"\"keymaster\" filter shall sit between them. Example::"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    [pipeline:main]"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_2b2c204a","line":123,"in_reply_to":"baa201ad_0f6dc804","updated":"2014-10-13 21:42:28.000000000","message":"There are lots of ways to handle key management. By separating the crypto from the key management, we let different deployments do different things to handle keys.\n\nAlso, an attacker getting root on the proxy server and reading its memory is well outside the scope of the threats this spec is trying to address.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"b581b22eab1a993f797dc2ab3143a1adcf17f143","unresolved":false,"context_lines":[{"line_number":120,"context_line":""},{"line_number":121,"context_line":"The crypto engine and the keymaster shall be implemented as three"},{"line_number":122,"context_line":"separate pieces of middleware. The crypto engine shall have both"},{"line_number":123,"context_line":"\"decrypter\" and \"encrypter\" filter-factory functions, and the"},{"line_number":124,"context_line":"\"keymaster\" filter shall sit between them. Example::"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    [pipeline:main]"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_c179a9fd","line":123,"in_reply_to":"baa201ad_2b2c204a","updated":"2014-10-14 08:57:23.000000000","message":"Root is required to read memory, information disclosures exist at all levels of the system and heatbleed is a great demonstration of that.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":12430,"name":"Ed Reynolds","email":"ed.reynolds@hp.com"},"change_message_id":"cd77f61cc4a767214d6d60e28f1a545a2f1c6f02","unresolved":false,"context_lines":[{"line_number":120,"context_line":""},{"line_number":121,"context_line":"The crypto engine and the keymaster shall be implemented as three"},{"line_number":122,"context_line":"separate pieces of middleware. The crypto engine shall have both"},{"line_number":123,"context_line":"\"decrypter\" and \"encrypter\" filter-factory functions, and the"},{"line_number":124,"context_line":"\"keymaster\" filter shall sit between them. Example::"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    [pipeline:main]"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_012cca49","line":123,"in_reply_to":"baa201ad_4cfb7047","updated":"2014-10-10 22:25:35.000000000","message":"+1","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"1033defd978c8c16740a0e45591c6e3aa2033acd","unresolved":false,"context_lines":[{"line_number":120,"context_line":""},{"line_number":121,"context_line":"The crypto engine and the keymaster shall be implemented as three"},{"line_number":122,"context_line":"separate pieces of middleware. The crypto engine shall have both"},{"line_number":123,"context_line":"\"decrypter\" and \"encrypter\" filter-factory functions, and the"},{"line_number":124,"context_line":"\"keymaster\" filter shall sit between them. Example::"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    [pipeline:main]"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_0f6dc804","line":123,"in_reply_to":"baa201ad_4cfb7047","updated":"2014-10-12 12:21:05.000000000","message":"In general you want key management as close to the crypto functions as possible, you want to pull in the key, use it and purge it in the shortest possible number of operations.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":11861,"name":"Travis McPeak","email":"tmcpeak@us.ibm.com","username":"travis-mcpeak"},"change_message_id":"c62071165e6e296559a4c202b592a318907b7005","unresolved":false,"context_lines":[{"line_number":126,"context_line":"    [pipeline:main]"},{"line_number":127,"context_line":"    pipeline \u003d catch_errors gatekeeper ... decrypter keymaster encrypter proxy-logging proxy-server"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"A configuration that has only one of encrypter and decrypter present "},{"line_number":130,"context_line":"is not permitted."},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"The encrypter middleware is responsible for encrypting and authenticating"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_bfa8e020","line":129,"updated":"2014-10-16 22:01:36.000000000","message":"sentence is a little awkward maybe remove the word \"of\"; whitespace","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"6ac0720112bb77f2341012e899e4497e30accfb0","unresolved":false,"context_lines":[{"line_number":148,"context_line":"An object will be encrypted with its own key that is not used anywhere"},{"line_number":149,"context_line":"else and stored in the object\u0027s sysmeta, wrapped with the actual"},{"line_number":150,"context_line":"key provided by the keymaster. This permits efficent implementation"},{"line_number":151,"context_line":"of COPY and re-key operations."},{"line_number":152,"context_line":""},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"Inter-Middleware Communication"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_ccb5a07f","line":151,"updated":"2014-10-10 18:48:40.000000000","message":"Can you help me understand this part? Are you saying that an object that is encrypted will not be encrypted but rather the encryption key will be wrapped with a new key? I hope I did not make this too confusing. I\u0027m trying to figure out what you mean here.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"e5e6eabaca8fd50de9bcc70efa752a3d7e68b31e","unresolved":false,"context_lines":[{"line_number":148,"context_line":"An object will be encrypted with its own key that is not used anywhere"},{"line_number":149,"context_line":"else and stored in the object\u0027s sysmeta, wrapped with the actual"},{"line_number":150,"context_line":"key provided by the keymaster. This permits efficent implementation"},{"line_number":151,"context_line":"of COPY and re-key operations."},{"line_number":152,"context_line":""},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"Inter-Middleware Communication"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_e08fa073","line":151,"in_reply_to":"baa201ad_018f6a24","updated":"2014-10-13 15:32:57.000000000","message":"Ed, on 2) you talk about Barbican and KEKs and DEKs. In general think of Barbican as a basic key manager that creates, reads, and deletes keys. There are a few backends that provide the keys. One is the Barbican HSM plugin that does use KEKs and wraps each of the keys that are for the Barbican clients. However, not all plugins do this. There is a KMIP plugin and Dogtag plugin that store the keys external to Barbican do not use KEKs, at least within the Barbican space.\n\nThe point is that Barbican clients do not need to worry about KEKs. They just know that their keys are generated, stored, and returned to them.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"1033defd978c8c16740a0e45591c6e3aa2033acd","unresolved":false,"context_lines":[{"line_number":148,"context_line":"An object will be encrypted with its own key that is not used anywhere"},{"line_number":149,"context_line":"else and stored in the object\u0027s sysmeta, wrapped with the actual"},{"line_number":150,"context_line":"key provided by the keymaster. This permits efficent implementation"},{"line_number":151,"context_line":"of COPY and re-key operations."},{"line_number":152,"context_line":""},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"Inter-Middleware Communication"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_6f73b4e7","line":151,"in_reply_to":"baa201ad_ccb5a07f","updated":"2014-10-12 12:21:05.000000000","message":"+1 - confused","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":12430,"name":"Ed Reynolds","email":"ed.reynolds@hp.com"},"change_message_id":"cd77f61cc4a767214d6d60e28f1a545a2f1c6f02","unresolved":false,"context_lines":[{"line_number":148,"context_line":"An object will be encrypted with its own key that is not used anywhere"},{"line_number":149,"context_line":"else and stored in the object\u0027s sysmeta, wrapped with the actual"},{"line_number":150,"context_line":"key provided by the keymaster. This permits efficent implementation"},{"line_number":151,"context_line":"of COPY and re-key operations."},{"line_number":152,"context_line":""},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"Inter-Middleware Communication"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_018f6a24","line":151,"in_reply_to":"baa201ad_ccb5a07f","updated":"2014-10-10 22:25:35.000000000","message":"I can see the advantage for COPY and re-keying, but also some challenges.  1) you need to generate a sufficiently random key using a secure RNG for crypto operations, which is usually provided by a key manager, thus requiring another invocation.  2) In my limited understanding of Barbican, there is a master key or Key Encrypting Key (KEK) which is used to encrypt Data Encrypting Keys (DEKs) in the key store.   So you would be using a DEK as the Object Key to further encrypt another DEK-2 ?  Therefore, given C \u003d Enc(key, P)\n\nsysmeta \u003d Enc(OK, DEK-2) and C \u003d Enc(DEK-2, P)\n\nIs that what you intend?","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"6ac0720112bb77f2341012e899e4497e30accfb0","unresolved":false,"context_lines":[{"line_number":159,"context_line":"at the name \"swift.crypto.key\"."},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"On a PUT or POST request, the keymaster must place the key in the WSGI"},{"line_number":162,"context_line":"environment during request processing; that is, before passing the"},{"line_number":163,"context_line":"request to the remainder of the middleware pipeline. This is so that"},{"line_number":164,"context_line":"the encrypter can encrypt the object\u0027s data in a streaming fashion"},{"line_number":165,"context_line":"without buffering the whole object."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_cc43e06a","line":162,"updated":"2014-10-10 18:48:40.000000000","message":"I am not a big fan of putting the key in the environment. I would rather see this be a part of the encryptor and decryptor. My concern is that it leaves it open for potential loss.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"a7163864467fb2ec8bc8e39f541bef31504c1859","unresolved":false,"context_lines":[{"line_number":159,"context_line":"at the name \"swift.crypto.key\"."},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"On a PUT or POST request, the keymaster must place the key in the WSGI"},{"line_number":162,"context_line":"environment during request processing; that is, before passing the"},{"line_number":163,"context_line":"request to the remainder of the middleware pipeline. This is so that"},{"line_number":164,"context_line":"the encrypter can encrypt the object\u0027s data in a streaming fashion"},{"line_number":165,"context_line":"without buffering the whole object."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_eb193823","line":162,"in_reply_to":"baa201ad_4f5d1048","updated":"2014-10-13 21:42:28.000000000","message":"See section \"Not The Threat Model\".","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":12430,"name":"Ed Reynolds","email":"ed.reynolds@hp.com"},"change_message_id":"cd77f61cc4a767214d6d60e28f1a545a2f1c6f02","unresolved":false,"context_lines":[{"line_number":159,"context_line":"at the name \"swift.crypto.key\"."},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"On a PUT or POST request, the keymaster must place the key in the WSGI"},{"line_number":162,"context_line":"environment during request processing; that is, before passing the"},{"line_number":163,"context_line":"request to the remainder of the middleware pipeline. This is so that"},{"line_number":164,"context_line":"the encrypter can encrypt the object\u0027s data in a streaming fashion"},{"line_number":165,"context_line":"without buffering the whole object."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_e1ba6609","line":162,"in_reply_to":"baa201ad_cc43e06a","updated":"2014-10-10 22:25:35.000000000","message":"+1 The key should be in memory for as little time as possible and then scrubbed.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"1033defd978c8c16740a0e45591c6e3aa2033acd","unresolved":false,"context_lines":[{"line_number":159,"context_line":"at the name \"swift.crypto.key\"."},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"On a PUT or POST request, the keymaster must place the key in the WSGI"},{"line_number":162,"context_line":"environment during request processing; that is, before passing the"},{"line_number":163,"context_line":"request to the remainder of the middleware pipeline. This is so that"},{"line_number":164,"context_line":"the encrypter can encrypt the object\u0027s data in a streaming fashion"},{"line_number":165,"context_line":"without buffering the whole object."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_4f5d1048","line":162,"in_reply_to":"baa201ad_cc43e06a","updated":"2014-10-12 12:21:05.000000000","message":"I think this is because of the separate middleware? It\u0027s a good example of why you want to keep key handling as close to the crypto as possible.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"b581b22eab1a993f797dc2ab3143a1adcf17f143","unresolved":false,"context_lines":[{"line_number":159,"context_line":"at the name \"swift.crypto.key\"."},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"On a PUT or POST request, the keymaster must place the key in the WSGI"},{"line_number":162,"context_line":"environment during request processing; that is, before passing the"},{"line_number":163,"context_line":"request to the remainder of the middleware pipeline. This is so that"},{"line_number":164,"context_line":"the encrypter can encrypt the object\u0027s data in a streaming fashion"},{"line_number":165,"context_line":"without buffering the whole object."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_215ef576","line":162,"in_reply_to":"baa201ad_eb193823","updated":"2014-10-14 08:57:23.000000000","message":"I\u0027ve read the threat model, problem is I don\u0027t think it\u0027s completely valid. Attacks on memory come in many forms and it\u0027s fundamental that the longer a key is in memory and the more places it\u0027s copied the more exposed it becomes.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":11861,"name":"Travis McPeak","email":"tmcpeak@us.ibm.com","username":"travis-mcpeak"},"change_message_id":"c62071165e6e296559a4c202b592a318907b7005","unresolved":false,"context_lines":[{"line_number":185,"context_line":"4.2. Cryptographic Architecture"},{"line_number":186,"context_line":"-------------------------------"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"The crypto engine may use a selected number of symmetric encryption "},{"line_number":189,"context_line":"algorithms for object encryption. "},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"The cryptographic algorithm can be selected by the operator from a set"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_df512431","line":188,"updated":"2014-10-16 22:01:36.000000000","message":"whitespace","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":11861,"name":"Travis McPeak","email":"tmcpeak@us.ibm.com","username":"travis-mcpeak"},"change_message_id":"c62071165e6e296559a4c202b592a318907b7005","unresolved":false,"context_lines":[{"line_number":186,"context_line":"-------------------------------"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"The crypto engine may use a selected number of symmetric encryption "},{"line_number":189,"context_line":"algorithms for object encryption. "},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"The cryptographic algorithm can be selected by the operator from a set"},{"line_number":192,"context_line":"of choices hard-coded in the software. The code architecture should"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_ff334811","line":189,"updated":"2014-10-16 22:01:36.000000000","message":"whitespace","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"6ac0720112bb77f2341012e899e4497e30accfb0","unresolved":false,"context_lines":[{"line_number":189,"context_line":"algorithms for object encryption. "},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"The cryptographic algorithm can be selected by the operator from a set"},{"line_number":192,"context_line":"of choices hard-coded in the software. The code architecture should"},{"line_number":193,"context_line":"permit to extend this set of algorithms in a simple way, in response to"},{"line_number":194,"context_line":"security and possibly other issues unknown at this time. However, no"},{"line_number":195,"context_line":"direct access to the cryptographic algorithm configuration is permitted"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_27c3a58b","line":192,"updated":"2014-10-10 18:48:40.000000000","message":"-1\n\nMy first thought on this is that finding consensus amongst the community will be difficult. Choosing an algorithm is a risk assessment choice. Some companies may have very high security standards and require a specific algorithm. Some companies have less risk and would be willing to use a broader set.\n\nYou say there will be a set of provided algorithms to select from, yet you say later that it will not be configurable. It seems like on one hand you are assuming sys admins are not smart enough to make crypto decisions and on the other you say they are smart enough to make the correct decision.\n\nMy second thought is why not make it configurable? Choose a good default and let sys admins overwrite it. What is good enough for the community may not be good enough for me. I think it should be up to each deployer to do a risk assessment of their data to determine if an algorithm is good enough or not.\n\nA compromise might be to have a set of hard coded values that you believe are the bees knees. Then if an algorithm is selected that is not in the blessed set then you log a big warning message saying, \"You chose an encryption algorithm that is insecure; proceed at your own risk,\" or something like that.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":12430,"name":"Ed Reynolds","email":"ed.reynolds@hp.com"},"change_message_id":"cd77f61cc4a767214d6d60e28f1a545a2f1c6f02","unresolved":false,"context_lines":[{"line_number":189,"context_line":"algorithms for object encryption. "},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"The cryptographic algorithm can be selected by the operator from a set"},{"line_number":192,"context_line":"of choices hard-coded in the software. The code architecture should"},{"line_number":193,"context_line":"permit to extend this set of algorithms in a simple way, in response to"},{"line_number":194,"context_line":"security and possibly other issues unknown at this time. However, no"},{"line_number":195,"context_line":"direct access to the cryptographic algorithm configuration is permitted"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_81c99a5c","line":192,"in_reply_to":"baa201ad_27c3a58b","updated":"2014-10-10 22:25:35.000000000","message":"+1","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"1033defd978c8c16740a0e45591c6e3aa2033acd","unresolved":false,"context_lines":[{"line_number":189,"context_line":"algorithms for object encryption. "},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"The cryptographic algorithm can be selected by the operator from a set"},{"line_number":192,"context_line":"of choices hard-coded in the software. The code architecture should"},{"line_number":193,"context_line":"permit to extend this set of algorithms in a simple way, in response to"},{"line_number":194,"context_line":"security and possibly other issues unknown at this time. However, no"},{"line_number":195,"context_line":"direct access to the cryptographic algorithm configuration is permitted"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_ef35e4f7","line":192,"in_reply_to":"baa201ad_27c3a58b","updated":"2014-10-12 12:21:05.000000000","message":"It _should_ be configurable, config file should can show in detail which modes are safer than others and be put in a logical order. Unfortunately as a developer you have to be prepared to let deployers make dumb decisions. The best we can hope for is to provide sensible defaults and robust guidance.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":12430,"name":"Ed Reynolds","email":"ed.reynolds@hp.com"},"change_message_id":"cd77f61cc4a767214d6d60e28f1a545a2f1c6f02","unresolved":false,"context_lines":[{"line_number":198,"context_line":"Choosing an encryption algorithm and mode requires a good, up-to-date"},{"line_number":199,"context_line":"understanding of cryptography; choosing the wrong encryption mode has"},{"line_number":200,"context_line":"dire consequences. The supported and hard-coded algorithms should be"},{"line_number":201,"context_line":"reviewed broadly and be generally accepted by the relevant security"},{"line_number":202,"context_line":"guidelines."},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"The encrypter, decrypter, and keymaster middlewares rely on a crypto"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_41e7b2e4","line":201,"updated":"2014-10-10 22:25:35.000000000","message":"Let\u0027s provide a good set of defaults, but leave room for expansion and modification.  SSL and TLS provide the ability for the operator the accept or deny various crypto algorithms and modes; we should do likewise.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"1033defd978c8c16740a0e45591c6e3aa2033acd","unresolved":false,"context_lines":[{"line_number":198,"context_line":"Choosing an encryption algorithm and mode requires a good, up-to-date"},{"line_number":199,"context_line":"understanding of cryptography; choosing the wrong encryption mode has"},{"line_number":200,"context_line":"dire consequences. The supported and hard-coded algorithms should be"},{"line_number":201,"context_line":"reviewed broadly and be generally accepted by the relevant security"},{"line_number":202,"context_line":"guidelines."},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"The encrypter, decrypter, and keymaster middlewares rely on a crypto"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_8f2e18a4","line":201,"in_reply_to":"baa201ad_41e7b2e4","updated":"2014-10-12 12:21:05.000000000","message":"So we obviously don\u0027t need negotiation like TLS but a sensible ordered list of cipher/mode combinations will make sense.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"6ac0720112bb77f2341012e899e4497e30accfb0","unresolved":false,"context_lines":[{"line_number":205,"context_line":"library for implementations of their cryptographic algorithms. Details"},{"line_number":206,"context_line":"of this crypto library should be abstracted, so as to permit the"},{"line_number":207,"context_line":"replacement of the library in the future, should the current"},{"line_number":208,"context_line":"implementation pose some issues. PyCrypto appears to be the most"},{"line_number":209,"context_line":"suitable crypto library currently available in Python."},{"line_number":210,"context_line":""},{"line_number":211,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_6754cdca","line":208,"updated":"2014-10-10 18:48:40.000000000","message":"I believe reaperhulk is working on a crypto library. He is on openstack-barbican a lot. I would ask him about this because he has done an extensive analysis of alternatives for this in the past.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"1033defd978c8c16740a0e45591c6e3aa2033acd","unresolved":false,"context_lines":[{"line_number":205,"context_line":"library for implementations of their cryptographic algorithms. Details"},{"line_number":206,"context_line":"of this crypto library should be abstracted, so as to permit the"},{"line_number":207,"context_line":"replacement of the library in the future, should the current"},{"line_number":208,"context_line":"implementation pose some issues. PyCrypto appears to be the most"},{"line_number":209,"context_line":"suitable crypto library currently available in Python."},{"line_number":210,"context_line":""},{"line_number":211,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_cf174053","line":208,"in_reply_to":"baa201ad_6754cdca","updated":"2014-10-12 12:21:05.000000000","message":"+1 I\u0027m not sure how ready it is. Looks like a good solution but I think progress is slow.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":12430,"name":"Ed Reynolds","email":"ed.reynolds@hp.com"},"change_message_id":"cd77f61cc4a767214d6d60e28f1a545a2f1c6f02","unresolved":false,"context_lines":[{"line_number":221,"context_line":"shall be supported for encryption and for authenticated encryption."},{"line_number":222,"context_line":"It should be set as the default mode."},{"line_number":223,"context_line":""},{"line_number":224,"context_line":"AES256-CBC with HMAC-SHA256 (AES Cipher-Block Chaining Mode with HMAC"},{"line_number":225,"context_line":"using SHA256, according to NIST SP 800-38A) shall be supported."},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"Further authenticated encryption algorithms according to IEEE P1619.1"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_c11f22b6","line":224,"updated":"2014-10-10 22:25:35.000000000","message":"I recall some training I had a while back that recommended using hash length at twice the size of AES key to prevent \"Birthday Attacks\".  Thus, one should use HMAC-SHA-512 with AES -256.  The SHA-1 lengths of 256, 384, and 512 were designed given AES keys of 128, 192 and 256.  \n\nI trust what you have is in NIST, though.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"1033defd978c8c16740a0e45591c6e3aa2033acd","unresolved":false,"context_lines":[{"line_number":226,"context_line":""},{"line_number":227,"context_line":"Further authenticated encryption algorithms according to IEEE P1619.1"},{"line_number":228,"context_line":"(Authenticated Encryption with Length Expansion for Storage Devices)"},{"line_number":229,"context_line":"may be supported in the future."},{"line_number":230,"context_line":""},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"4.4. Justification of Cryptographic Algorithm"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_ead4f248","line":229,"updated":"2014-10-12 12:21:05.000000000","message":"So, _not_ GCM then?","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"3390e532149d6ff05d8e2fd780ecf7d00ad339e8","unresolved":false,"context_lines":[{"line_number":268,"context_line":"leaks. Stream ciphers or CTR mode would not require such binding"},{"line_number":269,"context_line":"but cannot provide data authentication."},{"line_number":270,"context_line":""},{"line_number":271,"context_line":"Hence a unit of encryption is used called a \"slice.\" Encryption is"},{"line_number":272,"context_line":"done on the object in a sequence of slices. Every slice has the same"},{"line_number":273,"context_line":"length (except for the last slice), which may be a configuration"},{"line_number":274,"context_line":"option for the operator. A plaintext slice is transformed into a"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_80f1a297","line":271,"updated":"2014-10-10 14:00:05.000000000","message":"A unit of encryption is called a \"slice\".","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"1033defd978c8c16740a0e45591c6e3aa2033acd","unresolved":false,"context_lines":[{"line_number":268,"context_line":"leaks. Stream ciphers or CTR mode would not require such binding"},{"line_number":269,"context_line":"but cannot provide data authentication."},{"line_number":270,"context_line":""},{"line_number":271,"context_line":"Hence a unit of encryption is used called a \"slice.\" Encryption is"},{"line_number":272,"context_line":"done on the object in a sequence of slices. Every slice has the same"},{"line_number":273,"context_line":"length (except for the last slice), which may be a configuration"},{"line_number":274,"context_line":"option for the operator. A plaintext slice is transformed into a"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_0aca16a1","line":271,"updated":"2014-10-12 12:21:05.000000000","message":"s/Hence a/A/","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"1033defd978c8c16740a0e45591c6e3aa2033acd","unresolved":false,"context_lines":[{"line_number":269,"context_line":"but cannot provide data authentication."},{"line_number":270,"context_line":""},{"line_number":271,"context_line":"Hence a unit of encryption is used called a \"slice.\" Encryption is"},{"line_number":272,"context_line":"done on the object in a sequence of slices. Every slice has the same"},{"line_number":273,"context_line":"length (except for the last slice), which may be a configuration"},{"line_number":274,"context_line":"option for the operator. A plaintext slice is transformed into a"},{"line_number":275,"context_line":"ciphertext slice that may be longer than the plaintext slice. Again"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_2acfdab1","line":272,"updated":"2014-10-12 12:21:05.000000000","message":"s/done/performed/","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"6ac0720112bb77f2341012e899e4497e30accfb0","unresolved":false,"context_lines":[{"line_number":309,"context_line":"If the keymaster hands back a different key for decryption than was"},{"line_number":310,"context_line":"used for encryption, the client will receive garbage. To prevent this,"},{"line_number":311,"context_line":"the encrypter will add a sysmeta entry together with the wrapped"},{"line_number":312,"context_line":"object key and iv. For example one can use authenticated encryption"},{"line_number":313,"context_line":"for the plaintext-etag. If this fails to decrypt under the given"},{"line_number":314,"context_line":"object key, the key is wrong or the encrypted etag-data has been"},{"line_number":315,"context_line":"tampered with. This allows fail-safe operation."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_479fc950","line":312,"updated":"2014-10-10 18:48:40.000000000","message":"Where is the wrapping key? This is the first that I have noticed this.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"1033defd978c8c16740a0e45591c6e3aa2033acd","unresolved":false,"context_lines":[{"line_number":309,"context_line":"If the keymaster hands back a different key for decryption than was"},{"line_number":310,"context_line":"used for encryption, the client will receive garbage. To prevent this,"},{"line_number":311,"context_line":"the encrypter will add a sysmeta entry together with the wrapped"},{"line_number":312,"context_line":"object key and iv. For example one can use authenticated encryption"},{"line_number":313,"context_line":"for the plaintext-etag. If this fails to decrypt under the given"},{"line_number":314,"context_line":"object key, the key is wrong or the encrypted etag-data has been"},{"line_number":315,"context_line":"tampered with. This allows fail-safe operation."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_aa682a88","line":312,"in_reply_to":"baa201ad_479fc950","updated":"2014-10-12 12:21:05.000000000","message":"+1","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"6ac0720112bb77f2341012e899e4497e30accfb0","unresolved":false,"context_lines":[{"line_number":312,"context_line":"object key and iv. For example one can use authenticated encryption"},{"line_number":313,"context_line":"for the plaintext-etag. If this fails to decrypt under the given"},{"line_number":314,"context_line":"object key, the key is wrong or the encrypted etag-data has been"},{"line_number":315,"context_line":"tampered with. This allows fail-safe operation."},{"line_number":316,"context_line":""},{"line_number":317,"context_line":"Note that, in principle, with authenticated encryption one also learns"},{"line_number":318,"context_line":"whether the key is \"correct\" during decryption, but only at a later"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_277ba52a","line":315,"updated":"2014-10-10 18:48:40.000000000","message":"Sorry, not familiar with Swift. What is a sysmeta entry?\n\nCan you provide more details here? I understand what you are trying to do at a high level. You are trying to validate that a given key is the right key for the data. I\u0027m just not sure if that is going to work. Could you elaborate more on the sequence of events and where data is stored.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"6ac0720112bb77f2341012e899e4497e30accfb0","unresolved":false,"context_lines":[{"line_number":344,"context_line":"with their reseller prefix. Similarly, multiple keymasters may"},{"line_number":345,"context_line":"partition the Swift namespace in some way and thus coexist peacefully."},{"line_number":346,"context_line":""},{"line_number":347,"context_line":"6.2 Keymasters in Core Swift"},{"line_number":348,"context_line":"----------------------------"},{"line_number":349,"context_line":""},{"line_number":350,"context_line":"6.2.1 Trivial Keymaster"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_c764994b","line":347,"updated":"2014-10-10 18:48:40.000000000","message":"There is a KeyManager base class defined in Nova and Cinder. It would be good to reuse that here. Then hopefully we can merge it into oslo, and it should be easy to do if everyone has the same interface.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"6ac0720112bb77f2341012e899e4497e30accfb0","unresolved":false,"context_lines":[{"line_number":370,"context_line":"^^^^^^^^^^^^^^^^^^^^^^^^"},{"line_number":371,"context_line":""},{"line_number":372,"context_line":"Swift should also use a keymaster that is aligned with BarbicanKeyManager,"},{"line_number":373,"context_line":"as used by Cinder or by Nova."},{"line_number":374,"context_line":""},{"line_number":375,"context_line":""},{"line_number":376,"context_line":"7. Metadata Encryption"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_071141ac","line":373,"updated":"2014-10-10 18:48:40.000000000","message":"+1","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"01827780b72bad1a5c351f55b10712037377bdce","unresolved":false,"context_lines":[{"line_number":444,"context_line":"encryption mode is desirable from a security standpoint. It does"},{"line_number":445,"context_line":"introduce some overhead and reduces performance more than"},{"line_number":446,"context_line":"non-authenticated encryption, however it implies changes to the"},{"line_number":447,"context_line":"encryption format and code design that should be addressed now. "},{"line_number":448,"context_line":""},{"line_number":449,"context_line":"8.3 Configurability of Encryption Algorithms"},{"line_number":450,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_d2b9997a","line":447,"updated":"2014-10-13 10:30:15.000000000","message":"Ideally both would be supported, leaving the choice to the deployer.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"01827780b72bad1a5c351f55b10712037377bdce","unresolved":false,"context_lines":[{"line_number":450,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":451,"context_line":""},{"line_number":452,"context_line":"How much control should the operator have in selecting encryption"},{"line_number":453,"context_line":"algorithms and parameters?"},{"line_number":454,"context_line":""},{"line_number":455,"context_line":"8.4 Selective Encryption Controlled by User"},{"line_number":456,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_32fca53e","line":453,"updated":"2014-10-13 10:30:15.000000000","message":"Complete control.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"3390e532149d6ff05d8e2fd780ecf7d00ad339e8","unresolved":false,"context_lines":[{"line_number":457,"context_line":""},{"line_number":458,"context_line":"Assuming a Swift instance provides encryption, should the user be"},{"line_number":459,"context_line":"allowed to select encryption? If yes, at which level? (Account,"},{"line_number":460,"context_line":"Container, Object?) As the user has this choice with other object"},{"line_number":461,"context_line":"stores, it would be good to allow this, at least on the granularity"},{"line_number":462,"context_line":"of containers."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_c0c64a16","line":460,"updated":"2014-10-10 14:00:05.000000000","message":"I vote all options should be provided, fwiw.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"01827780b72bad1a5c351f55b10712037377bdce","unresolved":false,"context_lines":[{"line_number":459,"context_line":"allowed to select encryption? If yes, at which level? (Account,"},{"line_number":460,"context_line":"Container, Object?) As the user has this choice with other object"},{"line_number":461,"context_line":"stores, it would be good to allow this, at least on the granularity"},{"line_number":462,"context_line":"of containers."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baa201ad_3293c5fb","line":462,"updated":"2014-10-13 10:30:15.000000000","message":"I can see two modes of operation. The first is where the deployer makes a decision that encryption will be enabled for everyone. In the second the deployer may choose to offer encryption as an additional service and make it available on request.","commit_id":"43af26fe405ff2d4bca5fecdd6d3485db342a789"}]}
