Rotate A Landing Page Protection Secret
Each protected lander has its own signing secret. Nitoriq signs visit tokens with it, and the snippet on your server uses it to check them. Rotating replaces that secret.
Use this guide for a routine rotation, or straight away if the secret may have leaked. The snippet contains the secret, so treat a leaked snippet file as a leaked secret.
Before you start
- You need permission to manage workspace settings to rotate a secret, and permission to edit assets to copy the snippet.
- You need access to the lander’s server to deploy the updated snippet.
- Choose how to rotate:
- Rotate without downtime for a routine rotation. The page keeps working throughout.
- Rotate immediately when the secret has leaked. The page refuses every visitor until you deploy the updated snippet.
Rotate without downtime
Start the rotation
Open Settings > Protection > Landing Page Protection and use Rotate secret
on the lander. Choose Rotate without downtime and click Start rotation.
The lander’s status changes to Rotating. Nitoriq keeps signing with the
current key, so the page keeps working.
Deploy the updated snippet
In the rotation modal, click Copy snippet and replace the snippet on your
server. The updated snippet accepts both the current key and the new one.
Finish the rotation
Click Finish rotation. Nitoriq checks the live page with the new key and only
switches over if the page accepts it.
If the check can’t confirm the new snippet, the modal explains why. Firewalls
and bot protection can block the check. Click Switch anyway only when you’re
sure the updated snippet is live, because a page without it refuses every
visitor once Nitoriq switches.
Deploy the snippet once more
Copy the snippet again and deploy it. Until you do, the page keeps accepting the old key. The new copy accepts the old key only until tokens already issued with it expire, then refuses it.
To stop a rotation before you finish it, reopen it with Rotate secret and
click Cancel rotation. Nitoriq keeps using the current key, and a snippet you
already deployed keeps working.
Rotate Immediately After A Leak
Use Rotate secret on the lander, choose Rotate immediately, and click
Rotate now. Nitoriq signs with a new key at once and drops every older key.
The updated snippet accepts only the new key. Once it’s live, tokens signed with the leaked key stop working, including for visitors who reload the page with an old token.
If a rotation without downtime is in progress, click Cancel rotation first,
then rotate immediately.
Success looks like
- the lander shows as
ProtectedonLanding Page Protection, notRotating Check the live pagereports that the snippet is working- the snippet on your server is the copy you took after the rotation finished
Was this page helpful?