Skip to content

Commit

Permalink
Censor request body (#372)
Browse files Browse the repository at this point in the history
* censor-request-body

* edit changelog
  • Loading branch information
freekmurze committed Apr 8, 2021
1 parent a6f9fcd commit ae602ea
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `ignition` will be documented in this file

## 2.8.0 - 2021-04-08

- add `censor_request_body_fields` config option

## 2.7.0 - 2021-03-30

- adds a debug warning when having debug enabled on a non-local environment (#366)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"php": "^7.2.5|^8.0",
"ext-json": "*",
"ext-mbstring": "*",
"facade/flare-client-php": "^1.3.7",
"facade/flare-client-php": "^1.6",
"facade/ignition-contracts": "^1.0.2",
"filp/whoops": "^2.4",
"illuminate/support": "^7.0|^8.0",
Expand Down
1 change: 1 addition & 0 deletions config/flare.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
'grouping_type' => null,
'report_logs' => true,
'maximum_number_of_collected_logs' => 200,
'censor_request_body_fields' => ['password'],
],

/*
Expand Down
2 changes: 2 additions & 0 deletions src/IgnitionServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ public function register()
$this->app->get(Flare::class)->anonymizeIp();
}

$this->app->get(Flare::class)->censorRequestBodyFields(config('flare.reporting.censor_request_body_fields'));

$this->registerBuiltInMiddleware();
}

Expand Down

0 comments on commit ae602ea

Please sign in to comment.