Skip to content

Commit f751774

Browse files
committed
Use system trust store as REQUESTS_CA_BUNDLE
By default Python requests uses its own CA bundle rather than the system trust store. As we optionally update the system trust store with our own CA, force Python requests to use the system trust store as its CA bundle.
1 parent cd289c5 commit f751774

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

etc/kayobe/ansible/deploy-radosgw-usage-exporter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
ACCESS_KEY: "{{ ec2.Access }}"
116116
SECRET_KEY: "{{ ec2.Secret }}"
117117
VIRTUAL_PORT: "{{ stackhpc_radosgw_usage_exporter_port | string }}"
118+
REQUESTS_CA_BUNDLE: "/etc/ssl/certs/ca-certificates.crt"
118119
entrypoint: "{{ ['python', '-u', './radosgw_usage_exporter.py', '--insecure'] if not stackhpc_radosgw_usage_exporter_verify else omit }}"
119120
vars:
120121
ec2: "{{ credential.stdout | from_json | first }}"

0 commit comments

Comments
 (0)