summaryrefslogtreecommitdiffstats
path: root/src/lib/Proxy.py
Commit message (Collapse)AuthorAgeFilesLines
* scrub password from error messagesChris St. Pierre2011-07-191-4/+3
|
* bcfg2: Catch tracebacks (Tickets #1016 and #1017)Sol Jerome2011-06-211-7/+4
| | | | | | | This also moves the exception handling added in #1012 to the bcfg2 code for consistency (as per Holger Weiß's suggestion). Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Proxy: Catch traceback when name resolution fails (#1012)Sol Jerome2011-06-041-1/+7
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* guarantee that timeout is a floatChris St. Pierre2011-06-011-1/+1
|
* Fix a typo in an SSL error messageHolger Weiß2011-05-111-2/+2
|
* Fix regressions with new py3k codeSol Jerome2011-05-031-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Common: Add full PY3K compatibilitySol Jerome2011-04-271-13/+15
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* PY3K + PEP8 fixes for remaining filesSol Jerome2011-04-071-13/+25
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Proxy: Fix for Python 2.7 xmlrpclib Transport class (Patch from Gordon Messmer)Sol Jerome2011-04-031-6/+12
| | | | | | | | Something changed in Python 2.7 with respect to the xmlrpclib.Transport api such that you need to store the authentication headers in self.extra_headers so that they are sent to the server properly. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Updated files to match PEP 257Fabian Affolter2010-06-071-7/+9
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5899 ce84e21b-d406-0410-9b95-82705330c041
* Proxy: transport errors more gracefully (Fixes #803, at least on the client ↵Narayan Desai2009-12-201-2/+1
| | | | | | side) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5626 ce84e21b-d406-0410-9b95-82705330c041
* Proxy: better error handling (Resolves Ticket #810)Narayan Desai2009-12-091-1/+16
| | | | | | | - Handle M2Crypto wrongHost errors cleanly - auto-resolve IP addresses given in server URLs git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5616 ce84e21b-d406-0410-9b95-82705330c041
* Proxy: handle case where err has no errno attribute (Resolves Ticket #769)Narayan Desai2009-10-271-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5508 ce84e21b-d406-0410-9b95-82705330c041
* Proxy: improve error message for SSL key issues (Resolves Ticket #682)Narayan Desai2009-10-241-0/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5495 ce84e21b-d406-0410-9b95-82705330c041
* Proxy: handle case where server disallows connection with an error message ↵Narayan Desai2009-10-241-0/+3
| | | | | | and graceful exit (Resolves Ticket #686) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5494 ce84e21b-d406-0410-9b95-82705330c041
* Proxy: patch version checking code to work on releases with strings in the ↵Narayan Desai2009-10-121-1/+1
| | | | | | | | names. Patch from Guilhem Lettron (Resolves Ticket #761) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5481 ce84e21b-d406-0410-9b95-82705330c041
* Implement support for M2Crypto on the bcfg2 client.Mike McCallister2009-10-081-18/+132
| | | | | | | | | | | | | | | | | | | | While Python 2.6's ssl module is the way of the future, support for M2Crypto helps the Bcfg2 client run on machines with older versions of Python. This commit provides basic support. More work remains to be done on general SSL support within Bcfg2. Reference the following work-in-progress document (or its successors) for things to consider: http://tools.ietf.org/html/draft-saintandre-tls-server-id-check-02 See also the following thread for other thoughts: http://thread.gmane.org/gmane.comp.sysutils.bcfg2.devel/3563 git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5480 ce84e21b-d406-0410-9b95-82705330c041
* Pylint/PEP 8 Code cleanupsSol Jerome2009-10-071-7/+6
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5477 ce84e21b-d406-0410-9b95-82705330c041
* Proxy: Implement tunable socket timeoutsNarayan Desai2009-09-151-6/+7
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5435 ce84e21b-d406-0410-9b95-82705330c041
* SSL: Implement protocol selection in bcfg2.confNarayan Desai2009-06-241-2/+11
| | | | | | | Add explicit knob to select encryption for client/server connections. The default value is xmlrpc/ssl, but xmlrpc/tlsv1 is also supported (needed to use DOE grid certs) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5297 ce84e21b-d406-0410-9b95-82705330c041
* SSL: Implememt client-side server cN verificationNarayan Desai2009-05-191-5/+22
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5244 ce84e21b-d406-0410-9b95-82705330c041
* pylint fixesNarayan Desai2009-05-151-4/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5240 ce84e21b-d406-0410-9b95-82705330c041
* SSL: Fix Transport constructor call on python2.4 (Patch from Tim Laszlo)Narayan Desai2009-05-111-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5218 ce84e21b-d406-0410-9b95-82705330c041
* SSL: client side read based on server-provided content length (allows ↵Narayan Desai2009-05-111-0/+39
| | | | | | graceful ssl shutdowns to work, makes server portable 0.9.5.7-trunk) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5215 ce84e21b-d406-0410-9b95-82705330c041
* SSL Proxy: only use timeout parm with py2.6+ (patch from Torsten Rehn) ↵Narayan Desai2009-05-071-2/+11
| | | | | | (Resolves Ticket #652) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5209 ce84e21b-d406-0410-9b95-82705330c041
* SSL Proxy: pass through key/cert/ca args to transportNarayan Desai2009-05-061-3/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5192 ce84e21b-d406-0410-9b95-82705330c041
* Proxy support for keys/certs/casNarayan Desai2009-05-061-5/+23
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5184 ce84e21b-d406-0410-9b95-82705330c041
* clean up handshake stuffNarayan Desai2009-05-061-2/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5183 ce84e21b-d406-0410-9b95-82705330c041
* Implement basic proxy based on 2.6 sslNarayan Desai2009-05-061-22/+26
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5182 ce84e21b-d406-0410-9b95-82705330c041
* Remove unused imports for pylintSol Jerome2009-04-171-4/+7
| | | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5168 ce84e21b-d406-0410-9b95-82705330c041
* Implement ssl certificate split, in preparation for SSL client cert authNarayan Desai2009-04-081-3/+17
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5155 ce84e21b-d406-0410-9b95-82705330c041
* Fix TLS error path (Reported by kisielk) (Resolves Ticket #621) [bugfix]Narayan Desai2008-12-031-2/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4990 ce84e21b-d406-0410-9b95-82705330c041
* Print ProtocolError messages (patch from Kamil Kisiel)Sol Jerome2008-09-271-2/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4924 ce84e21b-d406-0410-9b95-82705330c041
* Improve error messages in client metadata resolution failure path (Resolves ↵Narayan Desai2008-06-121-0/+2
| | | | | | Ticket #563) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4693 ce84e21b-d406-0410-9b95-82705330c041
* Fix error path (Reported by jcollie on irc)Narayan Desai2008-06-031-3/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4653 ce84e21b-d406-0410-9b95-82705330c041
* multi-fingerprint support (mainly from Ben Ritcey)Narayan Desai2008-04-011-4/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4464 ce84e21b-d406-0410-9b95-82705330c041
* Handle checksum problems properlyNarayan Desai2008-01-161-0/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4246 ce84e21b-d406-0410-9b95-82705330c041
* Simplify proxy code. We don't need a multi-component infrastructure or local ↵Narayan Desai2008-01-091-128/+6
| | | | | | instantiation for bcfg2 git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4229 ce84e21b-d406-0410-9b95-82705330c041
* Replace bcfg2 proxy code with simplified code from CobaltNarayan Desai2008-01-091-0/+188
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4226 ce84e21b-d406-0410-9b95-82705330c041