question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Field based redaction

See original GitHub issue

It would be really nice to have a way to apply selective redaction (aka. hidden / secret values) on fields for classes marked @Serializable. I realize that you can probably write your own custom serializers but this seems like functionality that should probably be “out-of-the-box”.

Coming from the java world, there are certain libraries that do this already (see example in java immutables), so it led me to request this feature here.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
elizarovcommented, Feb 28, 2019

For this use-case you can write your own encoder that know what fields should be masked (based either on annotation or simply by field name) and masks them appropriately.

1reaction
fvascocommented, Feb 28, 2019

I realize that you can probably write your own custom serializers

You should consider to write it

If this is out of scope for serialization

Logging looks out of scope, a ToStringBuilder is more appropriate, there are several implementations for JVM.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Implement Field Level Redaction — MongoDB Manual
Implement Field Level Redaction ... The $redact pipeline operator restricts the contents of the documents based on information stored in the documents themselves....
Read more >
RedactFields - IBM
The RedactFields action creates rectangular redaction fields to cover sensitive or restricted information in the document. These redactions and an audit ...
Read more >
FIELD LEVEL REDACTION WITH EPHESOFT AND BOX
FIELD LEVEL REDACTION WITH EPHESOFT AND BOX. Home . Insights & Events . FIELD LEVEL REDACTION WITH EPHESOFT AND BOX. Search for: ...
Read more >
Data Redaction: What It Is and When to Use It - Privitar
Data redaction is a data masking technique that enables you to mask (redact) data by removing or substituting all or part of the...
Read more >
Guidance on Redacting Personal Data Identifiers in ...
Press Ctrl as you drag to select a line, a block of text, an object, or an area. Use this method to select...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found