Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aTrGn-00034A-1S for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Feb 2016 13:26:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aTrGm-0000yM-GE for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Feb 2016 13:26:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aTrGl-0000xW-41 for pgsql-hackers@postgresql.org; Thu, 11 Feb 2016 13:26:51 +0000 Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aTrGi-0006Mp-1u for pgsql-hackers@postgresql.org; Thu, 11 Feb 2016 13:26:50 +0000 Received: by mail-lf0-x22f.google.com with SMTP id 78so31439254lfy.3 for ; Thu, 11 Feb 2016 05:26:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:mime-version:in-reply-to :content-type; bh=Dq4nTMgh6IphYmoAofgNKMgxYIKpQ/KPmuxIbrgPWmE=; b=an2QuwOkuYhtzx7YhUw95tOmSsdbNqBOUYI8sy1AjoVqGBGQaonJ50hs1asOYDp/IT OSAQjbGosTxkw9q9+GsHskN2s6lS8oX4CD9SPzhGoNGacZmYFIJhrsNWZTI/+colJkXC 5zdyDD2x+mUgD2jJZZFaOgAZQMbirEpDgrC2cDYlLB/n/E2uZwJWr8suYHm4/nlaAkSi 6nfTlGzCye4+shCFWKXDenCXxMpMRVXeoXiEJSuYcqj3Ip0UgNsLV44GvqFnvCNjUlk2 zVStUZ25WAGVe/CZAGS00VCO11uUCWM0VrQewHRceeMciUElT+OjAocF6mcOkeGTrbE5 pswA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type; bh=Dq4nTMgh6IphYmoAofgNKMgxYIKpQ/KPmuxIbrgPWmE=; b=fQ+i/8svANWOuHuqeMaD/sgJCPA/n5wwr0zIDFLiKILs3DkXP5xlTkKioOvoUdYlw3 PB22iVypn1g9HUMek+doVJa0cqFuoIMuJmaUfUFm82UqG9+TPRTelti/ni4z1KP1nsn3 BLb0oJhuM2GKlxfKgWmYbh+bWKYEMueH3AGS6DaslztJMuzd6M15/JakMFt1dWprTYPD CwCe6SD3ZTwXcgTbfpmQ/QXO6GCUL6LAtRq5FVGl3slcQi6+gg5uSTZD0qaY1biLVL6H fSnPMNyfDeHGduwzr8D2+qSLvn7ymI/ulddMsZ9zuypx1rVOuRsKv3gk1C4ZHCLEMz/o whkQ== X-Gm-Message-State: AG10YOTElsc4izHbZLWXFx85XsG459KBXcopjXASdIQBn2TR2FGVUEEjsKuvNa7K3EjwNA== X-Received: by 10.25.37.136 with SMTP id l130mr16046995lfl.60.1455197207651; Thu, 11 Feb 2016 05:26:47 -0800 (PST) Received: from [192.168.0.50] ([185.5.219.249]) by smtp.googlemail.com with ESMTPSA id h72sm1247848lfe.33.2016.02.11.05.26.46 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 11 Feb 2016 05:26:46 -0800 (PST) Subject: Re: Request for Code Review: BPGSQL To: Rich Jones , pgsql-hackers@postgresql.org References: From: Jacek Wielemborek Message-ID: <56BC8C11.1000505@gmail.com> Date: Thu, 11 Feb 2016 14:26:41 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="V7aXAuatuW4KW7V45dIl8iPSnQfHxdBAL" X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --V7aXAuatuW4KW7V45dIl8iPSnQfHxdBAL Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable W dniu 11.02.2016 o 14:06, Rich Jones pisze: > Hello, team! >=20 > I am writing on behalf of the BPGSQL Project [1] to request a code audi= t > from a core PGSQL team member. >=20 > The current maintainer is worried about the security of the code, and i= s > considering closing the project unless it can be properly reviewed [2].= As > a project living downstream[3] of that client library, I'd obviously mu= ch > rather see that project get reviewed rather than see it die. >=20 > Would anybody here be so kind as to volunteer to give BPGSQL a code rev= iew > from an upstream developer's perspective? It would have a lot of value > downstream users who want to use Postgres on Amazon RDS for serverless > applications, and I'm sure in plenty of other places. >=20 > Thanks very much!, > Rich Jones >=20 > [1] https://github.com/d33tah/bpgsql > [2] https://github.com/d33tah/bpgsql/issues/7 > [3] https://github.com/Miserlou/django-zappa/issues/3 >=20 Hello, Thanks Rich, I second the request for a code review. I felt I'd add that this is a 1500-line pure-Python PostgreSQL client module that I inherited after Barry Pederson. After I realized how execute() is implemented, I have my worries and I'd rather not risk making my users vulnerable. I'd be really grateful if somebody who knows a bit of Python and the guts of PostgreSQL could speak up on this one. Cheers, d33tah --V7aXAuatuW4KW7V45dIl8iPSnQfHxdBAL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWvIwRAAoJEGlViymZXJRv7AEQAJAatfNdQqGi+kkrkZjTO3cs BaTp2sudBZouTJdzZ6s9Qj3Gd+k96LTctH24+e3KZbbhalQsGkEQHEZ5iymPEYOF HVjO6Dh9tqUShd04VWfilABQAMRyHLKqsqHjiOfP+s6+UUlIFuJf4e8p2jweS60C 82SbC90PacwivosIYwNbDBM+ZfYHjgA+Rdtx+ApqNvCPpJx4kAhuDwA0KgN/t7uw dQedZQHQYhDGl/eiGVGdfIhxRWlsxkTu0204p49Mt3UenNV+2KbJ2OqnkNYwIskQ LGyRZQz/dU97uDHfaqDt15zlA3gHH48sASdOrAU9CN9zBdG3Yj7xPj3IAcLyiV+g 2TYsM72UUBocXWXYDQh39tWBhe5ljNOV1pbe9kpWZqxCgAq5lqgVVyvi96vQ/DiK 7y+yv7cB+6g5T/Kc4mlNpm5xN9o/ahlTdPSdzbLTVad97JMfXw/+N/oajZ4IM78j 2ih/9uGKQkO8dxGT0he4o7AjfidXV7SR1BiyM7yQsnxEp5Zq4XMVLoKvMuGojxly Y4IeZNEJP3qp0UXpsthlxaKhjn2xaAJNy7Ljf9QeN4NCn3bCnn0Tnwe91MsH8CGf grJFZ3odvLhmQu1XtIqivQBxMO7/Bv/ihnycfGFjYnJyAv/xCjMpC4brWkkXEq6p /RPTEVeZ2IKbYH8s/XLV =al9O -----END PGP SIGNATURE----- --V7aXAuatuW4KW7V45dIl8iPSnQfHxdBAL--