Skip to content

Add custom CA bundle support to BraintrustClientBuilder#26

Merged
Alex Jean-Baptiste (justcodebruh) merged 1 commit intomainfrom
ajb-sdk-ca-bundle
Mar 23, 2026
Merged

Add custom CA bundle support to BraintrustClientBuilder#26
Alex Jean-Baptiste (justcodebruh) merged 1 commit intomainfrom
ajb-sdk-ca-bundle

Conversation

@justcodebruh
Copy link
Copy Markdown
Contributor

Summary

Add custom CA bundle support to the Rust SDK so a downstream bt CLI change can use enterprise/custom CAs.

Changes

  • switch reqwest to rustls native roots
  • add optional PEM CA bundle support to BraintrustClientBuilder
  • use a CA-aware HTTP client builder for SDK login requests
  • add tests for valid, invalid, empty, and missing CA bundles

Context

This is needed for downstream branch braintrustdata/bt:ajb-cli-ca-fix, which adds --ca-bundle support across CLI HTTP flows.

@justcodebruh Alex Jean-Baptiste (justcodebruh) merged commit 527ac07 into main Mar 23, 2026
2 checks passed
Alex Jean-Baptiste (justcodebruh) added a commit to braintrustdata/bt that referenced this pull request Mar 24, 2026
## Summary
Add custom CA bundle support across bt HTTP flows.

## Changes
- add global `--ca-bundle` / `BRAINTRUST_CA_BUNDLE`
- apply custom CA handling to auth and OAuth flows, docs fetches, eval
dev-server requests, self-update checks, and API client requests
- keep CA-aware reqwest client construction local to `bt`
- consume the upstream SDK change needed for the CLI flow

## Dependency
Depends on braintrustdata/braintrust-sdk-rust#26
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