friendo-bot icon indicating copy to clipboard operation
friendo-bot copied to clipboard

Censor API token from logging data

Open fisher60 opened this issue 2 years ago • 2 comments

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

fisher60 avatar Oct 06 '22 22:10 fisher60

The current response looks like this

{
    "data": {
        "login": {
            "token": "big_bad_token_leak_here_needs_to_be_cleansed/removed"
        }
    }
}

fisher60 avatar Oct 06 '22 22:10 fisher60

Hotfix applied in #252

fisher60 avatar Oct 22 '22 21:10 fisher60