From d1fb94fdc13785df4ee0b2c8ef008bd5beba73f6 Mon Sep 17 00:00:00 2001 From: Jonas Hungershausen Date: Mon, 26 Aug 2024 12:37:43 +0000 Subject: [PATCH] chore: add more paths to ignored access log & redact cookies (#351) --- package-lock.json | 4 ++-- package.json | 2 +- src/pkg/logger.ts | 4 ++++ src/routes/500.ts | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index bfb29013..c4e0fe76 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@ory/kratos-selfservice-ui-node", - "version": "0.19.0", + "version": "0.20.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@ory/kratos-selfservice-ui-node", - "version": "0.19.0", + "version": "0.20.1", "license": "Apache-2.0", "dependencies": { "@ory/client": "1.14.3", diff --git a/package.json b/package.json index 269ff3fb..9d1f2fb5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ory/kratos-selfservice-ui-node", - "version": "0.19.0", + "version": "0.20.1", "description": "A reference implementation of a selfservice UI for ORY Kratos in node.js", "homepage": "https://github.com/ory/kratos-selfservice-ui-node#readme", "bugs": { diff --git a/src/pkg/logger.ts b/src/pkg/logger.ts index c6c8beab..8fc5683f 100644 --- a/src/pkg/logger.ts +++ b/src/pkg/logger.ts @@ -32,6 +32,10 @@ export const middleware = expressWinston.logger({ "/content-layout.css", "/style.css", "/ory-small.svg", + "/ory-logo.svg", "/favico.png", + "/health/ready", + "/health/alive", + "/auth-layout.css", ], }) diff --git a/src/routes/500.ts b/src/routes/500.ts index f21cc4ae..816fa152 100644 --- a/src/routes/500.ts +++ b/src/routes/500.ts @@ -12,7 +12,7 @@ function formatRequest(req: Request) { url: req.url, httpVersion: req.httpVersion, body: req.body, - cookies: req.cookies, + cookies: "[Redacted]", path: req.path, protocol: req.protocol, query: req.query,