X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/44c95f99098fa6c6acbfa82d4b6cbc6015eb6e39..49fb55aa1a9fb35d8e7e620717cb42f77d448a43:/services/api/app/controllers/arvados/v1/containers_controller.rb diff --git a/services/api/app/controllers/arvados/v1/containers_controller.rb b/services/api/app/controllers/arvados/v1/containers_controller.rb index 8c63ea7f5b..6ec92b0ba6 100644 --- a/services/api/app/controllers/arvados/v1/containers_controller.rb +++ b/services/api/app/controllers/arvados/v1/containers_controller.rb @@ -60,4 +60,14 @@ class Arvados::V1::ContainersController < ApplicationController end end end + + def secret_mounts + if @object && + @object.auth_uuid && + @object.auth_uuid == Thread.current[:api_client_authorization].uuid + send_json({"secret_mounts" => @object.secret_mounts}) + else + send_error("Token is not associated with this container.", status: 403) + end + end end