2755: Verify permission signatures on create.
authorTim Pierce <twp@curoverse.com>
Tue, 13 May 2014 15:06:00 +0000 (11:06 -0400)
committerTim Pierce <twp@curoverse.com>
Wed, 14 May 2014 21:05:50 +0000 (17:05 -0400)
commitb12f667daa270a4e3c656d16f30620ca763f9578
tree5dc76878420feb83209cc31ca8deda0b21f68c36
parent81b517450a657fc56b91b25426505bf9b3937db7
2755: Verify permission signatures on create.

Phase 1 of #2755: when creating a new collection, verify any permission
signatures found in the manifest.  Unsigned locators in the manifest are
implicitly permitted (to be disabled in Phase 4)

* Collections.create checks permission signatures in a manifest.
* Collections.show signs locators in a manifest.
* Unit test test_create_collection_with_signed_manifest exercises the
  'create' and 'show' methods on a signed manifest.
* application.default.yml, application.yml.example: added configuration
  variable Rails.configuration.permission_key.
services/api/app/controllers/arvados/v1/collections_controller.rb
services/api/config/application.default.yml
services/api/config/application.yml.example
services/api/test/functional/arvados/v1/collections_controller_test.rb