-
Notifications
You must be signed in to change notification settings - Fork 278
Open
Labels
Description
See open-telemetry/opentelemetry-specification#3496 for the context.
TL;DR: exception messages may contain emails, user info, passwords / secrets and other sensitive information.
Our current (in development) error guidance recommends recording exception / error messages on spans status description or exception | error.message attribute on other signals.
What can we do:
- Option 1: status quo.
- Keep recording them by default
- It's user responsibility to sanitize them all on spans and events
- We'll document that all of them (span status description,
exception.messageanderror.message) may contain sensitive information
- Option 2: don't populate error | exception messages by default unless non-sensitivity is somehow guaranteed. Allow users to opt-in.
- Note: global opt-in is probably not helpful. The exception | error messages are very useful for observability and it's rather a bug and an edge case when they contain sensitive details.
- Option 3: limit where sensitive info appears to
error.messageattribute- Document it could have sensitive details
- Don't recommend to populate span status description in semconv ever, eventually deprecate
exception.message - Users would need to manually (via custom processor) sanitize known occurrences of problematic error messages using Span/Log processor
- ?
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Need triage
Status
Todo