Skip to content

feat(app-dev): add zero-trust secure shopping cart with Firebase Auth, Firestore Rules & Cloud Run - #1536

Merged
kweinmeister merged 3 commits into
mainfrom
feat/secure-shopping-cart
Aug 21, 2026
Merged

feat(app-dev): add zero-trust secure shopping cart with Firebase Auth, Firestore Rules & Cloud Run#1536
kweinmeister merged 3 commits into
mainfrom
feat/secure-shopping-cart

Conversation

@kweinmeister

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread app-dev/secure-shopping-cart/public/index.html Fixed
Comment thread app-dev/secure-shopping-cart/public/index.html Fixed

@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 introduces a secure serverless shopping cart application demonstrating Firebase Authentication, path-based Firestore security rules, and a server-authoritative Cloud Run backend. The feedback identifies three main improvement opportunities: resolving a race condition in server.js where clearUserCart resolves before asynchronous deletions complete, preventing potential socket leaks by resuming the patchRes stream, and optimizing cart migration in index.html by parallelizing sequential Firestore document reads using Promise.all.

Comment thread app-dev/secure-shopping-cart/server.js
Comment thread app-dev/secure-shopping-cart/server.js
Comment thread app-dev/secure-shopping-cart/public/index.html Outdated
@kweinmeister
kweinmeister merged commit f2cceba into main Aug 21, 2026
11 checks passed
@kweinmeister
kweinmeister deleted the feat/secure-shopping-cart branch August 21, 2026 19:44
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