Skip to content

docs(auth): verify X.509 workload identity end to end - #2474

Merged
jbeckwith-oai merged 6 commits into
codex/x509-04-token-lifecyclefrom
codex/x509-05-e2e-docs-hardening
Aug 26, 2026
Merged

jbeckwith-oai merged 6 commits into
codex/x509-04-token-lifecyclefrom
codex/x509-05-e2e-docs-hardening

Conversation

@jbeckwith-oai

Copy link
Copy Markdown
Contributor

Summary

Part 5 of 5; based on codex/x509-04-token-lifecycle.

  • Document the Node-only X.509 contract, refresh policy, bearer-token handling, approved global endpoint, caller-owned dispatcher, and manual live-validation workflow.
  • Add a runnable example supporting both protected PEM variables and documented local certificate-path/identity fixtures, encrypted keys, explicit direct/CONNECT proxy modes, optional project selection, and sanitized proxy failures.
  • Extend the genuine local mTLS + CONNECT integration to verify cache reuse, a real API 401, one token refresh/replay, renewed-token reuse, issuer/API certificate identity/SNI, and zero proxy credential leakage.
  • Add child-process regressions for malformed secret-bearing proxy URLs, mismatched proxy modes, and ignored ambient proxies; verified against a fresh checkout with no prebuilt dist/.

Verification

  • 246 focused X.509/client/transport/example regressions; exact minimum Node 22.22.0; real ephemeral certificate/CONNECT wire test.
  • pnpm lint, pnpm exec tsc --noEmit, pnpm build, packed npm artifact/export checks, Node version-policy validation, and the trusted custom-code budget check (2,791 / 3,000 lines).
  • Two independent security/code-review rounds; full-stack Codex Security diff scan completed across 12 production/package files with zero findings.
  • pnpm test:live:x509 is intentionally manual and correctly fails closed without owner-provisioned enrolled credentials; no production-live success is claimed.

@jbeckwith-oai
jbeckwith-oai requested a review from a team as a code owner August 25, 2026 19:27
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-08-26T03:07:01.500909Z ba8e3ec New commits
🔒 Security Review ✅ Completed 2026-08-26T03:07:06.690822Z ba8e3ec New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9065c1e51e

ℹ️ 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".

Comment thread examples/mtls/README.md Resolved

@HAYDEN-OAI HAYDEN-OAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The X.509 documentation and transport-boundary handling look sound overall, but the advertised clean-checkout live-validation command cannot resolve the SDK without an unmentioned build.

Comment thread package.json Resolved
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-05-e2e-docs-hardening branch from 9065c1e to e2322e9 Compare August 25, 2026 20:53
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-04-token-lifecycle branch from 9e9f746 to 02d6e60 Compare August 25, 2026 20:53

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e2322e9053

ℹ️ 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".

Comment thread examples/mtls/README.md Resolved
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-05-e2e-docs-hardening branch from e2322e9 to e8611aa Compare August 25, 2026 21:17
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-04-token-lifecycle branch from 02d6e60 to c1c9ded Compare August 25, 2026 21:17

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e8611aa483

ℹ️ 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".

@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-05-e2e-docs-hardening branch from e8611aa to 91052d1 Compare August 25, 2026 21:32
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-04-token-lifecycle branch from c1c9ded to 368ab64 Compare August 25, 2026 21:32
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Unknown error
ℹ️ 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".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 91052d146a

ℹ️ 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".

Comment thread examples/mtls/README.md Resolved
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-05-e2e-docs-hardening branch from 91052d1 to a798bef Compare August 25, 2026 21:41
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-04-token-lifecycle branch 2 times, most recently from c1aa772 to f1819b6 Compare August 25, 2026 21:56
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-05-e2e-docs-hardening branch from a798bef to 71d7964 Compare August 25, 2026 21:56
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-04-token-lifecycle branch from f1819b6 to 2cff517 Compare August 25, 2026 22:03
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-05-e2e-docs-hardening branch from 71d7964 to 1d57f5b Compare August 25, 2026 22:03
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-04-token-lifecycle branch from 2cff517 to c409002 Compare August 25, 2026 22:14
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-05-e2e-docs-hardening branch 2 times, most recently from 4c2c8f1 to e79cfd0 Compare August 25, 2026 22:27
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-04-token-lifecycle branch from c409002 to 583118e Compare August 25, 2026 22:27
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-04-token-lifecycle branch from 583118e to 71b69e9 Compare August 25, 2026 22:42

@HAYDEN-OAI HAYDEN-OAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the exact stacked-child documentation, runnable X.509 example, and integration boundary. Confirmed explicit ambient credential/tenant/endpoint isolation, target-only certificate TLS with explicit CONNECT modes and sanitized proxy failures, empty-passphrase handling, caller-owned dispatcher cleanup, bounded token refresh/replay behavior, Node 22-compatible Undici installation, and clean-checkout package builds. All prior review findings are resolved; no substantive issues found.

@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-05-e2e-docs-hardening branch from e79cfd0 to c64b18a Compare August 25, 2026 22:50
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-04-token-lifecycle branch from 71b69e9 to 841bf72 Compare August 26, 2026 00:27
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-05-e2e-docs-hardening branch from c64b18a to abdff73 Compare August 26, 2026 00:27
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-04-token-lifecycle branch from 841bf72 to bba2956 Compare August 26, 2026 00:49
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-05-e2e-docs-hardening branch from abdff73 to 603881d Compare August 26, 2026 00:49
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-04-token-lifecycle branch from bba2956 to 83d01f1 Compare August 26, 2026 01:19
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-05-e2e-docs-hardening branch from 603881d to 49be806 Compare August 26, 2026 01:19
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-04-token-lifecycle branch from 83d01f1 to 1e85615 Compare August 26, 2026 02:00
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-05-e2e-docs-hardening branch from 49be806 to 0a1cc7a Compare August 26, 2026 02:00
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-04-token-lifecycle branch from 1e85615 to 3320d98 Compare August 26, 2026 02:25
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-05-e2e-docs-hardening branch 2 times, most recently from 324069c to 7964ece Compare August 26, 2026 02:45
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-04-token-lifecycle branch from 3320d98 to 1f1d18e Compare August 26, 2026 02:45
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-05-e2e-docs-hardening branch from 7964ece to ba8e3ec Compare August 26, 2026 03:03
@jbeckwith-oai
jbeckwith-oai force-pushed the codex/x509-04-token-lifecycle branch from 1f1d18e to 1c40590 Compare August 26, 2026 03:03
@jbeckwith-oai
jbeckwith-oai merged commit c04436c into codex/x509-04-token-lifecycle Aug 26, 2026
38 checks passed
@jbeckwith-oai
jbeckwith-oai deleted the codex/x509-05-e2e-docs-hardening branch August 26, 2026 03:11
jbeckwith-oai added a commit that referenced this pull request Aug 26, 2026
## Summary

Part 5 of 5; based on `codex/x509-04-token-lifecycle`.

- Document the Node-only X.509 contract, refresh policy, bearer-token
handling, approved global endpoint, caller-owned dispatcher, and manual
live-validation workflow.
- Add a runnable example supporting both protected PEM variables and
documented local certificate-path/identity fixtures, encrypted keys,
explicit direct/CONNECT proxy modes, optional project selection, and
sanitized proxy failures.
- Extend the genuine local mTLS + CONNECT integration to verify cache
reuse, a real API 401, one token refresh/replay, renewed-token reuse,
issuer/API certificate identity/SNI, and zero proxy credential leakage.
- Add child-process regressions for malformed secret-bearing proxy URLs,
mismatched proxy modes, and ignored ambient proxies; verified against a
fresh checkout with no prebuilt `dist/`.

## Verification

- 246 focused X.509/client/transport/example regressions; exact minimum
Node 22.22.0; real ephemeral certificate/CONNECT wire test.
- `pnpm lint`, `pnpm exec tsc --noEmit`, `pnpm build`, packed npm
artifact/export checks, Node version-policy validation, and the trusted
custom-code budget check (2,791 / 3,000 lines).
- Two independent security/code-review rounds; full-stack Codex Security
diff scan completed across 12 production/package files with zero
findings.
- `pnpm test:live:x509` is intentionally manual and correctly fails
closed without owner-provisioned enrolled credentials; no
production-live success is claimed.
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