Open tam-endue opened 3 months ago
@scopsy look like you knows the LogDecorator
class well, maybe you want to take a look
Thanks for reporting this @tam-endue .
We've encountered this issue too (Linear ref: NV-3274) . We traced the root cause back to fast-redact
as a 4th layer transitive dependency of nestjs-pino
, which mutates the objects passed for redaction in place.
Unfortunately the fix hasn't yet arrived in our direct dependency. Our only option as of now is to specify an overrides
in the monorepo root package.json
to manually specify the fix version.
Would you be open to submitting a PR for this fix?
π Description
When
LOGGING_LEVEL
set to debug, the@LogDecorator
set methods parameters that are sensitive fields like email toREDACTED
, which lead to issue with the api/widgets/session/initialize
, which ever body param sent, it will always return "Email must be an email" error message.π Reproduction steps
/widgets/session/initialize
π Expected behavior
Initialize session successfully and return token
π Actual Behavior with Screenshots
Novu version
0.24.2
npm version
No response
node version
No response
π Provide any additional context for the Bug.
No response
π Have you spent some time to check if this bug has been raised before?
π’ Have you read the Contributing Guidelines?
Are you willing to submit PR?
None