You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I saw your comment on how to have secure IPC in Electron applications, and that led me to look into your profile, which then led me to look into this library, but realised something weird about how the library is used,
For example, in order to write to the config, you do:
import { writeConfigRequest } from "secure-electron-store";
window.api.store.send(writeConfigRequest, "myvalue", "14");
But in my opinion doing something like this would be better
Thanks for contributing this idea to the library @sheeyang. I do like your idea, and the way you propose it is implemented is clever. I think there's some things to weigh against this:
current approach
calls out importance of safelisting channel names when using IPC
proposed approach
hides implementation details to consumers of the library
I think I agree with your suggestion. Are you able to garner support for this change from others, or alternatively, submit a PR? This will be a breaking change and I'll have to update documentation in a number of places.
Hi, I saw your comment on how to have secure IPC in Electron applications, and that led me to look into your profile, which then led me to look into this library, but realised something weird about how the library is used,
For example, in order to write to the config, you do:
But in my opinion doing something like this would be better
since this means we dont have to import
writeConfigRequest
, so I wrote a solution to that and I would like to know what you thinkI will use the example you used in your comment to demonstrate my method
From your the comment you did this:
preload.js
I would like to suggest doing it this way:
preload.js
This means instead of doing:
index.html
We can do:
index.html
In my opinion, this is better, but I would like to know what you think
Also, thank you for your work on making it easier for us to make our electron apps secure, I really appreciate it 😊
The text was updated successfully, but these errors were encountered: