December 10, 2014

How to Expose Postgres Using REST

It's always a good idea to keep all unnecessary IP ports closed on a server. Indeed, there is a long list of them for every vendor (and if there isn't, it's not because the vendor is secure...). The code below lets you expose your database instance using webpy and pg8000, so it will run anywhere, including Windows. If I get a chance to enhance this, I'll be putting a help endpoint to the application.

No comments:

Post a Comment