Skip to content

Rate limits

Rate limits protect the CA from too many certificate requests at once. Such a flood can come from a broken script that loops, or from an attack.

You can set a limit for a whole authority, and also a limit for each of its verifiers. You set them in the web portal. The limits are off until you turn them on.

Set a limit for an authority

  1. In Authority Manager, open the authority.
  2. In Settings, turn on Authority rate limit.
  3. Fill in Rate and Burst.
  4. Choose Save settings.

Set a limit for a verifier

  1. In Authority Manager, open the authority.
  2. In Verifiers, choose Edit on the verifier. If the verifier is not set up yet, choose Set up.
  3. Turn on Verifier rate limit, and fill in Rate and Burst.
  4. Save the verifier.

The two settings

Setting What it means
Rate How many requests are allowed over time. Write a number, a /, and a unit: sec, min or hour. For example, 500/min allows 500 requests per minute.
Burst How many requests may arrive at the same moment, on top of the steady rate.

For example, a rate of 500/min with a burst of 200 lets a client send up to 200 requests at once, and then 500 per minute.

A request must stay within both limits: the authority's limit and its verifier's limit.

When a request goes over a limit, BastionXP refuses it with 429 Too Many Requests. The answer has a Retry-After header, which tells the client when to try again. ACME clients wait that long and then retry by themselves.

If you run several BastionXP servers with a shared Redis server, the limits count the requests to all the servers together. Without Redis, each server counts only its own requests.

Limits on the portal's sign-in

The sign-in to the portal has its own limits, which you do not set. They stop people from guessing passwords. See Sign-in limits.