Skip to content

invertase/firestore-security-auditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firestore Security Auditor

A command-line tool to audit Firestore security rules for potential vulnerabilities and best practices.

Installation

npm install -g firestore-security-auditor

Or use it without installing:

npx firestore-security-auditor --help

Usage

firestore-security-auditor [options]

Options

  • -p, --project <project>: Firestore project ID (required)
  • -r, --rules-file <rulesFile>: Path to Firestore security rules file (optional)
  • -v, --verbose: Enable verbose output (optional)

Examples

Audit rules by specifying a project and rules file:

firestore-security-auditor --project my-firebase-project --rules-file ./firestore.rules

Audit rules by fetching them directly from the project:

firestore-security-auditor --project my-firebase-project

Enable verbose output:

firestore-security-auditor --project my-firebase-project --verbose

Development

Setup

# Clone the repository
git clone https://github.com/yourusername/firestore-security-auditor.git
cd firestore-security-auditor

# Install dependencies
npm install

# Build the project
npm run build

Development Commands

  • npm run dev: Run the CLI in development mode
  • npm run build: Build the TypeScript code
  • npm run lint: Lint the code
  • npm test: Run tests

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published