Commit Graph
4 Commits
Author SHA1 Message Date
dahyeon 469e799b01 Adds Drizzle ORM with Infisical for secure database management
Integrates Drizzle ORM to provide a type-safe and modern solution for PostgreSQL database interactions. Establishes Infisical as the central secret management system, ensuring sensitive database credentials and other environment variables are securely loaded dynamically based on the active environment.

Includes a PowerShell script to standardize environment setup for Drizzle CLI operations, fetching secrets from Infisical and local configuration files. New npm scripts `drizzle:push` and `drizzle:pull` are added to streamline database schema migrations.

Sets up an initial database module with a `DatabaseService` and a sample `users` schema to demonstrate Drizzle's functionality and integration with Infisical secrets.
2025-11-09 16:05:18 +00:00
dahyeon 6aec3e91b8 Feat: Implement image upload and refine API infrastructure
Introduces a new `ImageModule` to handle image uploads, utilizing Minio for object storage and NATS for triggering asynchronous derivative generation workflows.

Enhances the NATS client with improved connection reliability, graceful shutdown, and a simplified `publish` method for outgoing messages.

Refines JWT verification for Microsoft Entra ID, including robust JWKS handling, better type safety for claims, and improved error logging to ensure secure authentication.

Updates Swagger documentation with the API server URL and Bearer (OpenID Connect) authentication scheme for better discoverability and easier client integration.

Enables global CORS to allow cross-origin requests to the API.

Adds `minio`, `temporal-polyfill`, and `@types/multer` dependencies to support these new functionalities.
2025-11-09 14:50:24 +00:00
dahyeon d6b9477094 feat(auth): implement OIDC JWT verification with dynamic identity provider support
- Added JwtService (azure-jwt.service.ts) to verify tokens from multiple IdPs (Microsoft Entra ID, Amazon Cognito)
- Implemented dynamic provider configuration (issuer, audience, jwksUri)
- Added JwtAuthGuard for NestJS to handle JWT validation via jose library
- Integrated @Public() and @IdP() decorators for route-level control
- Audience () and issuer () validation logic aligned with OIDC standards
- Added clock tolerance and allowed algorithm checks for security hardening
2025-11-08 03:33:36 +00:00
dahyeon 02255d7240 first commit 2025-11-07 09:17:35 +09:00