sprin / pg-discuss

A comment system backend in Python with PostgreSQL
http://pg-discuss.sprin.io/
10 stars 1 forks source link

Sandstorm support #20

Open sprin opened 8 years ago

sprin commented 8 years ago

The Sandstorm platform is attractive for pg-discuss because of it's ease of use for operators, ability to self-host or use the hosted option, and emphasis on security.

After an initial proof-of-concept to determine viability, it appears possible to use pg-discuss on Sandstorm as a cross-domain comment service. Sandstorm will provide authentication for admin users. Both static assets and the public API can be published through Sandstorm. Sandstorm removes the Cookie/Set-Cookie headers when proxying to the app through an exported API, so anonymous users will be identified by an id stored in sessionStorage (versus a session cookie) that will be sent in a custom header.

A rough outline of the work involved: