Skip to content

Fix/e2e token expiry https#441

Open
devoclan wants to merge 3 commits into
AnnabelJoe:mainfrom
devoclan:fix/e2e-token-expiry-https
Open

Fix/e2e token expiry https#441
devoclan wants to merge 3 commits into
AnnabelJoe:mainfrom
devoclan:fix/e2e-token-expiry-https

Conversation

@devoclan
Copy link
Copy Markdown

@devoclan devoclan commented Jun 1, 2026

This PR introduces several security and quality improvements across the platform:

Hardware-Based Meter Signing: Integrated support for YubiKey and TPM-backed HSMs to securely perform meter signing operations, reducing exposure of private keys and strengthening cryptographic security.
End-to-End Test Automation: Added Playwright end-to-end test coverage for critical user journeys, enabling automated validation of core workflows and improving release confidence.
JWT API Authentication: Implemented JWT-based API authentication with short-lived access tokens to enhance API security, reduce token misuse risks, and support secure session management.

Together, these changes improve platform security, reliability, and overall development workflow.

closes #323
closes #346
closes #336
closes #337

jhayniffy added 3 commits June 1, 2026 18:03
…d public verifier

- dashboard.spec.ts: wallet-connected and connect-prompt flows via Freighter mock
- certificate.spec.ts: certificate detail page with Supabase route interception + 404 case
- playwright.yml: CI workflow running against staging, uploads screenshots on failure
- playwright.config.ts: support BASE_URL env var for staging; skip local server when remote
- supabase/config.toml: jwt_expiry 3600→900 (15 min access tokens)
- refresh_token_rotation_enabled=true, reuse_interval=10s
- migration: revoked_tokens table with JTI primary key + auto-expiry
- auth.ts: revokeToken() helper + revocation-list check in requireAuth()
- logout route: revokes access token JTI before signing out
- middleware.ts: 301 redirect HTTP→HTTPS in production (x-forwarded-proto check)
- middleware matcher: expanded to all routes (excl. static assets) so redirect
  fires on page requests, not just API calls
- next.config.ts: Strict-Transport-Security max-age=31536000; includeSubDomains; preload
  plus X-Content-Type-Options, X-Frame-Options, Referrer-Policy on all routes
- Submit domain to HSTS preload list at https://hstspreload.org after deploy
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@devoclan Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants