Skip to content

Redact password in Stringer of packets.ConnectPacket #499

@besedad

Description

@besedad

Return value of String() is not safe to use because it may contain unredacted password. If not careful, a password may leak out to logs and subsequently spread to other channels. I propose to modify the Stringer to replace any non-empty string with <redacted>. I'll follow up with a pull-request if the issue gets accepted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions