Installation ID fallbacks use the MAC address and a machine-name hash

Abierto
#5,953 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
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
csharp
Área
backend

Línea de trabajo

Start with src/Sentry/Internal/InstallationIdHelper.cs, especially the file storage and fallback logic linked in the issue. The report also points to the event and session fields that receive this ID, and to the proposed Installation Identifier section in the Data Collection spec. First resolve the open questions about replacement behavior, compatibility and timing; done means the fallback no longer derives IDs from device identifying values and its behavior is covered for storage failures.

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

Descripción

.NET Bug State: Needs Discussion

When the SDK can't store its installation ID file, InstallationIdHelper falls back to two values that identify the machine:

  1. The MAC address of the first network interface that's up and isn't loopback, sent unhashed.
  2. A SHA-1 hash of Environment.MachineName.

This happens with DisableFileWrite on, or when the SDK can't create the directory or read or write the file. The ID goes out as user.id on events and transactions when no user ID is set, and as the session did. In global mode it's on logs too.

getsentry/sentry-docs#20856 adds an "Installation Identifier" section to the Data Collection spec. It says SDKs must not base the installation identifier on values that identify the device outside the app, such as a MAC address or a host name, and that a plain hash of such a value still identifies the device. When the SDK can't store the identifier, it suggests keeping a random one in memory for the life of the process. sentry-java on Android and sentry-cocoa only use random IDs.

Open questions
  • What should replace the two fallbacks? A random ID per process would count every restart as a new install for apps that can't write the file.
  • Apps that hit these fallbacks today would get a new ID once. Does that need a changelog note?
  • Should this wait until getsentry/sentry-docs#20856 merges?
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.