Environment fields
- `CUSTOMER_ID` – identifier in logs.
- `LICENSE_VALID_UNTIL` – ISO 8601 UTC timestamp.
- `LICENSE_MODE` – `enforce`, `grace`, or `off`.
- `LICENSE_GRACE_DAYS` – integer number of grace days.
- `LICENSE_GRACE_BEHAVIOR` – `block` or `read_only`.
Behavior
Requests are allowed until `LICENSE_VALID_UNTIL`. Afterward, `enforce` blocks all traffic; `grace` follows the configured behavior for the defined period.
Renewal
- Update ENV with new timestamp and optional mode.
- Deploy.
- Verify logs show `license_status=valid`.
Revocation
Set `LICENSE_MODE=enforce` and `LICENSE_VALID_UNTIL` to a past date, deploy, confirm `license_expired` responses.