Skip to content

Redact sensitive tokens in query objects when logging errors #707

@ad-claw000

Description

@ad-claw000

When logging partial errors or exceptions in CommonLibrary.py and elsewhere, the raw query object is sometimes serialized and logged (e.g. json.dumps(query)). If the query contains token, refresh_token, or other credentials, they may leak in the logs.
We should apply censor_tokens() (or a similar redaction method) to the query objects before logging them.
This was noted during the review of PR #672.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions