Skip to content

Remove JWT from all logs using Pino #7181

@euanmillar

Description

@euanmillar

Description

The JWT is always logged in internal microservice comms - this is a risk if Kibana is hacked or if a server engineer is corrupt

https://nkhilv.medium.com/how-to-redact-sensitive-information-from-logs-using-pino-pino-noir-2a27c09c2640

  • Analyse QA log stream to find user details, JWT tokens and other pieces of information that are not critical for debugging but reveal too much information on the users of the system or records we store. Perform actions like creating a user, changing a password etc to see what the log output is.
  • Use Pino to remove all of these details from the logs from any logs

Metadata

Metadata

Type

No type

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions