Skip to content

Remove sensible data from Ilogger #2855

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kefran06 opened this issue May 22, 2025 · 1 comment
Open

Remove sensible data from Ilogger #2855

kefran06 opened this issue May 22, 2025 · 1 comment
Labels
Type: Idea This issue is a high-level idea for discussion.
Milestone

Comments

@kefran06
Copy link

What should we add or change to make your life better?

Can you redacted query string when you log target url like this logging example Proxying to {targetUrl} {version} {versionPolicy} {isStreaming}

Right now, I can see some access_token provided in query string

Why is this important to you?

I don't want sensible data to be find in my logging provider

@kefran06 kefran06 added the Type: Idea This issue is a high-level idea for discussion. label May 22, 2025
@MihaZupan
Copy link
Member

There's nothing built-in right now.
We did change HttpClient and HttpClientFactory to redact query strings by default for .NET 9, we could consider doing the same with YARP.

dotnet/runtime#74340
dotnet/runtime#103769
UriRedactionHelper.cs

@MihaZupan MihaZupan added this to the Backlog milestone May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Idea This issue is a high-level idea for discussion.
Projects
None yet
Development

No branches or pull requests

2 participants