boulder/wfe
Aaron Gable 1837aa9ef2
Return alreadyRevoked for duplicate revocations (#5108)
If two revocation requests for the same cert arrive in rapid
succession, it is possible for one of them to complete in the
time between the other one's initial check (that the cert isn't
revoked already) and final database update. This causes
the db update to fail, and the request to end in a 500.

Other methods, such as new account registration, have a
three-step "check for duplicates, update db, if that failed
check for duplicates again" flow. This change updates the
cert revocation handlers to have a similar flow.

It returns the RFC 8555 `alreadyRevoked` from wfe2, to
match the error code returned by the initial duplicate
check. It returns the non-standardized 409 Conflict from
wfe, to match the code returned by that frontend's initial
duplicate check.

Fixes #5107
2020-10-06 15:05:34 -07:00
..
test Use X.509 AIA Issuer URL in rel="up" link header (#2545) 2017-02-07 11:19:22 -08:00
jose.go Switch away from old style statsd metrics wrappers (#4606) 2019-12-18 11:08:25 -05:00
jose_test.go wfe/wfe2: make JWS signature alg error msgs match reality (#4519) 2019-10-31 09:55:11 -04:00
wfe.go Return alreadyRevoked for duplicate revocations (#5108) 2020-10-06 15:05:34 -07:00
wfe_test.go wfe: reject empty identifiers in new-authz and new-order (#5089) 2020-09-15 09:42:33 -07:00