Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CLI auth token for insecure requests #2211

Merged
merged 6 commits into from
May 5, 2020
Merged

Conversation

samtstern
Copy link
Contributor

Description

User reported issue here:
https://stackoverflow.com/questions/61618658/firebase-tools-firestoredelete-error-in-emulator

When talking to an http:// endpoint the CLI currently sends no auth header. After this change it will send owner as its access token.

Scenarios Tested

I set my rules to read, write: if false and then tried this command:

FIRESTORE_EMULATOR_HOST=localhost:8090 firebase --debug --project=fir-dumpster firestore:delete --recursive --all-collections

Before this fix I got a failure, after this fix it succeeds.

Sample Commands

N/A

@googlebot googlebot added the cla: yes Manual indication that this has passed CLA. label May 5, 2020
@samtstern samtstern requested a review from yuchenshi May 5, 2020 19:05
CHANGELOG.md Outdated Show resolved Hide resolved
src/api.js Outdated Show resolved Hide resolved
samtstern and others added 2 commits May 5, 2020 15:33
Co-authored-by: Yuchen Shi <yuchenshi@google.com>
@samtstern samtstern merged commit cf10c9b into master May 5, 2020
@bkendall bkendall deleted the ss-fix-insecure-auth branch August 4, 2021 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Manual indication that this has passed CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants