# Runbooks

## Live health

```bash
curl https://sandbox-heritagepay-api.paypm.net/api/v1/health
curl https://staging-heritagepay-api.paypm.net/api/v1/health
```

## Readiness

```bash
curl https://sandbox-heritagepay-api.paypm.net/api/v1/health/ready
curl https://staging-heritagepay-api.paypm.net/api/v1/health/ready
```

## Portal root redirects

The public user portals should return a clean redirect:

```text
307 Location: /login
```

There should be no `__next_error__` body.

## Logs

Use Grafana/Loki for central logs. Keep log retention bounded in sandbox and staging so noisy integration failures do not fill the VPS disks.

## Deployment path

Use:

```text
source -> CI image -> Harbor -> GitOps -> ArgoCD -> Kubernetes
```

Avoid ad hoc live mutation unless you are actively recovering an outage and plan to reconcile the change back into GitOps.
