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`.
33
+
- To view a task, users need `read` access to resource `/services/workflow/gen3-workflow/tasks/<user ID>/<task ID>` on service `gen3-workflow`.
34
+
- To cancel a task, users need `delete` access to resource `/services/workflow/gen3-workflow/tasks/<user ID>/<task ID>` on service `gen3-workflow`.
35
+
- 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`.
36
+
- 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`.
37
+
- However, sharing task _inputs/outputs_ in the user's S3 bucket is not supported. Currently, users can only access their own S3 bucket.
16
38
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.
39
+
## Storage
40
+
- 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`.
41
+
- The Funnel workers have access to `/services/workflow/gen3-workflow/storage` so they can manage files in all the user buckets.
42
+
- 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
43
21
-
#### Authorization configuration example
44
+
## Authorization configuration example
45
+
46
+
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
47
23
48
```yaml
24
49
users:
@@ -29,7 +54,7 @@ users:
29
54
clients:
30
55
funnel-plugin-client:
31
56
policies:
32
-
- gen3_workflow_user
57
+
- gen3_workflow_storage_admin
33
58
34
59
authz:
35
60
resources:
@@ -48,18 +73,18 @@ authz:
48
73
- gen3_workflow_creator
49
74
resource_paths:
50
75
- /services/workflow/gen3-workflow/tasks
51
-
- id: gen3_workflow_admin
76
+
- id: gen3_workflow_task_reader_admin
52
77
description: Allows access to view tasks created by all users
53
78
role_ids:
54
79
- gen3_workflow_reader
55
80
resource_paths:
56
81
- /services/workflow/gen3-workflow/tasks
57
-
- id: workflow_storage_deleter
58
-
description: Allows delete access to the user's own S3 bucket
82
+
- id: gen3_workflow_storage_admin
83
+
description: Allows access to manage all the user buckets
0 commit comments