Use cases: Obfuscating sensitive information for developers, data scientists, or AI models
This can be useful to implement advanced data privacy features like obfuscating sensitive information, e.g. when developers are trying to debug an issue, or when a data scientist wants to analyze data in a secure way. Another use case could be to limit data access when interacting with AI models. Depending on the request context, you can implement a custom value renderer to limit what data is available to the AI model. For example, you could obfuscate fields in the Schema that you consider sensitive, like credit card numbers, social security numbers, or other personal information.How to implement a custom value renderer
To implement a custom value renderer, please follow the guide in the Custom Module documentation. Below is an example implementation that implements a custom value renderer to obfuscate fields of typeString
, Int
, and Float
.
In addition, the example shows how to use the RouterOnRequest
hook to conditionally apply the custom value renderer,
in this case only for users with the role developer
.