Skip to content

Fix handling of self-signed certs in s3_conn#1141

Merged
chess-knight merged 5 commits intomainfrom
fix/s3_conn
Apr 29, 2026
Merged

Fix handling of self-signed certs in s3_conn#1141
chess-knight merged 5 commits intomainfrom
fix/s3_conn

Conversation

@chess-knight
Copy link
Copy Markdown
Member

Take insecure/verify/cacert parameter from clouds.yaml and pass it to boto3.resource.
If insecure is True or verify is False use verify=False also for boto3.
Else, if you provide cacert(via cacert or verify parameter) it is also used for boto3.
If nothing from above is met, use verify=None to keep default boto3 behaviour.

Copy link
Copy Markdown
Contributor

@mbuechse mbuechse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the long wait. I had to simplify the code a little because the double ternary, plus the unpythonic is True freaked me out a bit.

Comment thread Tests/iaas/scs_0123_mandatory_services/mandatory_services.py Outdated
@chess-knight chess-knight requested a review from mbuechse April 29, 2026 07:26
Comment thread Tests/iaas/scs_0123_mandatory_services/mandatory_services.py Outdated
Comment thread Tests/iaas/scs_0123_mandatory_services/mandatory_services.py Outdated
chess-knight and others added 5 commits April 29, 2026 15:21
Take insecure/verify/cacert parameter from clouds.yaml
and pass it to boto3.resource.
If insecure is True or verify is False use verify=False
also for boto3.
Else, if you provide cacert(via cacert or verify parameter)
it is also used for boto3.
If nothing from above is met, use verify=None to keep default boto3 behaviour.

Signed-off-by: Roman Hros <roman.hros@dnation.cloud>
Signed-off-by: Matthias Büchse <matthias.buechse@alasca.cloud>
Signed-off-by: Matthias Büchse <matthias.buechse@alasca.cloud>
Signed-off-by: Matthias Büchse <matthias.buechse@alasca.cloud>
thanks @chess-knight!

Signed-off-by: Matthias Büchse <matthias.buechse@alasca.cloud>
@chess-knight chess-knight merged commit 18e6d92 into main Apr 29, 2026
9 checks passed
@chess-knight chess-knight deleted the fix/s3_conn branch April 29, 2026 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants