Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SA or RA should log failures from UpdatePendingAuthorization. #2303

Closed
cpu opened this issue Nov 2, 2016 · 0 comments · Fixed by #2321
Closed

SA or RA should log failures from UpdatePendingAuthorization. #2303

cpu opened this issue Nov 2, 2016 · 0 comments · Fixed by #2321

Comments

@cpu
Copy link
Contributor

cpu commented Nov 2, 2016

Presently when the RA performs an RPC call to the SA's UpdatePendingAuthorization function it discards any returned errors and instead produces a more generic malformed error for the client.

While we say "This can pretty much only happen when the client corrupts the Challenge data." it can also occur during database outages and it would be helpful if the RA or the SA logged which part of the underlying operation failed (finding the authz, updating challenges, etc). Presently it is difficult to work backwards from a "Challenge data was corrupted" error to a root cause.

We should also update the comment & error message to better reflect that this can be caused by server-side conditions and not strictly "malformed" input.

@jsha jsha added this to the Sprint 2016-11-08 milestone Nov 8, 2016
@jsha jsha assigned cpu Nov 8, 2016
cpu pushed a commit that referenced this issue Nov 10, 2016
This commit resolves #2303 by updating the comment, and returned error
type produced when the RA calls `SA.UpdatePendingAuthorization` and it
fails.

Previously this produced a `MalformedRequestError` that was
described as only happening when the client corrupted the challenge
data.

Now this is returned as more descriptive `ServerInternalError` and the
underlying error from the SA is logged as a warning for further
debugging.
jsha pushed a commit that referenced this issue Nov 11, 2016
This commit resolves #2303 by updating the comment, and returned error type produced when the RA calls `SA.UpdatePendingAuthorization` and it fails.

Previously this produced a `MalformedRequestError` that was described as only happening when the client corrupted the challenge data.

Now this is returned as more descriptive `ServerInternalError` and the underlying error from the SA is logged as a warning for further debugging.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants