Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongable committed Nov 21, 2024
1 parent 612db72 commit dadce5e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ra/ra.go
Original file line number Diff line number Diff line change
Expand Up @@ -2436,13 +2436,14 @@ func (ra *RegistrationAuthorityImpl) DeactivateAuthorization(ctx context.Context
return nil, err
}
if req.Status == string(core.StatusPending) {
// Deactivating a pending authz has no security benefits and prevents us
// from reusing it and any orders associated with it. Some clients appear to
// accidentally abuse this behavior, so treat deactivating a pending authz
// the same as failing validation.
// Some clients deactivate pending authorizations without attempting them.
// We're not sure exactly when this happens but it's most likely due to
// internal errors in the client. From our perspective this uses storage
// resources similar to how failed authorizations do, so we increment the
// failed authorizations limit.
err = ra.countFailedValidations(ctx, req.RegistrationID, identifier.NewDNS(req.DnsName))
if err != nil {
ra.log.Warningf("incrementing failed validations: %s", err)
return nil, fmt.Errorf("failed to update rate limits: %w", err)
}
}
return &emptypb.Empty{}, nil
Expand Down

0 comments on commit dadce5e

Please sign in to comment.