-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add configuration to use a different CA cert bundle or disable verification #101
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -79,6 +79,9 @@ def __init__(self, hs, config): | |||||||||
|
||||||||||
if "secret_access_key" in config: | ||||||||||
self.api_kwargs["aws_secret_access_key"] = config["secret_access_key"] | ||||||||||
|
||||||||||
if "verify" in config: | ||||||||||
self.api_kwargs["verify"]=config["verify"] | ||||||||||
Comment on lines
+83
to
+84
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For reference, this is the set of allowed properties passed to the client. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
self._s3_client = None | ||||||||||
self._s3_client_lock = threading.Lock() | ||||||||||
|
@@ -179,6 +182,9 @@ def parse_config(config): | |||||||||
if "secret_access_key" in config: | ||||||||||
result["secret_access_key"] = config["secret_access_key"] | ||||||||||
|
||||||||||
if "verify" in config: | ||||||||||
result["verify"]=config["verify"] | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
if "sse_customer_key" in config: | ||||||||||
result["extra_args"]["SSECustomerKey"] = config["sse_customer_key"] | ||||||||||
result["extra_args"]["SSECustomerAlgorithm"] = config.get( | ||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move this below
secret_access_key
.I do wonder if this should just point back to the AWS docs or something?