Skip to content

fix(sdk): reject unsupported identity builds and correct security contracts - #306

Merged
voidvec merged 1 commit into
masterfrom
improvement/iam-hardening-20261106
Nov 9, 2026
Merged

voidvec merged 1 commit into
masterfrom
improvement/iam-hardening-20261106

Conversation

@voidvec

@voidvec voidvec commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

The product and Postgres adapter still require identity, so reject unsupported WITH_IDENTITY=OFF / with_identity=False explicitly in CMake and Conan. Correct the bilingual security and SDK contracts for legacy-password policy, implemented WebAuthn/libcbor dependencies, signing-key rotation and STATIC-library host registration. Preserve the separate social-login state limitation pending #308.

Add the standalone Drogon connection fixture and bounded loopback-only client that #319 builds on. Keep every failed attempt and compare fresh connections with keep-alive; this PR does not claim #303 reproduced or fixed.

Rebased onto master 498daa3. Conflict resolution preserves upstream macOS 15, ccache/statistics, coverage hard gates, documentation/link fixes and the consent concurrency fix. The fixture build also uses the ccache launcher. Shared documentation combines the upstream provenance/admin-key details with this PR's accurate feature/rotation boundaries; LLM documentation is regenerated with the current generator (50 documents).

Post-rebase validation:

  • Real CMake identity-disabled configure fails with the intended diagnostic before dependency resolution.
  • Offline Conan validate checks: eight option combinations; requirements/build_requirements/generate AST unchanged.
  • Diagnostic client black-box tests: 6/6 passed.
  • Workflow YAML parsed and added shell steps pass bash -n.
  • Bilingual mirror 50/50 and tracked Markdown links passed; generated LLM files reproduce exactly.
  • Scope audit: seven PR paths untouched by master remain byte-identical; no upstream-only changes lost or net scope expansion.
  • New-head CI is running; local checks above are not a completed remote build claim.

#300 remains excluded. This draft does not merge, deploy or publish a release. #319 remains stacked on this branch for the S02 diagnostic delta.

…urity contracts

Correct bilingual password-migration, WebAuthn, signing-key and static-linking guidance.
Add an isolated connection-churn fixture and client with transport tests for #303.
Compile the fixture and check the unsupported option in CI. #300 remains out of scope.
@voidvec
voidvec force-pushed the improvement/iam-hardening-20261106 branch from 4b5a4f3 to 656d690 Compare November 8, 2026 10:27
@voidvec
voidvec marked this pull request as ready for review November 9, 2026 02:43
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T02:44:54.824024Z 656d690 Draft marked ready
ℹ️ 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.

@voidvec
voidvec merged commit 3ea13be into master Nov 9, 2026
11 checks passed

@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: 656d69041d

ℹ️ 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 on lines +69 to +71
connection.sock.settimeout(remaining())
record["stage"] = "response_headers"
response = connection.getresponse()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Enforce the request deadline while reading response headers

If the loopback server trickles response-header bytes more frequently than the socket timeout, getresponse() can run far beyond both --timeout and --duration: the socket timeout bounds individual blocking reads, not the entire header operation. A local reproduction sending one byte every 20 ms took about 1.14 seconds with --timeout .05 --duration .1, and recorded the eventual timeout as response_body rather than response_headers. Because run() waits for every worker before writing the report, this undermines the diagnostic's bounded-run guarantee and misattributes the stalled phase. Enforce the absolute deadline throughout header parsing, and add a slow-trickle header test.

Useful? React with 👍 / 👎.

@voidvec
voidvec deleted the improvement/iam-hardening-20261106 branch November 9, 2026 04:43
voidvec added a commit that referenced this pull request Nov 9, 2026
…orced state binding

#306 merged a documented limitation that social login lacked browser-bound
state; this PR implements the protection, so both language mirrors now
describe the enforced mechanism (204 cookie init, one-time 600 s state,
Origin + cookie + body credentials, atomic consumption) and llms-full.txt
is regenerated.
voidvec added a commit that referenced this pull request Nov 9, 2026
…orced state binding

#306 merged a documented limitation that social login lacked browser-bound
state; this PR implements the protection, so both language mirrors now
describe the enforced mechanism (204 cookie init, one-time 600 s state,
Origin + cookie + body credentials, atomic consumption) and llms-full.txt
is regenerated.
voidvec added a commit that referenced this pull request Nov 9, 2026
…orced state binding

#306 merged a documented limitation that social login lacked browser-bound
state; this PR implements the protection, so both language mirrors now
describe the enforced mechanism (204 cookie init, one-time 600 s state,
Origin + cookie + body credentials, atomic consumption) and llms-full.txt
is regenerated.
voidvec added a commit that referenced this pull request Nov 9, 2026
…orced state binding

#306 merged a documented limitation that social login lacked browser-bound
state; this PR implements the protection, so both language mirrors now
describe the enforced mechanism (204 cookie init, one-time 600 s state,
Origin + cookie + body credentials, atomic consumption) and llms-full.txt
is regenerated.
voidvec added a commit that referenced this pull request Nov 9, 2026
2026-11-09 retest: fine-grained PAT can merge PRs (#306/#319/#308 via
pr merge --rebase); reading branch-protection rules is the new 403.
Record the real merge blockers (draft flag, up-to-date requirement,
author-cannot-self-approve, auto-merge disabled), prefer close->reopen
over empty commits for CI retriggering (pull_request branch filter +
non-default edited event gotcha), and mark Automatically-delete-head-
branches as no longer effective (manual delete after merge).
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