Staylah

Reference

Configuration reference

Environment variables and key generation.

config/connectivity.php. Nothing partner-specific belongs here — credentials live in connectivity_credentials so that onboarding a partner is an operations action, not a deploy.

Env varDefaultMeaning
CONNECTIVITY_ENVsandboxWhich credential environment this deployment accepts. sandbox on staging, production on live
CONNECTIVITY_SIGNATURE_TOLERANCE300Accepted clock skew, seconds. Every extra second is replay window
CONNECTIVITY_RATE_LIMIT300Authenticated requests/minute, per key
CONNECTIVITY_RATE_LIMIT_ANON30Unauthenticated requests/minute, per IP
CONNECTIVITY_LOG_ENABLEDtrueWrite the access log
CONNECTIVITY_LOG_SUCCESStrueLog successes too. Set false to keep only failures
CONNECTIVITY_LOG_RETENTION_DAYS90Access log retention

Key generation: 12-byte key id (24 hex chars after the prefix), 32-byte secret (64 hex chars), 32-byte signing secret. Prefixes slk_test_ / slk_live_ make a leaked key recognisable in a log and say which environment it belongs to without a database lookup.