Service status is published at [/estado](/estado). That response says whether the infrastructure answers.
It is not the certificate status list: that one lives on the CDN, is signed, and is queried by class,
platform or operator.

## What `/estado` returns

`/estado` returns JSON with two keys, `ok` and `entradas`. `ok` is a boolean; `entradas` names the four
portal entries. The body is short on purpose: a monitor reads it without parsing anything else.

```json
{
  "ok": true,
  "entradas": ["estado", "documentacion", "log-busqueda", "abuso"]
}
```

## The five services

| Service | Host | What it does |
| --- | --- | --- |
| `acme` | `acme.crdca.org` | Opens accounts, takes orders and challenges, and issues certificates with ARI renewal. |
| `cdn` | `cdn.crdca.org` | Publishes the log: tiles, signed checkpoint, inclusion proof, trust package and signed status. |
| `portal` | `crdca.org` | Serves this site and the four entries: status, documentation, log search and abuse. |
| `validador` | `autoridad.crdca.org` | Validates challenges: fetches the card, compares the origin, counts acceptances and measures DNS persistence. |
| `authz` | `authz.crdca.org` | Filters requests for Envoy: nine steps and one code per rejection. |

Each service has its code in the repository and its probe in the product harness. The host is not
decorative: the chain, the package and the status list are served from `cdn`, and an issuance is only
valid if its leaf is in the log.

## Where to watch it live

- [/estado](/estado): the portal JSON, limited to 60 requests per minute and per origin.
- [cdn.crdca.org/estado](https://cdn.crdca.org/estado): the signed fragment of the status list.
- `/salud` on `acme`, `cdn` and `validador`; `/healthz` on `authz`: a short answer if the process is alive.
- `/metrics` on `acme`, `cdn`, `portal` and `authz`: metrics in Prometheus format.
- The validator does not publish `/metrics`; its health is read from `/salud` and from `/v1/autotest/card01` and `/v1/autotest/origen`.

Service metrics do not pass through the rate limit: they are for the operator, not for the public. The
limit counts incoming requests, and the 429 counter is published as one more metric.

## How to read a 429

Each entry has its own quota, counted per origin:

| Entry | Quota | Answer when exhausted |
| --- | --- | --- |
| `/estado` | 60 rpm | 429 with `Retry-After` |
| `/documentacion` | 30 rpm | 429 with `Retry-After` |
| `/log` | 10 rpm | 429 with `Retry-After` |
| `/abuso` | 1 rpm | 429 with `Retry-After` |
| Site | 240 rpm | 429 in HTML with `Retry-After` |

A 429 is not an outage: it is the limit. The answer carries `Retry-After` in seconds and no data body. No
courtesy copy is served and no session is opened to keep counting. Wait those seconds and repeat the
request.

The origin is the connection that arrives. It lives only while the counting window lasts and is not
stored, not logged and not echoed in the response. Whoever shares the connection shares the quota.

## A site with four entries

This site has a home page, guides, reference and service pages. All of them are routes. The portal
contract counts something else: four entries and not one more.

- `GET /estado`: service status.
- `GET /documentacion`: the guide index.
- `GET /log`: the log search.
- `POST /abuso`: the abuse report.

Impersonation alerts are not an entry. They are a monitoring control: they have no public route, accept
no requests and are not announced here as a service.

## How it is checked from the outside

`scripts/e2e_cloud.py` walks the public hostnames through Cloudflare and runs eleven checks: health of the
five, ACME directory and single-use nonce, account and order, a real `card-01` challenge and its rejection
with a foreign token, issuance with SAN URI, chain against the package, inclusion in the log, signed
status, the four portal entries, and the middleware that lets the good card through and blocks the
tampered one with `R07`.

```bash
python3 scripts/e2e_cloud.py --token "$PORTAL_TOKEN"
```

The run prints `E2E: 11/11 · fallos 0` when everything passes. If something fails, it names the check and
the error.

::: limite
`/estado` says the portal answers; it is not a synthetic check of the other four services'
dependencies. That is what the e2e run is for: it calls each of them, one by one.
:::
