Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global support for sand-boxed custom apps #1044

Open
ianopolous opened this issue Apr 25, 2023 · 2 comments
Open

Global support for sand-boxed custom apps #1044

ianopolous opened this issue Apr 25, 2023 · 2 comments
Projects

Comments

@ianopolous
Copy link
Member

ianopolous commented Apr 25, 2023

We would like global support for an exfiltration proof sandbox for running custom apps in Peergos in the browser, including on localhost. Our design uses iframes on random subdomains which are sand-boxed using CSP and COOP, COEP. This works in Firefox and Chrome based browsers (modulo webrtc based exfiltration), but not at all in Safari. We describe the architecture, motivation and use case more in this talk.

There are three high level issues blocking this at the moment. The first is stopping exfiltration via webrtc. This is discussed in the web spec here.

The browser issues for implementing the CSP webrtc switch are Chrome, Firefox and Safari.

The 2nd issue is safari not enabling service workers and writable streams in a sand-boxed iframe. We have written a demo for this on both localhost and a public domain here: https://github.com/Peergos/iframe-sw-streams (The public example is at https://safaribug.peergos.com/

The 3rd issue is safari not supporting localhost subdomains.

@ianopolous ianopolous created this issue from a note in Road map (Features) Apr 25, 2023
@ianopolous
Copy link
Member Author

ianopolous commented Dec 12, 2023

The 2nd and 3rd issues seem to be solved in the latest Safari!!!!! This means custom peergos apps now work fully in Safari on MacOS and iOS!!!!

@ianopolous
Copy link
Member Author

It seems like the 3rd issue was not actually fixed yet. But 2nd was the main issue for Peergos. Custom apps now run on Safari for public domains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Road map
Features
Development

No branches or pull requests

1 participant