googleapis / googleapis/google-cloud-cpp
Investigate automatic detection of CA roots from environment variables (e.g. CURL_CA_BUNDLE)
- Ngôn ngữ chính
- C++
- Star
- 659
- Fork
- 462
- Merge trung bình
- 1 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 89
Mô tả
**Problem**
Currently, to make the `quickstart` examples work in the Windows Bazel CI environment (which uses a hermetic build with custom OpenSSL roots), we explicitly modify the C++ code to read the `CURL_CA_BUNDLE` environment variable and set the `CARootsFilePathOption`.
See PR #15818 for the current implementation
**Goal**
We should explore ways to avoid modifying the example code (`quickstart.cc`) for this CI-specific configuration.
**Potential Solutions**
- Update the client library to automatically check `CURL_CA_BUNDLE` or standard OpenSSL environment variables when initializing the default `Options`.
- Adjust the Bazel build configuration to transparently point to the correct roots without code changes.
This issue tracks the investigation and implementation of a solution that keeps the quickstart code clean and environment-agnostic.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với quickstart.cc và PR #15818 để hiểu cách xử lý CURL_CA_BUNDLE hiện tại và việc sử dụng CARootsFilePathOption. Đọc phần khởi tạo Options mặc định và cấu hình Bazel, sau đó so sánh các cách tiếp cận ở cấp thư viện đối với biến môi trường và cấu hình build. Được xem là hoàn tất khi quickstart.cc không còn cần các thay đổi dành riêng cho CI, trong khi các ví dụ CI của Bazel trên Windows vẫn sử dụng đúng các CA roots dự kiến.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- cpp
- Lĩnh vực
- build-system, cloud
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 25/100