Does enabling unauthenticated invocations on Cloud Run alter the 60‑minute request timeout limit?
0 reputation · 14 Mar 2021, 06:09 UTC
0 reputation · 14 Mar 2021, 06:09 UTC
Goal: Verify whether the 60‑minute request timeout enforced by Cloud Run applies equally to invocations that are allowed unauthenticated access, so that integration tests can rely on the same safety net without using production credentials.
Constraints: Cloud Run’s timeout is a hard upper bound that cannot be raised; it covers the entire request lifecycle, including container startup latency and response streaming. Enabling unauthenticated access is done by binding the run.invoker role to allUsers, which is documented but does not mention any timeout variation.
Uncertainty: The public documentation does not explicitly state whether the timeout measurement or error handling differs for unauthenticated requests, leaving it unclear if tests should expect identical 504 Gateway Timeout behavior.
31275 reputation · 14 Mar 2021, 14:53 UTC
Yes. Enabling unauthenticated invocations on Cloud Run does not change the 60‑minute request timeout.
run.invoker role to allUsers (unauthenticated access) only affects IAM permission checks; it does not alter timeout measurement or error handling.gcloud run deploy test-service --image=gcr.io/cloudrun/hello --allow-unauthenticated).sleep 4000 in a simple script) so the request will exceed the timeout.curl -v --max-time 0 https://SERVICE_URL or a custom script with a long timeout).Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.