Skip to content

fix(storage): key InstanceCache by app name and bucket (#16039)#16040

Merged
ncooke3 merged 1 commit intofirebase:mainfrom
llamington:fix/storage-instance-cache-per-app
Apr 9, 2026
Merged

fix(storage): key InstanceCache by app name and bucket (#16039)#16040
ncooke3 merged 1 commit intofirebase:mainfrom
llamington:fix/storage-instance-cache-per-app

Conversation

@llamington
Copy link
Copy Markdown
Contributor

Fixes #16039

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

@google-cla
Copy link
Copy Markdown

google-cla Bot commented Apr 4, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@paulb777
Copy link
Copy Markdown
Member

paulb777 commented Apr 4, 2026

/gemini review

Copy link
Copy Markdown
Contributor

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

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 InstanceCache in FirebaseStorage to use a composite key consisting of both the Firebase app name and the storage bucket. This change ensures that different apps sharing the same bucket maintain distinct Storage instances, preventing authentication context collisions. I have no further feedback to provide.

@paulb777 paulb777 added this to the 12.13.0 - M180 milestone Apr 4, 2026
@ncooke3
Copy link
Copy Markdown
Member

ncooke3 commented Apr 9, 2026

Thanks, @llamington!

@ncooke3 ncooke3 merged commit d90faa3 into firebase:main Apr 9, 2026
63 checks passed
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.

Storage InstanceCache keys by bucket only, ignoring FirebaseApp. Causes auth failure for named apps sharing a bucket

3 participants