Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@electron-internal/extract-zip": "^1.0.1",
"@electron/asar": "^4.0.1",
"@electron/fiddle-core": "workspace:*",
"@sentry/electron": "^7.18.0",
"@sentry/electron": "^8.3.0",
"i18next": "^26.5.7",
"monaco-editor": "^0.57.0",
"prettier": "^3.9.10",
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/main/crash/sentry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe('initCrashReporting', () => {
expect(initCrashReporting()).toBe(true);
expect(mocks.init).toHaveBeenCalledOnce();
expect(mocks.init.mock.calls[0]![0]).toMatchObject({
sendDefaultPii: false,
dataCollection: { userInfo: false, httpBodies: [] },
defaultIntegrations: false,
});
});
Expand Down
11 changes: 10 additions & 1 deletion packages/app/src/main/crash/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,16 @@ export function initCrashReporting(): boolean {
release: releaseName(app.getName(), app.getVersion()),
// Renderers reach Sentry through the app's own preload: the one exception to EIPC-only IPC.
ipcMode: Sentry.IPCMode.Classic,
sendDefaultPii: false,
// Replaces `sendDefaultPii: false`: no user info (so no IP inference), HTTP data, gen AI or DB query data.
dataCollection: {
userInfo: false,
cookies: false,
httpHeaders: false,
httpBodies: [],
urlQueryParams: false,
genAI: { inputs: false, outputs: false },
databaseQueryData: false,
},
// An explicit allowlist: no console, network or local-variable integrations, so those never collect anything.
defaultIntegrations: false,
integrations: [
Expand Down
11 changes: 10 additions & 1 deletion packages/app/src/renderer/features/about/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,16 @@ async function initRendererCrashReporting(enabled?: boolean): Promise<void> {
// Events go to main, whose `beforeSend` scrubs them. The integrations are an allowlist:
// no breadcrumbs, so no console, DOM or network breadcrumbs.
Sentry.init({
sendDefaultPii: false,
// Replaces `sendDefaultPii: false`: no user info (so no IP inference), HTTP data, gen AI or DB query data.
dataCollection: {
userInfo: false,
cookies: false,
httpHeaders: false,
httpBodies: [],
urlQueryParams: false,
genAI: { inputs: false, outputs: false },
databaseQueryData: false,
},
defaultIntegrations: false,
integrations: [
Sentry.globalHandlersIntegration(),
Expand Down
Loading
Loading