mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Merge commit from fork
* Redact `access_token` in the query string when `LOG_STYLE=raw` * Add changeset --------- Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
This commit is contained in:
5
.changeset/chilly-adults-jog.md
Normal file
5
.changeset/chilly-adults-jog.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@directus/api': patch
|
||||
---
|
||||
|
||||
Redacted `access_token` in the query string when `LOG_STYLE=raw`
|
||||
@@ -100,7 +100,7 @@ export const createExpressLogger = () => {
|
||||
|
||||
if (env['LOG_STYLE'] === 'raw') {
|
||||
httpLoggerOptions.redact = {
|
||||
paths: ['req.headers.authorization', 'req.headers.cookie', 'res.headers'],
|
||||
paths: ['req.headers.authorization', 'req.headers.cookie', 'res.headers', 'req.query.access_token'],
|
||||
censor: (value, pathParts) => {
|
||||
const path = pathParts.join('.');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user