Commit Graph
9 Commits
Author SHA1 Message Date
dahyeon de24f0dd3f TODO : Kiota 버그 탐구 2025-11-10 17:22:18 +00:00
dahyeon 4ec9bf1acf Enhances API documentation and enables Swagger UI
Adds detailed `@ApiBody` schemas to several endpoints within `PageController` and `SpaceController`, including methods for creating and updating pages, spaces, and managing temporary access tokens. This provides clear, machine-readable descriptions of expected request bodies for API consumers.

Enables the Swagger UI in the main application bootstrap, allowing for interactive exploration and testing of the API endpoints directly through the browser.
2025-11-10 16:29:42 +00:00
dahyeon bb992167d2 Adds comprehensive page management and temporary access tokens
Introduces the `PageModule` to provide full CRUD capabilities for pages within spaces.

Key features include:
-   API endpoints for creating, retrieving, updating, and soft-deleting pages.
-   Support for hierarchical page structures with validation to prevent circular references.
-   A mechanism to generate and manage temporary access tokens, allowing controlled public access to specific pages or entire spaces.
-   Integration with database repositories and comprehensive Swagger documentation for all new endpoints and DTOs.
-   Ensures proper authorization and validation for all page and token operations.
2025-11-10 15:42:02 +00:00
dahyeon ef440a2dbd Configures Drizzle ORM with full schema and adds repositories
Integrates the Drizzle ORM schema into the database service, enabling type-safe queries across all entities.

Establishes the foundation for a repository pattern by providing and exporting specialized repository classes within the database module. This separates concerns, moving specific entity operations out of the core database service.

Removes example Drizzle usage from the database service, focusing its responsibility on connection management and providing the configured Drizzle client.
2025-11-10 15:01:31 +00:00
dahyeon dff10ff604 Establishes Drizzle ORM schema; enhances auth
Establishes the initial database schema using Drizzle ORM, replacing the prior placeholder. This migration introduces core entities like users, spaces, pages, access tokens, and their permissions, complete with relationships and constraints.

Updates the authentication flow by securing the sign-in endpoint with JWT validation and extracting user details directly from the token via a new custom parameter decorator, improving user context handling.

Integrates a new `Page` module, laying the groundwork for future page management capabilities.
2025-11-10 14:50:29 +00:00
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