Skip to content

Implement suberrors for policy blocked names. - #4234

Merged
jsha merged 3 commits into
masterfrom
cpu-use-suberrs
May 31, 2019
Merged

jsha merged 3 commits into
masterfrom
cpu-use-suberrs

Conversation

@cpu

@cpu cpu commented May 24, 2019 •

Copy link
Copy Markdown
Contributor

When validating a CSR's identifiers, or a new order's identifiers there may be more than one identifier that is blocked by policy. We should return an error that has suberrors identifying each bad identifier individually in this case.

Updates #4193
Resolves #3727

Daniel added 2 commits May 24, 2019 18:03
When validating a CSR's identifiers, or a new order's identifiers there
may be more than one identifier that is blocked by policy. We should
return an error that has suberrors identifying each bad identifier
individually in this case.
@cpu
cpu requested a review from a team as a code owner May 24, 2019 23:58
@cpu cpu self-assigned this May 24, 2019
@cpu

cpu commented May 30, 2019 •

Copy link
Copy Markdown
Contributor Author

Not necessarily related to this PR, but this comment is somewhat confusing. It implies it only validates wildcard idents where in fact it validates both regular and wildcard idents. The list of requirements below end up only applying to wildcard idents, but passing in a normal ident won't actually trigger an error.

@rolandshoemaker That's fair feedback. I addressed it in this PR because it felt clunky to make a separate one just for a comment fix. Does f3539de read better to you?

@rolandshoemaker

Copy link
Copy Markdown
Contributor

@rolandshoemaker That's fair feedback. I addressed it in this PR because it felt clunky to make a separate one just for a comment fix. Does f3539de read better to you?

Perfect, thanks!

@jsha jsha left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice catch on including at least one domain name in the top-level error! Just a small comment nit.

Comment thread ra/ra.go Resolved
@jsha

jsha commented May 31, 2019

Copy link
Copy Markdown
Contributor

Actually that's such a small nit I'm just going to approve and merge. Will make reviewing subsequent PR #4240 easier.

@jsha
jsha merged commit 7dd176e into master May 31, 2019
@jsha
jsha deleted the cpu-use-suberrs branch May 31, 2019 22:00
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.

Detail WillingToIssue errors in VerifyCSR

3 participants