Deployment checklist

Checklist#

  1. DNS + TLS — checkin.example.com served over HTTPS only. Passkeys are bound to this hostname: changing it later means re-enrolling every passkey.
  2. Environment
    .env
       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
  3. Keys — php artisan passport:keys once; store storage/oauth-private.key and oauth-public.key outside the deploy artefact (or pass them with PASSPORT_PRIVATE_KEY / PASSPORT_PUBLIC_KEY). Back them up. Rotating them invalidates every token and changes the JWKS kid; applications refresh keys automatically.
  4. Database — php artisan migrate --force.
  5. First administrator — php artisan checkin:admin you@ap.it, sign in, add a passkey and TOTP (recovery codes in a safe place).
  6. Applications — php artisan checkin:client … per app; set their CHECKIN_*; mark production redirect URIs only.
  7. Assets — npm ci && npm run build on the build machine; php artisan optimize after deploy.
  8. Scheduler & queue — php artisan schedule:run every minute (it runs passport:purge and the self-updater), a queue worker for mail.
  9. Updates — once the first release is tagged on GitHub (tag = VERSION), the Updates page keeps the installation current: check APP_UPDATES, APP_UPDATE_CHANNEL and that git, composer and npm are on the scheduler user's PATH. Install with git clone or as a Cipi/Deployer release so the updater recognises the layout.
  10. 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) and App\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.