SADEV-2443: Add pre-registration reference architecture#64
Draft
SADEV-2443: Add pre-registration reference architecture#64
Conversation
Add production-ready React client and Spring Cloud Gateway for YubiKey ordering. Features OIDC authentication, type-safe API client with Zod validation, Material UI theming and comprehensive error handling. Gateway includes JWT validation, token relay, Actuator health checks and externalized configuration for production deployment.
Contributor
What looks good
Requested changes
|
…ecture - Multi-stage Dockerfiles for client (nginx) and gateway (Spring) - Keycloak with auto-provisioning init script - docker-compose with environment variable configuration - deploy.sh for one-command setup
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.
Add Pre-Registration Reference Architecture
📖 Summary
This change introduces a production-ready reference implementation for YubiKey pre-registration ordering, demonstrating modern best practices for secure, type-safe web applications with OIDC authentication.
🛠 Technical Implementation
⚛️ React Client (TypeScript)
auth,orders,shared)react-oidc-context☕ Spring Cloud Gateway (Java 17)
UserInfoGatewayFilterfor downstream context propagation🏗 Infrastructure
run-local.shstartup script for rapid development.gitignorefor Node/Env files and standardized.env-based configuration/actuator/healthand/actuator/infoendpoints🛡 Security & Verification
.env)🚀 What's Next
🐳 Docker & Deployment
docker-compose.ymlfor local development🔐 Keycloak Integration
📚 Documentation
ARCHITECTURE.mdwith system design overviewDEPLOYMENT.mdwith deployment proceduresDEVELOPMENT.mdwith setup and contribution guidelines📦 Shipment Tracking
♿ UI/UX Polish
🤖 AI Development Context
.ai/folder with project context.cursorrulesfor AI-assisted development🛡️ Robust Error Handling
🔒 Security Review
🧪 Testing & CI/CD