Skip to content

fix(storage-resize-images): accept only internal traffic and document the instance limit - #3287

Open
IzaakGough wants to merge 2 commits into
kitsfrom
fix/resize-images-kit-scaling
Open

IzaakGough wants to merge 2 commits into
kitsfrom
fix/resize-images-kit-scaling

Conversation

@IzaakGough

@IzaakGough IzaakGough commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #3275.

The resize images kit accepted traffic from anywhere, and nothing said how to resize more than 100 images at once.

This limits the function to internal traffic and documents raising the instance limit with setGlobalOptions({ maxInstances }).

  • No fixed instance limit. A limit of 3000 fails the deploy wherever it exceeds the regional Cloud Run quota.
  • Ingress is pinned, as in the firestore-bigquery-export kit. Reading global options at import misses them in ESM codebases.
  • Overlaps fix(resize): match extension concurrency and ingress #3203, which sets the same ingress.

Tested with unit tests, including setGlobalOptions. Not redeployed since this revision.

…ingress

The kit deployed with the 2nd gen defaults of 100 instances and ALLOW_ALL ingress, so with concurrency 1 at most 100 images resized at once. Set maxInstances to the extension's 3000 and ingress to ALLOW_INTERNAL_ONLY.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the generateResizedImage function configuration to set maxInstances to 3000 and ingressSettings to 'ALLOW_INTERNAL_ONLY', aligning its behavior with the 1st generation extension. The changes are documented in the README and CHANGELOG, and corresponding unit tests have been added to verify these deployment options. There are no review comments, and I have no feedback to provide.

@IzaakGough
IzaakGough marked this pull request as ready for review October 26, 2026 14:59
Comment thread kits/storage-resize-images/src/index.ts Outdated
Comment thread kits/storage-resize-images/README.md Outdated
A fixed limit of 3000 failed the deploy wherever it exceeded the regional
Cloud Run quota. Ingress stays pinned to internal-only, as in the
firestore-bigquery-export kit.
@IzaakGough IzaakGough changed the title fix(storage-resize-images): match the extension's instance limit and ingress fix(storage-resize-images): accept only internal traffic and document the instance limit Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants