zuul-jobs/roles/upload-logs-base
James E. Blair 26bf1e516e Fix CORS and endpoint in AWS log upload
The AWS log upload module does not behave like the rest of the
modules: it does not set CORS headers, which means that logs will
not be usable in the Zuul web UI without additional manual
configuration.  The other uploaders all set CORS settings
automatically.

Correct this in the same way that we do for other clouds.

Additionally, if an S3 bucket is created outside of us-east-1, then
objects in it must be addressed using the bucket name as hostname,
rather than the bare host s3.amazonaws.com.  Update the returned
URL to use the bucket hostname.  This works as well for buckets in
us-east-1.

Also, fix the command line test invocation.

Change-Id: Id92f3cf506b442d0ee5932c6e9d931df19c2cc71
2022-09-23 08:11:46 -07:00
..
library Fix CORS and endpoint in AWS log upload 2022-09-23 08:11:46 -07:00
module_utils GZIPCompressedStream default read size to -1 2020-12-02 20:59:55 +01:00
README.rst Merge upload logs modules into common role 2020-09-25 13:21:12 +02:00
__init__.py Merge upload logs modules into common role 2020-09-25 13:21:12 +02:00

README.rst

Common library role for upload logs roles

This role contains the libraries and common code used by the upload-logs roles.