[ARVADOS] updated: 1.2.0-182-g1af091545

Git user git at public.curoverse.com
Mon Oct 15 16:53:59 EDT 2018


Summary of changes:
 services/api/app/controllers/arvados/v1/containers_controller.rb | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

       via  1af0915450b8ae9f977d699da35b0ced2244bb7a (commit)
      from  f89de11af2c33d4f56517e818543f72866396e50 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 1af0915450b8ae9f977d699da35b0ced2244bb7a
Author: Peter Amstutz <pamstutz at veritasgenetics.com>
Date:   Mon Oct 15 16:53:40 2018 -0400

    14260: secret_mounts works with runtime_token
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz at veritasgenetics.com>

diff --git a/services/api/app/controllers/arvados/v1/containers_controller.rb b/services/api/app/controllers/arvados/v1/containers_controller.rb
index 064a829db..98b987639 100644
--- a/services/api/app/controllers/arvados/v1/containers_controller.rb
+++ b/services/api/app/controllers/arvados/v1/containers_controller.rb
@@ -69,9 +69,8 @@ class Arvados::V1::ContainersController < ApplicationController
   end
 
   def secret_mounts
-    if @object &&
-       @object.auth_uuid &&
-       @object.auth_uuid == Thread.current[:api_client_authorization].uuid
+    c = Container.for_current_token
+    if @object && c && @object.uuid == c.uuid
       send_json({"secret_mounts" => @object.secret_mounts})
     else
       send_error("Token is not associated with this container.", status: 403)

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list