Licensing & Trials
PRISM is commercial software. The binary enforces a signed licence file.
Getting a licence or a trial
Email sales@trident-cache.com. Trials are full-featured and time-limited
— the expiry date is signed into the file itself; standard trials are issued
for 14 days. You receive a license.lic file.
Trial files must contain valid RFC 3339 issued_at and expires_at timestamps,
with expiry strictly after issue. A missing or malformed trial expiry is rejected.
The 14-day duration is an issuance policy, not a hard-coded maximum.
Installing the licence
Point license.path at the file and restart PRISM. The shipped
/etc/prism/config.toml carries the line commented out — uncomment it:
[license]
path = "/etc/prism/license.lic"
For containers, mount the file at that path and use a config with
license.path set:
docker run -v ./license.lic:/etc/prism/license.lic:ro ...
The startup log reports the licence state; a trial logs its remaining days at boot.
What happens without a valid licence
PRISM starts and proxies traffic, but does not render — crawlers receive
your origin's raw JavaScript shell. The x-prism-license response header
reports the state so the condition is visible from the outside.
Renewal
Replace the file at the configured path. PRISM picks it up at the next file verification interval (60 minutes by default), or apply it immediately:
curl -X POST -H "Authorization: Bearer $TOKEN" localhost:4001/license/reload
A failed reload immediately disables rendering and reports an invalid licence. It does not retain the previous entitlement. Restore a valid file and reload to resume rendering.
Runtime validation and expiry
Every licence check compares the verified expiry with the current time. A trial or time-limited commercial licence therefore stops allowing new renders at expiry, even if PRISM has been running continuously and the file has not changed. Perpetual licences remain valid without an expiry.
The file is also reverified periodically to detect deletion, corruption or renewal.
license.recheck_minutes defaults to 60 and is clamped to 1–60 minutes; setting it
to zero no longer disables checks. A bad file disables rendering when detected;
use the reload endpoint to apply changes immediately.
There is no rendering grace period for expired or invalid licences. The legacy
license.grace_hours option is accepted for configuration compatibility but ignored.
Monitor prism_license_valid on /metrics and license in /status.
Because nothing softens the expiry instant, watch the date rather than the
state. prism_license_expiry_timestamp_seconds is the expiry as Unix time
(absent for a perpetual licence), license_expires_at in /status is the
same value, and the shipped PrismLicenseExpiring alert fires 30 and 3 days
ahead. PRISM also logs a warning once a day from 30 days out.
A periodic check that finds the file missing or invalid repeats the check twice, five seconds apart, before acting on it, so replacing the file in place cannot revoke a valid licence by landing mid-write. This is a confirmation, not a grace period: a file that stays invalid disables rendering about ten seconds after it is first seen. An instance that is not licensed re-checks every minute, so a corrected file takes effect within a minute.