summaryrefslogtreecommitdiff
path: root/boto
Commit message (Collapse)AuthorAgeFilesLines
* removing duplicate `get_utf8_value` methodJoe Walker2019-03-291-14/+0
|
* Encode values to be hashed as utf-8Cat Lee Ball 🎷🐛2019-03-281-2/+2
|
* Replaced some six.ensure_strs from a previous commit of mineCat Lee Ball 🎷🐛2019-03-281-2/+2
|
* Replaced get_utf8_value calls in mturk with get_utf8able_strCat Lee Ball 🎷🐛2019-03-281-2/+2
|
* Updated docstring with string coercion behavior.Lee Ball2019-03-271-1/+4
|
* Forgot the `six.`Lee Ball2019-03-271-1/+1
|
* Utf8able now coerces objects to stringsLee Ball2019-03-271-0/+2
|
* Added import to get_utf8ableLee Ball2019-03-271-0/+1
|
* Use get_utf8able_str over get_utf8_valueCat Lee Ball 🎷🐛2019-03-278-26/+66
|
* import ioLee Ball2019-03-261-0/+1
|
* Spacing fix, comment fixCat Lee Ball 🎷🐛2019-03-261-72/+72
|
* Removed accidental paste, added sys importCat Lee Ball 🎷🐛2019-03-261-1/+2
|
* Added import collectionsCat Lee Ball 🎷🐛2019-03-261-1/+2
|
* Added print_to_fd to utils.pyCat Lee Ball 🎷🐛2019-03-262-2/+81
| | | | | | Added function print_to_fd and write_to_fd as a way to write strings to file descriptors in a type agnostic way for compatibility across Python versions.
* Fix test failures introduced in #3855 and #3866.Matt Houglum2019-03-211-5/+5
| | | | | Also changes variable name so that it's not using the name of a built-in type, i.e. `for key_bytes in self` instead of `for bytes in self`.
* Merge pull request #3854 from catleeball/utils-get-utf8Mike Schwartz2019-03-202-2/+4
|\ | | | | Updated get_utf8_value, explicit float cast
| * Explicitly cast config.get to floatCat Lee Ball 🎷🐛2019-03-201-1/+1
| |
| * Removed get_binary_str functionCat Lee Ball 🎷🐛2019-03-201-8/+0
| |
| * Mostly reverted get_utf8 changesCat Lee Ball 🎷🐛2019-03-191-3/+3
| |\ | | | | | | | | | | | | Removed extranious PY2 check and added a check to ensure bytes are UTF-8
| * | Updated get_utf8 and get_binary_strCat Lee Ball 🎷🐛2019-03-191-2/+12
| |/
* | A sneaky .encode() snuck back inCat Lee Ball 🎷🐛2019-03-201-1/+1
| |
* | Fixed wget snafu porting from last PRCat Lee Ball 🎷🐛2019-03-201-8640/+1883
| |
* | Python 2 / 3 compatibility fixesCat Lee Ball 🎷🐛2019-03-206-1899/+8678
|/
* Update six to 1.12Joe Walker2019-03-191-19/+93
| | | | Reference: https://github.com/benjaminp/six/blob/master/six.py
* Send SNI for HTTPS connectionsKevin Locke2019-01-151-4/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Several Google servers, including storage.googleapis.com, send an invalid certificate in response to HTTPS connections which do not include Server Name Indication (SNI) in ClientHello: OU = "No SNI provided; please fix your client.", CN = invalid2.invalid This can be demonstrated by running `openssl s_client -connect storage.googleapis.com:443` with and without the `-noservername` option. This causes errors in boto, such as: Traceback (most recent call last): File "./gsbototest.py", line 6, in <module> boto.storage_uri('bucket-name', 'gs').create_bucket() File "/tmp/boto/boto/storage_uri.py", line 574, in create_bucket storage_class) File "/tmp/boto/boto/gs/connection.py", line 95, in create_bucket data=get_utf8_value(data)) File "/tmp/boto/boto/s3/connection.py", line 682, in make_request retry_handler=retry_handler File "/tmp/boto/boto/connection.py", line 1074, in make_request retry_handler=retry_handler) File "/tmp/boto/boto/connection.py", line 1033, in _mexe raise ex ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727) To fix the issue, this commit sends SNI, where possible. This requires calling wrap_socket on an SSLContext instance. The necessary SSLContext is constructed and additional SSLSocket attributes are set using the [same code as SSLSocket] to minimize potential differences introduced. The code is only called when SSLContext is available (Python 2.7.9 and later) and only when OpenSSL is compiled with SNI support. [same code as SSLSocket]: https://github.com/python/cpython/blob/v2.7.15/Lib/ssl.py#L555-L570 Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
* Allows anon auth'n to S3 via a config option.Matt Houglum2018-09-164-19/+46
| | | | | | | | | | | | | See https://stackoverflow.com/questions/52308440/fetch-content-in-aws-s3-public-bucket-from-gcp-data-storage/52322861#52322861 for a valid use case for this option. This option was named after the "--no-sign-request" option in the AWS CLI. The additional changes to provider.py and auth.py are to prevent Boto from checking and failing to find credentials on the metadata server (and thus spewing error-level logs to the console), and to allow pickling to work for the AnonAuthHandler and HmacKeys classes.
* Bumped to 2.49.02.49.0masterDonald Stufft2018-07-111-1/+1
|
* Import the latest CA Bundle from certifiDonald Stufft2018-07-111-3800/+4363
|
* Fix to support uploads to KMS-encrypted buckets.Matt Houglum2018-03-121-5/+9
|
* Support fetching GCS bucket encryption metadata.Matt Houglum2018-03-085-6/+179
|
* Update layer1.pyClement Demonchy2017-10-241-1/+1
|
* Update layer1.pyClement Demonchy2017-10-241-2/+1
| | | Change according to request in review
* Update layer1.pyClement Demonchy2017-10-041-0/+2
| | | Add more information on rebuild_environment
* Support Billing Configuration.Mark Hjelm2017-09-124-13/+104
| | | | | | Pass headers everywhere appropriate. Recognize billing and userProject query parameters. Integration test for Billing Configuration.
* Bumped to 2.48.02.48.0JordonPhillips2017-07-061-1/+1
|
* Merge pull request #3734 from edmorley/anon-generate_urlMike Schwartz2017-06-281-5/+5
|\ | | | | Fix generate_url() AttributeError when using anonymous connections
| * Fix generate_url() AttributeError when using anonymous connectionsEd Morley2017-05-251-5/+5
| | | | | | | | | | | | | | | | | | | | | | Previously generating a URL would fail for anonymous connections (even when using `query_auth=False`), with: `AttributeError: 'AnonAuthHandler' object has no attribute '_hmac_256'` That now works, and in addition the `query_auth=False` parameter is now optional for anonymous connections. Fixes #1540.
* | Merge pull request #3737 from JordonPhillips/default-regioninfoJordon Phillips2017-06-141-0/+2
|\ \ | | | | | | Use RegionInfo by default with heuristics
| * | Use RegionInfo by default with heuristicsJordonPhillips2017-06-021-0/+2
| |/
* | Allow specifying s3 host from boto config file.Matt Houglum2017-06-131-3/+6
|/
* Bumped to 2.47.02.47.0JordonPhillips2017-05-241-1/+1
|
* Populate storage class from HEAD Object responses.Matt Houglum2017-02-283-1/+14
|
* Bumped to 2.46.12.46.1JordonPhillips2017-02-201-1/+1
|
* Bumped to 2.46.02.46.0JordonPhillips2017-02-201-1/+1
|
* Whitelist sigv2 regionsJordonPhillips2017-02-131-12/+61
| | | | | | Previously we had whitelisted sigv4 regions, this changes that to instead whitelist sigv2 regions. This way, new S3 regions will all use sigv4 without any additional changes needing to be made.
* Use generic connect functionJordonPhillips2017-02-1046-215/+221
| | | | | This points all the existing `connect_to_region` functions to the generic `connect` function within regioninfo.
* Add generic connect to region functionJordonPhillips2017-02-101-0/+51
|
* Add docstring for boto endpoint resolverJordonPhillips2017-02-091-0/+9
|
* Minimize exposed endpoint resolver interfaceJordonPhillips2017-02-091-16/+59
|
* Rename and hide service translation mapJordonPhillips2017-01-061-2/+2
|