Skip to content

Add bounded Sec-Required-Document-Policy request metadata - #951

Merged
fewensa merged 1 commit into
mainfrom
codeon/fewensa/FWN-371/a2-9fe9403aa62d42bc80a1f217d1628165
Sep 11, 2026
Merged

Add bounded Sec-Required-Document-Policy request metadata#951
fewensa merged 1 commit into
mainfrom
codeon/fewensa/FWN-371/a2-9fe9403aa62d42bc80a1f217d1628165

Conversation

@fewensa

@fewensa fewensa commented Sep 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add SecRequiredDocumentPolicy request metadata by wrapping the shared Document-Policy Structured Fields parser with distinct types and the same bounds.
  • Wire HttpClient::sec_required_document_policy validation before network I/O, plus Request/HttpRequest accessors that preserve raw headers on parse errors.
  • Re-export through the rttp facades, document request-only non-goals, and cover HTTP/1.1 typed plus raw round-trips.

Test plan

  • cargo test -p rttp-protocol --test sec_required_document_policy
  • cargo test -p rttp_client --test test_raw_request_capture sec_required_document_policy
  • cargo test -p rttp-server request_sec_required_document_policy
  • cargo test --test http11_client_server_matrix sec_required_document_policy
  • cargo fmt --all -- --check

codeon:
  version: 1
  authority: FWN-371
  description: |-
    Add SecRequiredDocumentPolicy by wrapping the shared Document-Policy Structured Fields parser with distinct request types and bounds. Wire HttpClient::sec_required_document_policy validation before I/O, Request/HttpRequest accessors with raw fallback, rttp facade re-exports, docs, and HTTP/1.1 interop coverage. Do not enforce browser policy or compare against Document-Policy.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 11, 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-09-11T13:19:48.663775Z 3060d72 PR opened
ℹ️ 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.

@fewensa
fewensa merged commit cefa575 into main Sep 11, 2026
1 check passed
@fewensa
fewensa deleted the codeon/fewensa/FWN-371/a2-9fe9403aa62d42bc80a1f217d1628165 branch September 11, 2026 13:25
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.

1 participant