Skip to content

sso groups mapping and file validation by mimetype and extension#50

Merged
vampi62 merged 3 commits intomainfrom
hot-fix
Dec 24, 2025
Merged

sso groups mapping and file validation by mimetype and extension#50
vampi62 merged 3 commits intomainfrom
hot-fix

Conversation

@vampi62
Copy link
Owner

@vampi62 vampi62 commented Dec 24, 2025

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.

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 vampi62 merged commit 2e3d834 into main Dec 24, 2025
2 checks passed
@vampi62 vampi62 deleted the hot-fix branch December 24, 2025 22:41
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant