Skip to content

Conversation

@lukevalenta
Copy link
Contributor

Various cleanup and documentation improvements, mostly related to chain validation and addressing review comments from #113. Please see individual commit messages for details.

Currently the inferred root is not yet appended, but we'll do that next.
Rename intermediates to chain_certs as well, to help highlight where the chain is used.
…trap entry

Ensure found roots are properly accounted for, mirroring a change to the
static CT worker.

Also rename validation_hook to validator_hook for consistency, and
improve function documentation.
Also rename is_pre_issuer to is_precert_signing_cert for clarity.
@lukevalenta lukevalenta self-assigned this Sep 26, 2025

hook(leaf, chain_certs_owned, chain_fingerprints, found_root_idx)
.map_err(HookOrValidationError::Hook)
hook(leaf, chain_certs, chain_fingerprints, found_root_idx).map_err(HookOrValidationError::Hook)
Copy link
Contributor

Choose a reason for hiding this comment

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

Good job managing to rewrite the hooks to work with Vec<&Certificate>. I think getting the full chain including root is much cleaner

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah! After moving the well-formedness check to validate_chain_lax I didn't get many complaints about ownership.

@lukevalenta lukevalenta merged commit e0ba976 into main Sep 26, 2025
1 check passed
@lukevalenta lukevalenta deleted the lvalenta/chain-validation-cleanup branch September 26, 2025 17:23
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