Add Sensitive Redaction For TypeScript
I am unable to find a method or manner for redacting sensitive fields from tracing in TypeScript.
There seems to be an attempt in the TS Tracing Docs - See the documentation on [API Schemas](/docs/ts/primitives/defining-apis#sensitive-data) for more information. - however, I do not see a sensitive-data section in the https://encore.dev/docs/ts/primitives/defining-apis
Of course, I see it for Go. But I am wondering if there is support for this on TypeScript as well.
Thank you in advance for your help. And apologies in advance if this is all in place and I am just missing it.
Hi @moop6535, you're correct this isn't supported yet. It's something we're planning to add as soon as possible.
@marcuskohlberg this would be really helpful to add. We have a use case where we need our FE client (React) to POST a user's password to the backend. The ability to not log this data would be very helpful to prevent password re-use.
It would be useful to also have this feature to redact the HTTP Authorization header's value, so as to prevent token re-use.