You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- To create a task, users need `create` access to resource `/services/workflow/gen3-workflow/tasks` on service `gen3-workflow`.
12
-
- To view a task, users need `read` access to resource `/users/<user ID>/gen3-workflow/tasks/<task ID>` on service `gen3-workflow`.
13
-
- Users are automatically granted access to `/users/<user ID>/gen3-workflow/tasks` so they can view their own tasks.
14
-
- Admin access (the ability to see _all_ users’ tasks instead of just your own) can be granted to a user by granting them access to the parent resource `/services/workflow/gen3-workflow/tasks`.
15
-
- This supports sharing tasks with others; for example, "user1" may share "taskA" with "user2" if the system grants "user2" access to `/users/user1/gen3-workflow/tasks/taskA`.
31
+
- To view a task, users need `read` access to resource `/services/workflow/gen3-workflow/tasks/<user ID>/<task ID>` on service `gen3-workflow`.
32
+
- To cancel a task, users need `delete` access to resource `/services/workflow/gen3-workflow/tasks/<user ID>/<task ID>` on service `gen3-workflow`.
33
+
- Admin access (the ability to see _all_ users’ tasks instead of just your own) can be granted to a user by granting them access to the parent resource `/services/workflow/gen3-workflow/tasks`.
34
+
- This supports sharing tasks with others; for example, "user1" may share "taskA" with "user2" if the system grants "user2" access to `/services/workflow/gen3-workflow/tasks/user1/taskA`.
35
+
- However, sharing task _inputs/outputs_ in the user's S3 bucket is not supported. Currently, users can only access their own S3 bucket.
16
36
17
-
## Other Gen3-Workflow functionality
18
-
- To download inputs and upload outputs, the Funnel workers need `create` access to resource `/services/workflow/gen3-workflow/tasks` on service `gen3-workflow`, like end-users.
19
-
- To empty or delete their own S3 bucket, a user needs `delete` access to the resource `/services/workflow/gen3-workflow/user-bucket` on the `gen3-workflow` service -- a special privilege useful for automated testing but not intended for the average user.
37
+
## Storage
38
+
- To upload input files, download output files, and in general manage the files in their S3 bucket, users need `create`, `read` or `delete` access to resource `/services/workflow/gen3-workflow/storage/<user ID>` on service `gen3-workflow`.
39
+
- The Funnel workers have access to `/services/workflow/gen3-workflow/storage` so they can manage files in all the user buckets.
40
+
- To empty or delete their own S3 bucket (`/storage/user-bucket` endpoints), users need `delete` access to the resource `/services/workflow/gen3-workflow/storage/<user ID>` on the `gen3-workflow` service.
20
41
21
-
#### Authorization configuration example
42
+
## Authorization configuration example
43
+
44
+
Users are automatically granted access to `/services/workflow/gen3-workflow/tasks/<user ID>` and to `/services/workflow/gen3-workflow/storage/<user ID>` so they can view and cancel their own tasks and manage files in their own bucket.
22
45
23
46
```yaml
24
47
users:
@@ -29,7 +52,7 @@ users:
29
52
clients:
30
53
funnel-plugin-client:
31
54
policies:
32
-
- gen3_workflow_user
55
+
- gen3_workflow_storage_admin
33
56
34
57
authz:
35
58
resources:
@@ -40,6 +63,7 @@ authz:
40
63
- name: gen3-workflow
41
64
subresources:
42
65
- name: tasks
66
+
- name: storage
43
67
44
68
policies:
45
69
- id: gen3_workflow_user
@@ -48,18 +72,18 @@ authz:
48
72
- gen3_workflow_creator
49
73
resource_paths:
50
74
- /services/workflow/gen3-workflow/tasks
51
-
- id: gen3_workflow_admin
75
+
- id: gen3_workflow_task_reader_admin
52
76
description: Allows access to view tasks created by all users
53
77
role_ids:
54
78
- gen3_workflow_reader
55
79
resource_paths:
56
80
- /services/workflow/gen3-workflow/tasks
57
-
- id: workflow_storage_deleter
58
-
description: Allows delete access to the user's own S3 bucket
81
+
- id: gen3_workflow_storage_admin
82
+
description: Allows access to manage all the user buckets
0 commit comments