Skip to content

atls: invert the validator OID lookup logic #2484

Closed
burgerdev wants to merge 2 commits into
burgerdev/validators-pkgfrom
burgerdev/validator-support
Closed

atls: invert the validator OID lookup logic #2484
burgerdev wants to merge 2 commits into
burgerdev/validators-pkgfrom
burgerdev/validator-support

Conversation

@burgerdev

Copy link
Copy Markdown
Member

This is step 2 teasered in #2483. I'd like to change the APIs in theatls package to only work with a single validator and leave the logic of walking over the individual validators in the validators package. For this to work, I need the interface to allow for the implementation to decide whether a given report can be processed, not the atls package. This PR changes the interface accordingly.

This makes it easier to implement meta-validators, such as a validator
composed of sub-validators or a list of acceptable alternative
validators.
@burgerdev burgerdev added the no changelog PRs not listed in the release notes label Jun 26, 2026
@burgerdev

Copy link
Copy Markdown
Member Author

Ok, I learned now that the implementation with two functions does not work how I thought it would. I think I need a

func Validate(context.Context, asn1.ObjectIdentifier, []byte, []byte) error

and dedicated errors for OID mismatch.

@burgerdev burgerdev closed this Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog PRs not listed in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant