Checklist#
- DNS + TLS —
checkin.example.comserved over HTTPS only. Passkeys are bound to this hostname: changing it later means re-enrolling every passkey. - Environment
APP_ENV=production APP_DEBUG=false APP_URL=https://checkin.example.com SESSION_SECURE_COOKIE=true SESSION_DRIVER=database # or redis CACHE_STORE=redis # or database QUEUE_CONNECTION=database # mails are queued MAIL_* # invitations, resets, verification CHECKIN_REGISTRATION=false PASSKEYS_USER_HANDLE_SECRET= # a long random string, set once, never rotated - Keys —
php artisan passport:keysonce; storestorage/oauth-private.keyandoauth-public.keyoutside the deploy artefact (or pass them withPASSPORT_PRIVATE_KEY/PASSPORT_PUBLIC_KEY). Back them up. Rotating them invalidates every token and changes the JWKSkid; applications refresh keys automatically. - Database —
php artisan migrate --force. - First administrator —
php artisan checkin:admin you@ap.it, sign in, add a passkey and TOTP (recovery codes in a safe place). - Applications —
php artisan checkin:client …per app; set theirCHECKIN_*; mark production redirect URIs only. - Assets —
npm ci && npm run buildon the build machine;php artisan optimizeafter deploy. - Scheduler & queue —
php artisan schedule:runevery minute (it runspassport:purgeand the self-updater), a queue worker for mail. - Updates — once the first release is tagged on GitHub (tag =
VERSION), the Updates page keeps the installation current: checkAPP_UPDATES,APP_UPDATE_CHANNELand thatgit,composerandnpmare on the scheduler user'sPATH. Install withgit cloneor as a Cipi/Deployer release so the updater recognises the layout. - Headers — behind a proxy set
TRUSTED_PROXIES/TrustProxies; HSTS at the web server.
Behind Cipi / Nginx#
Standard Laravel vhost (public/ as root). Nothing special for OAuth: all endpoints are plain HTTPS routes. Allow POST /oauth/token and /oauth/userinfo from the applications' servers (they call Checkin server-to-server).
Upgrades#
- Through Administration → Updates (or
php artisan app:update apply) once releases are tagged; by hand:git pull→composer install --no-dev→php artisan migrate --force→npm run build→php artisan optimize. - Passport major versions: re-read
App\Providers\PassportServiceProvider,App\Oidc\AuthCodeGrant(it copies one method of league's grant:completeAuthorizationRequest) andApp\Oidc\Concerns\RetrievesOidcAuthRequest(mirrors Passport's trait); the test suite catches drift.
Backups#
Database (people, passkeys, clients, logs) and the two key files. Passkey credentials cannot be re-created by an administrator.