Skip to content

Conversation

@davetorre
Copy link

This PR contains:

A demonstration that nodeIntegration can be false (and contextIsolation can be true) when using RxDB in Electron.
It seems that one reason (hopefully the only reason) it is set to true today is because of the way node_modules are being imported in the renderer.js code. Adding webpack seems to let me turn off nodeIntegration and the example still works.
Can someone more familiar with the RxDB take a look and determine if this is correct?

Describe the problem you have without this PR

There are warnings in the Electron docs against enabling nodeIntegration and disabling contextIsolation: https://www.electronjs.org/docs/latest/tutorial/security

@davetorre davetorre changed the title Turn off node integration Draft: Turn off node integration Mar 7, 2025
@davetorre davetorre marked this pull request as draft March 7, 2025 19:33
@pubkey
Copy link
Owner

pubkey commented Mar 10, 2025

@davetorre This fails the electron tests in the CI, please check.

@pubkey
Copy link
Owner

pubkey commented Mar 31, 2025

Closed because the CI fails and no answer.

@pubkey pubkey closed this Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants