encore icon indicating copy to clipboard operation
encore copied to clipboard

Add Sensitive Redaction For TypeScript

Open moop6535 opened this issue 10 months ago • 2 comments

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.

moop6535 avatar May 01 '25 22:05 moop6535

Hi @moop6535, you're correct this isn't supported yet. It's something we're planning to add as soon as possible.

marcuskohlberg avatar May 19 '25 12:05 marcuskohlberg

@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.

aren55555 avatar Aug 05 '25 22:08 aren55555