Auth: add Public API for CURLOPT_CAPATH or other mechanism to avoid expensive reload
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
Rechercherichtung
Start by reading the discussion at https://github.com/googleapis/google-cloud-cpp/discussions/16111 and the existing internal CAPathOption and public CARootsFilePathOption implementations. Determine how curl options are exposed and tested, then assess a supported public option for CURLOPT_CAPATH. Done means the public API can select a CA directory and tests verify that it configures the intended curl behavior.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Discussed in https://github.com/googleapis/google-cloud-cpp/discussions/16111
Originally posted by LukePickett2 May 21, 2026
We're using google-cloud-cpp on Linux with OpenSSL 3.2, and have found that the default behavior — leaving libcurl to use the system CA bundle file via CURLOPT_CAINFO — causes OpenSSL to parse and load the entire bundle into a fresh SSL_CTX on each connection. With OpenSSL 3.2+ this is noticeably more expensive than the alternative: setting CURLOPT_CAPATH to a hashed certificate directory (e.g. /etc/ssl/certs/), which allows OpenSSL to do a single O(1) lookup for only the CA cert needed to verify each connection.
We noticed google:☁️:storage::internal::CAPathOption and google:☁️:internal::CAPathOption exist but are both marked "only intended for testing, not for public use."
Is there a supported/public way to achieve CURLOPT_CAPATH behavior? If not, is there any plan to expose this as a public option alongside CARootsFilePathOption? We'd rather not rely on an internal API for production use.
- Vorherrschende Sprache
- C++
- Sterne
- 659
- Forks
- 475
- Ø Merge
- 1 T. 12 Std.
- Gemergte PRs (30 T.)
- 77
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus googleapis/google-cloud-cpp
-
cleanup(storage): remove deprecated OpenTelemetry rpc.message.type and rpc.message.id attributesOffenapi: storage type: cleanup
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
googleapis/google-cloud-cpp#16544 ·
Maintainer antworten meist innerhalb von 1 Tag
-
api: storage priority: p2 type: bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
googleapis/google-cloud-cpp#16529 ·
Maintainer antworten meist innerhalb von 1 Tag
-
type: feature request
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 73/100
googleapis/google-cloud-cpp#16193 ·
Maintainer antworten meist innerhalb von 1 Tag
-
storage: MSan use-after-dtor flake at exit in tests calling EnableGrpcMetricsImplEvtl. vergeben @kalragauri hat das vor 4 Tagen übernommen. Offenapi: storage type: bug
googleapis/google-cloud-cpp#16587 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
api: storage type: cleanup
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
googleapis/google-cloud-cpp#16545 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in googleapis/google-cloud-cpp
Ähnliche Issues
-
backlog
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 91/100
EchoTools/nevr-runtime#1108 ·
Maintainer antworten meist innerhalb von 1 Tag
-
便携版仍然默认修改注册表Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 1 Tag
-
area/build-framework kind/new-feature
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
yugabyte/yugabyte-db#36023 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Boost broken linksOffenEnhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 2 Tagen
-
Status: Needs confirmation Status: Needs triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
Maintainer antworten meist innerhalb von 1 Tag