Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Firebase rules "if true": how to find open Firestore and Storage rules and fix them

Firebase and Firebase Studio apps often ship with Firestore or Realtime Database rules that let anyone read and write. It happens because the quick-start rules work, so nobody changes them. The rule to look for In Firestore, allow read, write: if true; means any visitor can read and write that collection. In Realtime Database, ".read": true and ".write": true at the root do the same. Test mode…

The article discusses the importance of securing Firebase Firestore and Storage rules to prevent unauthorized access to data. By default, these rules allow anyone to read and write data, which can pose a security risk. The article provides a step-by-step guide on how to check for open rules using the Firebase console's Rules tab and the Rules Playground.

It also suggests a best practice of tying access to signed-in user rules for Firestore and storing an `ownerId` on documents for Storage. For Cloud Storage, the rules should be set to allow read and write only if the user is authenticated and matches the expected user. The article also mentions a free tool, ProofForge, which can scan for exposed Firebase signals in public apps.

Brief written by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Vectorized Execution vs JIT Compilation: Two Ways to Make Queries Fast

Modern query engines face the same enemy: the cost of interpreting a query plan value by value. Two schools emerged to fight it. One processes many values at a time in tight loops over arrays.

  • Vectorized execution processes many values at once through array or batch operations.
  • JIT compilation compiles query plans into machine code to eliminate interpretation.
  • Hybrid engines combine both methods for tailored query performance.

TCP BBR vs CUBIC: Two Theories of How Fast to Send

Every TCP connection has to decide how fast to send without drowning the network. For decades the standard answer was to speed up until packets were lost, then slow down.

  • CUBIC algorithm reacts after packet loss, adjusts rate using cubic curve
  • BBR algorithm measures bandwidth and delay, sends data proactively
  • BBR excels on high-bandwidth, high-delay, or lossy paths, CUBIC on conventional networks

More from Thursday 26 November →