Enhance error handling, logging, and configuration#10
Merged
moutonjeremy merged 1 commit intomainfrom Apr 19, 2026
Merged
Conversation
… stability and security
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 across configuration, error handling, and security, along with enhanced documentation and operational robustness. The most significant changes are summarized below.
Documentation and Configuration Improvements:
README.mdnow includes comprehensive setup instructions, environment/configuration options, Docker usage, and WebSocket collaboration details, making it much easier for new users to get started and configure the application. (README.md)config-example.yaml) has been expanded with detailed comments and examples for CORS, database (including PostgreSQL), and session settings. (config-example.yaml)Security and Access Control:
canAccessRoommethod and improved JWT validation. (infrastructure/collaboration/handler.go) [1] [2] [3] [4]application/session/validate.go)Operational Robustness and Error Handling:
application/action/execute_actions.go,application/webhook/trigger_webhooks.go) [1] [2]infrastructure/database/gorm.go)application/action/execute_actions.go,application/webhook/trigger_webhooks.go) [1] [2]MapStructByFieldNameshelper now returns errors instead of panicking, making it safer to use. (infrastructure/helpers/mapper/map_struct_by_field_names.go) [1] [2]Configuration Options:
infrastructure/config/config.go,infrastructure/config/http_flags.go) [1] [2]Data Handling Improvements:
JSONBandJSONBArraytypes now validate input types in theirScanmethods, providing clearer error messages if the database returns unexpected types. (domain/common.go) [1] [2]These changes collectively improve the application's usability, reliability, and security.Improve error handling and logging throughout the application. Introduce CORS configuration options and enhance stability by validating session secret keys and property names. Update HTTP server settings for better performance and security.