Re: javascript and postgres - Mailing list pgsql-general

From John R Pierce
Subject Re: javascript and postgres
Date
Msg-id 49A4291D.9020207@hogranch.com
Whole thread Raw
In response to Re: javascript and postgres  (野村 <nomura@ir-alt.co.jp>)
List pgsql-general
野村 wrote:
> Web pages have username and password with basic, digest or ldap
> authorization. So if I createuser with same user and password, and if
> there is md5 or something to encode password, I wonder javascript
> connects to postgres securely.
>

for that to work, irregardless of security aspects, the postgres client
libraries would have to be installed on each web browser system, in a
form that javascript could invoke. However, I've not heard of any
javascript -> postgres bindings suitable for use in a webbrowser context...

Javascript in a webbrowser is running in a sort of sandbox and isn't
supposed to be allowed to make its own network connections, or call
system libraries directly, allowing this would be a gross security flaw
(for instance, a hostile web page could take over a users computer).





pgsql-general by date:

Previous
From: Thom Brown
Date:
Subject: Warm standby failover mechanism
Next
From: Simon Riggs
Date:
Subject: Re: Warm standby failover mechanism