Skip to content

test(tls): cover exact peer certificate limits - #336

Open
seonghobae wants to merge 2 commits into
mainfrom
test/tls-certificate-exact-limits
Open

seonghobae wants to merge 2 commits into
mainfrom
test/tls-certificate-exact-limits

Conversation

@seonghobae

Copy link
Copy Markdown
Contributor

Scope

  • Accept peer certificate chains exactly at the configured count and total-byte ceilings.
  • Keep the existing over-limit rejection assertions and record the regression in the changelog.

Verification

  • cargo fmt --all -- --check
  • cargo test --locked --workspace --all-targets --offline
  • cargo clippy --locked --workspace --all-targets --offline -- -D warnings
  • RUSTDOCFLAGS="-D warnings" cargo doc --locked --workspace --no-deps --offline
  • python3 -m unittest discover -s tests -p "test_*.py" (152 passed)

No production behavior or TLS authority changes. Protected-main status remains unchanged until required exact-head checks and review pass.

🤖 Generated with Claude Code

Co-Authored-By: Claude Code <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 43 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: d12abd50-b9e1-456c-aa5c-750dee4a1761

📥 Commits

Reviewing files that changed from the base of the PR and between 87c4daa and 8b012be.

📒 Files selected for processing (5)
  • CHANGELOG.md
  • crates/originweave-tls/src/handshake.rs
  • crates/originweave-tls/tests/policy_contract.rs
  • crates/originweave-tls/tests/tls_policy_literal_bounds.rs
  • docs/TEST_STRATEGY.md
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copy link
Copy Markdown
Contributor Author

Admission repair for exact head ae95cbf2e37de5c9d9f0ebbe06e4dd2666212fc0:

This Ready PR still has a concrete merge blocker: terminal workflow: CodeQL PR 36662360843=failure. Converted to Draft/Proposed so review admission does not imply merge readiness while preserving the full branch delta. Acceptance: repair the cited exact-head failure/topology or complete the declared predecessor, re-run required checks, resolve substantive review state, then return the unchanged verified head to Ready. No commits are closed or discarded.

@seonghobae
seonghobae marked this pull request as draft September 30, 2026 07:04
@seonghobae
seonghobae marked this pull request as ready for review October 2, 2026 15:04

@devin-ai-integration devin-ai-integration 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.

Devin Review found 1 potential issue.

Devin Review

Comment on lines +263 to +269
let root = root_der();
let boundary_bundle = TrustRootBundle::new(
TrustBundleIdentifier::parse("boundary_roots:v1").expect("identifier"),
std::iter::repeat_n(root, MAX_TRUST_ROOT_COUNT).collect(),
)
.expect("maximum trust root count is accepted before canonical deduplication");
assert_eq!(boundary_bundle.root_count(), 1);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔍 Trust-root limit lacks distinct-root coverage

The 256-root input contains copies of one certificate. TrustRootBundle::new deduplicates them, so root_count() reaches only one. This test does not exercise a bundle retaining 256 roots.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant