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.75k stars 706 forks source link

Allowing outbound HTTP POST requests #1924

Open mitar opened 8 years ago

mitar commented 8 years ago

Could we also allow HTTP POST requests? This would allow apps to do bot POST requests in the name of the user. For me Sandstorm is really about making personal apps and such apps often also want to automatize some tasks. Sending an outbound HTTP POST is pretty common.

paulproteus commented 8 years ago

Hi @mitar,

We'll be getting to this as we revise the powerbox to be useful for apps. I don't think we'll be adding httpPost to the existing hack session stuff as a matter of managing our time so that we can get the powerbox out sooner.

Having said that, you can already do this if you request a IpNetwork, see: https://github.com/sandstorm-io/sandstorm/blob/master/src/sandstorm/ip.capnp#L45

The "copy/paste powerbox" should work fine for this use. I know I keep saying the "powerbox isn't ready" but enough plumbing is, so I can help you with that if you want.

mitar commented 8 years ago

How would copy/paste powerbox work in this case? So how could I submit a form in the name of the user inside a cron job using powerbox?