Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Flare Scrubber Laravel Package

johnwilhite/laravel-flare-scrubber

Laravel service provider to scrub sensitive request data before reporting errors to Flare. Recursively sanitizes matching keys or values via exact keys, key regex, or value regex, with configurable replacement text (default SANITIZED).

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Compliance & Security Roadmap: Accelerates GDPR, HIPAA, or PCI-DSS compliance by automating scrubbing of sensitive data (e.g., SSNs, credit card numbers) from error logs sent to Laravel Flare. Reduces manual effort in audits or incident response.
  • Build vs. Buy: Avoids reinventing a custom solution for request data sanitization, leveraging a lightweight, configurable package instead of building in-house middleware or filters.
  • Error Monitoring & Debugging: Enhances Flare’s utility for production debugging by ensuring PII (Personally Identifiable Information) is masked, balancing transparency with security for engineering teams.
  • Multi-Tenant SaaS Use Cases: Critical for shared environments where tenant-specific sensitive data (e.g., API keys, tokens) must be scrubbed before logging to avoid cross-contamination.
  • Incident Response: Speeds up triage by ensuring sensitive data isn’t accidentally exposed in error reports, reducing legal/operational risk during outages.

When to Consider This Package

  • Adopt if:

    • Your app handles regulated or sensitive data (e.g., healthcare, finance, e-commerce) and uses Laravel Flare for error monitoring.
    • You lack native Flare scrubbing (e.g., older Flare versions or unsupported data structures) and need recursive key/value matching.
    • Your team prioritizes config-driven security over hardcoded solutions (e.g., no need for custom middleware).
    • You want to future-proof against Flare’s native scrubbing limitations (e.g., nested arrays, dynamic keys).
  • Look elsewhere if:

    • You’re using Flare’s latest version (2023+), which may already include native scrubbing (per the README).
    • Your sensitive data patterns are static and simple (e.g., only exact key matches like password), making regex/config overhead unnecessary.
    • You need real-time scrubbing (e.g., API responses) beyond error logs—consider middleware like laravel-sanctum or tymon/jwt-auth.
    • Your stack uses non-Laravel frameworks or Flare alternatives (e.g., Sentry, Rollbar).

How to Pitch It (Stakeholders)

For Executives: "This package lets us automatically redact sensitive data (like credit card numbers or SSNs) from error logs sent to Flare, reducing compliance risk without slowing down debugging. It’s a 10-minute config change that could save us from costly data leaks or audit failures. Think of it as ‘set-and-forget’ security for our error monitoring."

For Engineering/DevOps: "Flare is great for debugging, but it can accidentally expose PII in error reports. This package adds recursive scrubbing for keys/values (e.g., ssn, regex patterns) via a simple config/flare.php. It’s lightweight, MIT-licensed, and plays nicely with Flare’s existing workflow. We can start with high-risk fields (passwords, tokens) and expand the config as needed—no code changes required."

For Security/Compliance: "This addresses a gap in Flare’s native scrubbing by handling nested arrays and dynamic keys (e.g., user[profile][ssn]). The config-based approach lets us adapt to new regulations without code deployments. For example, we can add value_regex for credit card patterns or key_regex for API keys. It’s a scalable way to meet GDPR/HIPAA requirements for error logging."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager