Skip to content

Commit 4ad81f3

Browse files
committed
Improve documentation and add some TODOs for code improvements
1 parent 743afbb commit 4ad81f3

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

docs/architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ This ensures Funnel always has valid credentials to authenticate with Fence with
9797
* Ensure only authorized pods and services can communicate with Funnel
9898
* Reduce the blast radius of misconfigurations or compromised workloads
9999

100-
* The diagram below illustrates the Funnel network policy model:
100+
* The diagram below illustrates the Funnel network policy model when deployed with MongoDB as funnel backend:
101101

102102
![Funnel Network Policies diagram](funnel_network_policies.jpg)
103103

docs/gen3-deployment.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,7 @@ Deploying Gen3Workflow automatically creates a **funnel-oidc-job**, which:
3131

3232
> **Note:**
3333
> The value `gen3-workflow.externalSecrets.funnelOidcClient` can be overridden to use a different secret name when external secrets are enabled.
34-
> This is typically configured by the PE team using the pattern:
35-
>
36-
> ```
37-
> <env_name>-funnel-oidc-client
38-
> ```
34+
> This is typically configured by the PE team using the pattern: `<env_name>-funnel-oidc-client`
3935

4036
---
4137

gen3workflow/routes/ga4gh_tes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ async def create_task(request: Request, auth=Depends(Auth)) -> dict:
9393
"""
9494
await auth.authorize("create", ["/services/workflow/gen3-workflow/tasks"])
9595

96+
# TODO: Return a 400 error instead of 500 when there is any decode exception while getting request body
9697
body = await get_request_body(request)
9798
logger.debug(f"Incoming task creation request body: {body}")
9899

gen3workflow/routes/s3.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,8 @@ async def s3_endpoint(path: str, request: Request):
307307
)
308308
s3_api_url = f"https://{user_bucket}.s3.{region}.amazonaws.com/{api_endpoint}"
309309
logger.debug(f"Outgoing S3 request: '{request.method} {s3_api_url}'")
310+
311+
# TODO: Enclose this with a retry if S3 response with a 500 error ( which is possible! Failing fast can break a whole nextflow workflow)
310312
response = await request.app.async_client.request(
311313
method=request.method,
312314
url=s3_api_url,

0 commit comments

Comments
 (0)