Conversation
Replaces FileExtensionAttribute with FileTypeAttribute for MIME type-based file validation and centralizes allowed MIME types in MimeTypes. Adds SSO group mapping configuration and logic to assign user roles based on SSO group membership. Updates config DTOs and config service to expose allowed MIME types. Improves error messages for file validation. Updates documentation and config examples to reflect new SSO group mapping.
Frontend now restricts file uploads by allowed extensions based on config. Backend S3 (MinIO) client is only registered if enabled, and FileService now handles missing MinIO client gracefully. Database migrations for user roles and project statuses now include conversion logic between string and integer representations.
Introduces file extension checks alongside MIME type validation in FileTypeAttribute and updates error messages for clarity. Refactors config DTOs and services to provide allowed extensions and MIME types for images and documents, updates frontend to use new config keys, and adjusts related tests and OpenAPI schema accordingly.
vampi62
added a commit
that referenced
this pull request
Feb 8, 2026
* Refactor file validation and add SSO group mapping Replaces FileExtensionAttribute with FileTypeAttribute for MIME type-based file validation and centralizes allowed MIME types in MimeTypes. Adds SSO group mapping configuration and logic to assign user roles based on SSO group membership. Updates config DTOs and config service to expose allowed MIME types. Improves error messages for file validation. Updates documentation and config examples to reflect new SSO group mapping. * Add file type restrictions and improve S3 config handling Frontend now restricts file uploads by allowed extensions based on config. Backend S3 (MinIO) client is only registered if enabled, and FileService now handles missing MinIO client gracefully. Database migrations for user roles and project statuses now include conversion logic between string and integer representations. * Add file extension validation and update config structure Introduces file extension checks alongside MIME type validation in FileTypeAttribute and updates error messages for clarity. Refactors config DTOs and services to provide allowed extensions and MIME types for images and documents, updates frontend to use new config keys, and adjusts related tests and OpenAPI schema accordingly.
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 pull request introduces several improvements focused on configuration flexibility, file validation, and database migration logic.
significant changes include enhanced file type validation using MIME types, improved configuration options for allowed file types,
migration updates for role and status fields
conditional service registration based on configuration for minio client.