Installation ID fallbacks use the MAC address and a machine-name hash
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
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.
Written by the indexing model from the issue text.
Description
When the SDK can't store its installation ID file, InstallationIdHelper falls back to two values that identify the machine:
- The MAC address of the first network interface that's up and isn't loopback, sent unhashed.
- 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?
- Dominant language
- C#
- Stars
- 775
- Forks
- 262
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 118
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from getsentry/sentry-dotnet
-
chore: remove stale IL3050/IL3053 workaround from the iOS samplePossibly taken A pull request linked to this issue is open or already merged. OpenState: Needs Discussion
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
getsentry/sentry-dotnet#6071 · 1 comment ·
Maintainers usually reply within 1 day
-
Heap dumps: every SDK shutdown logs "Error waiting for GarbageCollectionMonitor task to complete"Possibly taken @pcbeingused33 claimed this today. OpenState: Needs Discussion
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
getsentry/sentry-dotnet#6039 · 3 comments ·
Maintainers usually reply within 1 day
-
.NET Platform: Android Task
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
getsentry/sentry-dotnet#6020 · 3 comments ·
Maintainers usually reply within 1 day
-
Move the Blazor WebAssembly sample off the deprecated DevServerPossibly taken A pull request linked to this issue is open or already merged. Open.NET Framework: Blazor
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
getsentry/sentry-dotnet#5906 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Docs MSBuild Needs Docs Update
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getsentry/sentry-dotnet#5691 · 1 comment ·
Maintainers usually reply within 1 day
All issues in getsentry/sentry-dotnet
Similar issues
-
In-car displays show 0 km/h and P while the AV drivesPossibly taken @bazilinskyy claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
bazilinskyy/coupled-sim#366 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
BaryoDev/umbraco-pwa#196 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
microsoft/fluentui-blazor#5688 ·
Maintainers usually reply within 1 day
-
bug flaky lsp-transport small
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day