Skip to content

Comments

Return descriptive error when SCT policy can't be met.#3586

Merged
jsha merged 1 commit intomasterfrom
cpu-better-sct-err
Mar 22, 2018
Merged

Return descriptive error when SCT policy can't be met.#3586
jsha merged 1 commit intomasterfrom
cpu-better-sct-err

Conversation

@cpu
Copy link
Contributor

@cpu cpu commented Mar 22, 2018

This commit updates CTPolicy & the RA to return a distinct error when
the RA is unable to fetch the required SCTs for a certificate when
processing an issuance. This error type is plumbed up to the WFE/WFE2
where the web/probs.go code converts it into a server internal error
with a suitable user facing error.

Resolves #3546

This commit updates CTPolicy & the RA to return a distinct error when
the RA is unable to fetch the required SCTs for a certificate when
processing an issuance. This error type is plumbed up to the WFE/WFE2
where the `web/probs.go` code converts it into a server internal error
with a suitable user facing error.
@cpu cpu self-assigned this Mar 22, 2018
@cpu cpu requested a review from a team as a code owner March 22, 2018 15:53
Copy link
Contributor

@jsha jsha left a comment

Choose a reason for hiding this comment

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

Rather than define a new berrors type, wouldn't it be easier to return a berrors.ServerInternal? That should get the detail passed through to the frontend.

@cpu
Copy link
Contributor Author

cpu commented Mar 22, 2018

Rather than define a new berrors type, wouldn't it be easier to return a berrors.ServerInternal? That should get the detail passed through to the frontend.

@jsha I thought that we stripped the msg from berrors.ServerInternal in web/probs.go.

@jsha
Copy link
Contributor

jsha commented Mar 22, 2018

Aha, you are correct! Thanks.

@jsha jsha merged commit 866627e into master Mar 22, 2018
@jsha jsha deleted the cpu-better-sct-err branch March 22, 2018 20:10
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