Skip to content

Expose all BoringSSL compliance policies - #590

Open
nox wants to merge 1 commit into
cloudflare:masterfrom
nox:nox/compliance-policies
Open

nox wants to merge 1 commit into
cloudflare:masterfrom
nox:nox/compliance-policies

Conversation

@nox

@nox nox commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

This exposes the FIPS 202609 and CNSA compliance policies available in the pinned BoringSSL revision.

The deprecated legacy compatibility feature remains accepted as a no-op instead of hiding enum values.

This supersedes #556 by exposing all currently available policies rather than only FIPS 202609.

@nox nox mentioned this pull request Dec 4, 2026

@clanky-the-clanker clanky-the-clanker 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.

Superseded by the review of e7aa3f24.

This review, of e6aba897

💬 Approved with comments — The change is small and correct. The only comment is an optional suggestion to make the new test check more than that each policy is accepted.

Findings: 1 suggestion (1 is an inline comment on the diff)

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.

🔧 Fix with your agent

Paste the following into your coding agent to investigate and fix these issues.

Fix the following code review issues found in pull request #590.

Before making changes, review each issue and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g., the fix would require disproportionate changes
  for minimal ROI, or the finding is factually incorrect), explain why
- If you need to clarify something before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order

## SUGGESTION (1)

### [Code Quality] `boring/src/ssl/test/mod.rs:1725-1730`: the new test only checks that setting each policy succeeds and asserts nothing about the resulting configuration. The loop also shadows `ctx`.
- **File:** boring/src/ssl/test/mod.rs:1726

📋 Code Quality: 💬 1 suggestion

The new policies are exposed correctly. The new test could assert more.

Recommendation: 💬 Optional Nits

  • [SUGGESTION] boring/src/ssl/test/mod.rs:1725-1730: the new test only checks that setting each policy succeeds and asserts nothing about the resulting configuration. The loop also shadows ctx. (boring/src/ssl/test/mod.rs:1726)
View full review
  • boring/src/ssl/test/mod.rs:1715-1731: test_all_compliance_policies only checks that setting each policy succeeds. It asserts nothing about the configuration that results. In the loop, ctx is also shadowed by a second binding.

✅ All other checks passed

🔒 Security: ✅ LGTM

No security issues found.


📝 Documentation: ✅ LGTM

No documentation issues found.


Reviewed commit: e6aba897

Comment thread boring/src/ssl/test/mod.rs Resolved
@nox
nox force-pushed the nox/compliance-policies branch from e6aba89 to e7aa3f2 Compare December 4, 2026 21:51

@clanky-the-clanker clanky-the-clanker 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.

✅ Approved — Small, correct change. The earlier test suggestion is fixed and nothing else needs changing.

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

🔒 Security: ✅ LGTM

No security issues found.


📋 Code Quality: ✅ LGTM

The new constants map one-to-one to the ssl_compliance_policy_* variants. The legacy-compat-deprecated feature is still declared, so builds that enable it keep working, and it now does nothing. The test asserts the recorded policy through SSL_CTX_get_compliance_policy and SSL_get_compliance_policy, and it no longer shadows ctx.


📝 Documentation: ✅ LGTM

No documentation issues found.


Reviewed commit: e7aa3f24

This branch has not been deployed

No deployments
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