Skip to content

Commit

Permalink
Never log password value #7366
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Dec 9, 2020
1 parent 4084186 commit aa8d5b3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Log/EventCompleter.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,17 @@ private function getEnvData(): array
return $envData;
}

/**
* Remove password value from GraphQL variables well-known structure
*/
protected function removeSensitiveData(array $request): array
{
foreach ($request as &$r) {
if (is_array($r)) {
unset($r['variables']['password']);
}
}

return $request;
}

Expand Down

0 comments on commit aa8d5b3

Please # to comment.