jeff-winn / homebridge-automower-platform

A platform plugin for Homebridge to connect your Husqvarna Automower and Gardena Smart robotic lawn mowers to Apple HomeKit.
MIT License
10 stars 0 forks source link

Do not log bearer tokens #183

Closed jeff-winn closed 1 year ago

jeff-winn commented 1 year ago

Is your feature request related to a problem? Please describe: While debugging issues remotely, the existence of the bearer tokens in the logs poses more risk than reward they could accidentally be leaked. As such, I would like these headers cleansed before being logged to the console.

Describe the solution you'd like: The header should still be logged, but with a message indicating it’s been removed.

Describe alternatives you've considered: Not logging it at all, however that poses the issue if it was not present. I need to validate presence without seeing the sensitive tone .

Acceptance Criteria