Fix/e2e token expiry https#441
Open
devoclan wants to merge 3 commits into
Open
Conversation
…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
|
@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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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