The signing key
The sheets are signed with an Ed25519 key only your application knows; the gateways verify them with its public half. Make the key once:
php artisan frontline:signing-key 2026-11
The command prints FRONTLINE_API_SIGNING_KEY and FRONTLINE_API_SIGNING_KEY_ID for the
environment of your application, best kept in your secret manager, and 2026-11:<public key> for
FRONTLINE_SHEET_KEYS on every gateway. It keeps the key nowhere else. A secret key whose public
half is not the one its seed gives is refused before anything is signed.
Changing the key
To change the key, make the next one with php artisan frontline:signing-key 2027-05 --next and
follow the steps it prints. The next key takes a label of its own: the gateway reads an envelope
with two signatures under one label as malformed, so the command refuses the label of the current
key, and so does every publication while FRONTLINE_API_SIGNING_NEXT_KEY_ID names it.
- Give every gateway the new public half beside the current one in
FRONTLINE_SHEET_KEYS, separated by a comma. - Set
FRONTLINE_API_SIGNING_NEXT_KEYandFRONTLINE_API_SIGNING_NEXT_KEY_IDand runphp artisan frontline:publish --force: every sheet carries a signature by each key. - Move the new key into
FRONTLINE_API_SIGNING_KEYandFRONTLINE_API_SIGNING_KEY_ID, remove the twoNEXTsettings and runphp artisan frontline:publish --forceagain. - Remove the old key from
FRONTLINE_SHEET_KEYSon every gateway.
At every step a gateway that knows the keys of that step takes every sheet.
php artisan frontline:signing-key --show prints what FRONTLINE_SHEET_KEYS holds for the keys
your application signs with, and never a secret half.