Re:Tauri – toolchain for building secure native apps that ha...
by zemnmez on Wednesday July 08, 2020 @03:15PM
(#23773257)
The author(s) got in contact with me about this post: it does appear that the APIs are exposed at the window level, meaning any iframe can access these functions. It's important to note that CSP does not traverse iframes, or at least, has very strict rules about how it does due to an information leak in CSP1 [1]. This means embedded content is not going to be affected by any CSP rules. OEMBED content, or sandboxed rendered markdown is going to be served from the `null` origin, meaning that frame-src rules will have no granularity.
Re:Tauri – toolchain for building secure native apps that ha...
by buffersandbeer on Wednesday July 08, 2020 @07:56PM
(#23775592)
Has an issue been opened in their github for this? I looked quickly and didn't see one, but would love to track it.
Re:Tauri – toolchain for building secure native apps that ha...
by nim2020 on Sunday July 12, 2020 @07:26AM
(#23810564)
I just filed one:
https://github.com/tauri-apps/tauri/issues/814
I like this direction for applications, but browser security protocols are a nightmare to replicate properly.
I recommend using pre-existing interfaces for launching apps like custom scheme URIs, or if really necessary writing individual handlers for the heavy lifting. I think the postMessage approach is great, too but it's vital that the caller `origin` is checked. The web app shouldn't need to run arbitrary commands on the computer.
[1]: https://github.com/tauri-apps/tauri/blob/2681ad361b4295756be... [2]: https://github.com/tauri-apps/tauri/blob/015474657c955c7ad29... [3]: https://github.com/tauri-apps/tauri/blob/c8f430297f95df16216... [4]: https://github.com/tauri-apps/tauri/blob/c8f430297f95df16216...