Sentry.Maui sends the user's device name with no PII gate

Abierto
#5,956 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
csharp
Área
backend

Línea de trabajo

Start by reading MauiDeviceData.ApplyMauiDeviceData and its caller, SentryMauiEventProcessor, then review how SendDefaultPii is applied to device data and the related discussion in #5932. Decide how device names should interact with DataCollection; done means device names are gated consistently with the agreed option and covered by tests for the relevant settings.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Framework: MAUI State: Needs Discussion

Sentry.Maui sends the name of the user's device on every event, with no option gating it. MauiDeviceData.ApplyMauiDeviceData (called from SentryMauiEventProcessor) sets:

device.Name ??= deviceInfo.Name;

SendDefaultPii doesn't gate it, and no DataCollection option does either. It has been this way since #1713 (2022).

On the platforms MAUI targets, DeviceInfo.Name is often the user's own name for their device:

Platform MAUI's DeviceInfo.Name Typical value
Android Settings.Global device_name (API 25+), falling back to Model The name the user gave the phone, e.g. "Jane's Pixel"
iOS UIDevice.CurrentDevice.Name Generic ("iPhone") on iOS 16+ unless the app has Apple's user-assigned device name entitlement; the user's name for it before that
Windows EasClientDeviceInformation.FriendlyName The computer name
macOS SCDynamicStoreCopyComputerName The computer name, e.g. "Jane's MacBook Pro"
Other SDKs
  • sentry-cocoa doesn't send a device name. The device context has model and model_id only.
  • sentry-java (Android) doesn't set a device name.
  • sentry-dart sets device.name from the hostname, and only when sendDefaultPii is on.

So MAUI is the only mobile SDK we found that sends it unconditionally.

Data collection

The data collection spec puts "Device and environment context (OS, runtime, non-PII identifiers)" in technical context, which no dataCollection option gates, and puts "Identity (name, …)" under PII. A user-chosen device name is closer to the second. No dataCollection option covers it, the same gap as the hostname sent as server_name, discussed in #5932.

To decide
  • Gate it on SendDefaultPii now, as Dart does. This changes what existing MAUI apps send by default.
  • What gates it once DataCollection is configured. If .NET adds a top-level AttachServerName that defaults to false on Android and iOS (the shape #5932 discusses for the hostname), device name could follow the same switch or get its own.

Part of #5420.

Lenguaje dominante
C#
Estrellas
775
Forks
262
Merge medio
1 d 16 h
PR fusionados (30 d)
118

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de getsentry/sentry-dotnet

Todos los issues de getsentry/sentry-dotnet

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.