sandstorm-io / sandstorm

Sandstorm is a self-hostable web productivity suite. It's implemented as a security-hardened web app package manager.
https://sandstorm.io
Other
6.72k stars 705 forks source link

For app authors, create a HTTP proxy that calls httpGet #1419

Open paulproteus opened 8 years ago

paulproteus commented 8 years ago

As an app author, I want to set a HTTP_PROXY environment variable for my app which would result in the app's HTTP communication being tunneled over the Sandstorm httpGet (deprecated) API.

I believe @jparyani has done some work toward this already. I believe the current question-mark is: how should we handle HTTPS? Typically the HTTP_PROXY environment variable results in the CONNECT verb being used, so (presumably) Sandstorm would need to create a HTTPS CA that the app trusts. One implementation strategy, for better or for worse, is:

Other question:

Relevant discussion:

Thanks to @ndarilek for requesting this issue be filed.

paulproteus commented 8 years ago

(Assigned myself by accident.)