Skip to content

removing sensitive data from json form #277

@mkeskells

Description

@mkeskells

Its a bit similar to the problem in #266

I have two requirements to not expose sensitive data

  1. To hide some values entirely (e.g. a the value of a password field). This would be driven by the name of the field (but still retain the structure)
  2. To alter some values from text fields, e.g. the value contains some secret

Ideally we would do (2) based on data at runtime

I could imagine that we could do (1) by some annotation that runs at compile time (but I am new to this library), and currently this is also expected to be a runtime setting. Maybe it could be both

For (2) I would imagine that the easiest solution would be subclassing JsonWriter (but this is a final class).

Happy to work on this with someone if that helps.

My first thought is that if we could make JsonWriter non final, I could do (2)
And then expose the field that we are writing (as a complile switch?) then this could do (1) as well, but I could cope without this probably

What are you thoughts

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