Skip to content

Display and Debug don't honor @sensitive for individual fields #1833

@jjant

Description

@jjant

As discussed in #1743 (comment), the current @sensitive implementation only respects the trait when logging the structure containing the sensitive field, but not when logging the field itself.


A possible fix to this issue, is to newtype @sensitive shapes in the generated code, overriding their Display and Debug implementations through the Sensitive type.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions