Middleware to allow cli-http to authenticate with s3