Skip to content

Commit 9dfc157

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 9dfc157

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-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 }}"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
fixes:
3+
- |
4+
Fixed RADOS gateway usage exporter deployment failing
5+
to generate ec2 credentials for the ceph_rgw user.
6+
- |
7+
Fixed RADOS gateway usage exporter not using the system
8+
trust root as its CA bundle.

0 commit comments

Comments
 (0)