friendo-bot
friendo-bot copied to clipboard
Censor API token from logging data
Summary
Login requests to the Friendo API are being removed from logging as a hotfix. We would still like to log these requests, but with the token censored.
https://github.com/fisher60/friendo-bot/blob/def1d8e4f399435e3b3e253a48da6726f10ce897/bot/graphql.py#L11-L16
The current response looks like this
{
"data": {
"login": {
"token": "big_bad_token_leak_here_needs_to_be_cleansed/removed"
}
}
}
Hotfix applied in #252