Commit graph

30 commits

Author SHA1 Message Date
Max
e96896eb40 Implement detailed ACL enforcement logic and data access constraints
- Refactored the ACL enforcement process to include a comprehensive chain of permission checks for clients, users, teams, and members.
- Introduced data access constraints (OwnerOnly, TeamOnly) to enhance access control based on endpoint requirements.
- Updated the Error struct to include the stage of permission checks where failures occur, improving error reporting.
- Enhanced scope management with wildcard matching capabilities and added checks for restricted scopes.
- Implemented tests to validate the enforcement logic and ensure correct handling of data access constraints.
2025-10-21 17:04:20 +08:00
Max
0e260ffb6a Enhance OAuth guard with authorized info handling and ACL integration
- Updated the OAuth guard to set authorized information in the context using the new authorized package.
- Refactored the GetAuthorizedInfo function to utilize the authorized.GetInfo method, improving clarity and maintainability.
- Enhanced the ACL implementation by adding scope resolution logic in the Enforce method, ensuring proper access control based on user roles and scopes.
- Improved error handling and logging during ACL operations, providing better insights into access decisions.
2025-10-20 08:50:20 +08:00
Max
8992cb9130 Update model options to include permission field for user-related models
- Added "permission": true to the option field in user, user_role, user_type, user_oauth_account, and dsl models, enhancing permission management capabilities.
- This change ensures consistency across user-related models and improves the overall functionality of the user management system.
2025-08-03 15:59:14 +08:00
Max
c74916296a Enhance model definitions and loading process for system models
- Added new system models for assistant, attachment, audit, chat, config, dsl, history, and kb with metadata including tags, built-in status, read-only attributes, and sort order.
- Refactored the model loading process to include a dedicated function for loading system models, improving organization and maintainability.
- Updated the application loading logic to set a default prefix for system tables, ensuring consistent naming conventions.
- Improved error handling during model loading and migration processes for better reliability.
2025-07-15 16:33:14 +08:00
Max
eeac6bbf96 chore: Update .gitignore and Makefile for improved artifact management
- Added backup entries for bindata.go and const.go in .gitignore to prevent accidental commits.
- Refactored Makefile to streamline CUI commit retrieval and ensure consistent versioning in artifact generation.
- Implemented backup and restoration of bindata.go and const.go during the release process for better safety.
2025-05-18 17:37:28 +08:00
Max
401fd3aa94 Fix code signing command and update .gitignore to exclude shell scripts 2024-12-04 11:38:52 +08:00
Max
a1de910337 [add] support for retrieving cookies in sui Request struct 2024-06-25 19:37:55 +08:00
Max
35bf78b08d [add] pipe widget (dev) 2024-02-13 20:54:25 +08:00
Max
8c4b46fb70 Add Yao Build Environment Docker Image 2024-01-18 13:47:43 +08:00
Max
a4a639568d [add] Update V8Go repository in GitHub Actions workflows 2023-12-22 20:43:35 +08:00
Max
515cbe68bc [_] 2022-11-17 10:19:52 +08:00
Max
990b47f770 [add] yao get command 2022-10-28 22:42:02 +08:00
Max
040dda1722
[add] admin root route cache (#179) 2022-09-29 21:11:50 +08:00
Max
800ae72e8b
[add] app custom admin route support (#176)
* [add] app custom admin route support

* [fix] bindata fmt

* [fix] adminRoot replace bug

* [fix] admin root replace bug

* [fix] bindata fmt
2022-09-29 13:31:28 +08:00
Max
a57b312560 [add] XGen v1.0 packing 2022-09-27 23:54:06 +08:00
Max
f66d6bc4ac [change] unit-tests workflow & remove OSS support 2022-09-01 14:36:19 +08:00
Max
ae3f00a502 arm test 2022-02-12 19:37:56 +08:00
Max
cf68a5b495 arm-preview 2022-02-12 19:00:55 +08:00
Max
fed5069ed2 规范日志输出 2022-02-09 17:46:10 +08:00
Max
ea72f26d5e 调整环境变量 2022-02-09 00:49:57 +08:00
Max
771ccf931a + 忽略测试制品 2022-02-07 07:20:52 +08:00
Max
5aa23bf02f + benchmark 2022-01-22 03:13:00 +08:00
Max
1cedbc97b3 优化目录结构 2021-10-18 22:06:24 +08:00
Max
3d2d97f20d + 文件上传接口 2021-10-12 09:02:49 +08:00
Max
ae4f89cb19 allow host 2021-09-14 15:47:49 +08:00
Max
96d37847b5 + LoadEngine 2021-09-08 18:40:02 +08:00
Max
b530daebfa MakeFile 2021-09-08 16:26:05 +08:00
Max
2252d64033 + env 2021-09-07 11:09:17 +08:00
Max
5df92f5461 更新文档 2021-09-06 17:33:41 +08:00
Max
571151a608
Initial commit 2021-09-06 17:20:28 +08:00