Repository navigation
docs: add HTTP mTLS transport examples - #2029
Conversation
53a24e7 to
0d2b8c1
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0d2b8c11d2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
HAYDEN-OAI
left a comment
There was a problem hiding this comment.
Two low-priority copy/paste compatibility issues are noted inline. The mTLS transport approach, endpoint selection, certificate-chain guidance, runtime-specific fetch wiring, manual-redirect protection, and cleanup otherwise look sound.
0d2b8c1 to
c2ac20a
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c2ac20aaf6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
c2ac20a to
9c4ae78
Compare
9c4ae78 to
24aed2d
Compare
24aed2d to
00fbbfd
Compare
00fbbfd to
eb06466
Compare
Automated Release PR --- ## [7.4.0](openai/openai-node@v7.3.0...v7.4.0) (2026-08-03) ### Features * **api:** Add gpt-5.5 model and tool metadata fields ([openai#2049](openai#2049)) ([6d8fb53](openai@6d8fb53)) ### Bug Fixes * defer release PR output parsing ([openai#2052](openai#2052)) ([395bdde](openai@395bdde)) ### Documentation * add HTTP mTLS transport examples ([openai#2029](openai#2029)) ([2cc5f96](openai@2cc5f96)) ### Build System * **deps-dev:** bump @smithy/hash-node from 4.3.5 to 4.4.15 ([openai#2064](openai#2064)) ([481b325](openai@481b325)) * **deps-dev:** bump @types/web from 0.0.194 to 0.0.354 ([openai#2061](openai#2061)) ([f61f267](openai@f61f267)) * **deps-dev:** bump publint from 0.2.12 to 0.3.22 ([openai#2058](openai#2058)) ([823d7df](openai@823d7df)) * **deps:** bump dotenv from 16.6.1 to 17.4.2 ([openai#2065](openai#2065)) ([3576574](openai@3576574)) * **deps:** bump fast-uri from 3.1.4 to 3.1.5 in /ecosystem-tests/vercel-edge ([openai#2050](openai#2050)) ([590982f](openai@590982f)) * **deps:** bump ip-address from 10.2.0 to 10.4.0 in /ecosystem-tests/vercel-edge ([openai#2056](openai#2056)) ([4d927de](openai@4d927de)) * migrate release workflow to upstream release-please ([openai#2048](openai#2048)) ([d41c272](openai@d41c272)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Summary
Documents API-key + HTTP mTLS using the SDK's existing transport hooks and adds runnable Node.js, Deno, and Bun examples. Enrollment, activation, certificate requirements, and supported endpoints are linked to the OpenAI Mutual TLS Beta Program.
This intentionally adds no new
mtlsclient option or SDK-owned transport. mTLS remains configured on the runtime HTTP client, so applications retain runtime-native support for passphrases, proxies, custom trust stores, hardware-backed keys, and certificate rotation.Developer API
Node.js with Undici:
For EU Data Residency, use
https://mtls-eu.api.openai.com/v1.The same SDK contract works with runtime-native transports:
Deno.createHttpClient(...)options passed through a customfetch;fetch(..., { tls: { cert, key } });Agent({ connect: { cert, key } })plus matchingundici.fetch.All runnable examples set
redirect: 'manual'so a certificate-bearing transport does not automatically follow a redirect to another host.Files
README.md.examples/mtls/node.mjs,deno.mjs, andbun.mjs.examples/mtls/README.mdwith certificate-chain setup, endpoint selection, encrypted-key guidance for Node, runtime-specific transport cleanup, and Undici's current runtime requirement.Validation
./scripts/build./node_modules/.bin/prettier --check README.md examples/mtls examples/package.json package.json pnpm-lock.yaml./node_modules/.bin/eslint ../node_modules/typescript/bin/tsc -p tsconfig.jsonnode --experimental-strip-types scripts/check-node-version-policy.ts./scripts/test --runInBand— 120 suites passed, 1 skipped; 1462 tests passed, 1 skipped401 certificate_required