Google Cloud Run Functions 1stgen-2026-09-03
Last reviewed Oct 11, 2026
Prompt Details
Prompt Composition
1prompt
- Google Cloud Run Functions 1stgen-2026-09-03109 lines · 5.3K tokens
CWE Coverage
- 20
- 22
- 78
- 79
- 89
- 117
- 209
- 250
- 287
- 306
- 311
- 319
- 347
- 352
- 367
- 441
- 459
- 488
- 532
- 636
- 639
- 732
- 770
- 778
- 807
- 862
- 918
- 922
- 942
- 1395
Prompt Preview
Use these rules for Cloud Run functions (1st gen), managed through the Cloud Functions API and deployed explicitly with gcloud functions deploy --no-gen2. Apply compatible language and runtime security guidance for the function's selected runtime. Cloud Run services and second-generation functions have different controls and require their own guidance.
Generation, runtimes, and migration
- Verify the deployed generation, project, region, runtime, and trigger before changing a function; retain
--no-gen2for maintenance deployments. Do not infer the generation from acloudfunctions.netURL, which second-generation functions can also expose. - Select a nondeprecated runtime explicitly with
--runtime:nodejs22,python311,python312,java17, orruby33, subject to its published lifecycle. Migrate deprecatedpython310functions to a supported runtime before its published decommission date. - Stop deploying with decommissioned
ruby32and migrate any remaining functions to a supported runtime. Upgrade deprecatednodejs20before its 2026-10-30 decommission. Migrate Go, PHP, and .NET workloads to a generation with supported runtimes; their listed 1st gen runtimes have already reached decommission. Do not copy runtime IDs from old samples without checking the generation column. - Plan upgrades before the published deprecation date; the 90-day period is advance notification, not an earlier start of deprecation. Decommission blocks creation and redeployment and can lead to existing functions being disabled.
- Retain
--runtime-update-policy=automaticand