-
Notifications
You must be signed in to change notification settings - Fork 89
Comparing changes
Open a pull request
base repository: opentiny/tiny-engine-backend-java
base: develop_back
head repository: opentiny/tiny-engine-backend-java
compare: develop
- 16 commits
- 55 files changed
- 2 contributors
Commits on Apr 25, 2026
-
fix: prevent SQL injection in model-data API (#304)
* fix: prevent SQL injection in model-data API via identifier validation * fix: add model metadata whitelist validation to DynamicModelService * fix: resolve circular dependency between DynamicModelService and ModelServiceImpl * fix: make orderType and orderBy case-insensitive across validation layers * fix: allow queryWithPage with null/empty params for list-all queries
Configuration menu - View commit details
-
Copy full SHA for caa07a6 - Browse repository at this point
Copy the full SHA caa07a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for d02daa9 - Browse repository at this point
Copy the full SHA d02daa9View commit details
Commits on Apr 29, 2026
-
fix(ai): prevent SSRF in AI chat endpoints (#306)
* fix: prevent SSRF in AI chat endpoints via URL validation * fix(ai): update allowed hosts and stricter validation for AI services * fix(ai): enforce host restrictions for AI services
Configuration menu - View commit details
-
Copy full SHA for 4a10aa5 - Browse repository at this point
Copy the full SHA 4a10aa5View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8b6258 - Browse repository at this point
Copy the full SHA b8b6258View commit details -
Configuration menu - View commit details
-
Copy full SHA for 36730b1 - Browse repository at this point
Copy the full SHA 36730b1View commit details
Commits on Apr 30, 2026
-
test: add Jwt, SM2Encryption and SM3Password util test. (#310)
增加 JWT、SM2Encryption、SM3Password 的 ut 测试用例
Configuration menu - View commit details
-
Copy full SHA for ee9d024 - Browse repository at this point
Copy the full SHA ee9d024View commit details -
Configuration menu - View commit details
-
Copy full SHA for b7bf798 - Browse repository at this point
Copy the full SHA b7bf798View commit details
Commits on May 29, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 56c1f3a - Browse repository at this point
Copy the full SHA 56c1f3aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e24a8eb - Browse repository at this point
Copy the full SHA e24a8ebView commit details
Commits on Jun 30, 2026
-
Configuration menu - View commit details
-
Copy full SHA for a770605 - Browse repository at this point
Copy the full SHA a770605View commit details
Commits on Jul 1, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 0898769 - Browse repository at this point
Copy the full SHA 0898769View commit details
Commits on Jul 2, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 4a82d4a - Browse repository at this point
Copy the full SHA 4a82d4aView commit details
Commits on Jul 6, 2026
-
fix: return existing resource on duplicate upload (#320)
优化资源重复上传的判定与处理逻辑: - 精准查重:联合 hash、appId 与 tenantId 查询资源,避免跨应用或跨租户产生误判。 - 平滑处理:命中已存资源时,直接返回原资源,不再抛出“重复数据”异常。 - 完善隔离:新建资源时自动补充 tenantId,确保底层数据满足租户级别的隔离要求。
Configuration menu - View commit details
-
Copy full SHA for 0045f62 - Browse repository at this point
Copy the full SHA 0045f62View commit details
Commits on Jul 30, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 11a007c - Browse repository at this point
Copy the full SHA 11a007cView commit details
Commits on Aug 21, 2026
-
Configuration menu - View commit details
-
Copy full SHA for af0756b - Browse repository at this point
Copy the full SHA af0756bView commit details
Commits on Sep 16, 2026
-
fix: resolve multiple CodeQL security scan findings
针对 CodeQL 扫描告警做安全整改,覆盖动态 SQL 注入、API 密钥加密、SSRF 与文件路径四类问题。 动态 SQL 与 OGNL 注入 - DynamicSqlProvider 的表名、列名与排序字段全部经标识符校验,orderType 限定 ASC/DESC,条件值、数据值与分页参数改用 MyBatis 参数绑定。 - DynamicModelService 与 DynamicService 的查询、计数与 DDL 入口统一调用 SqlIdentifierValidator。 - SqlIdentifierValidator 新增 requireValidIdentifier、isValidIdentifier、isValidOrderType 与 escapeSqlLiteral;标识符判定由正则改为字符遍历。 - BlockServiceImpl 的标签过滤由字符串拼接改为 queryWrapper 参数绑定。 API 密钥加密 - SM4 由 ECB 升级为 GCM:12 字节随机 nonce、128 位认证标签、GCM1: 版本前缀、密钥长度校验为 128 位。 - 无 GCM1: 前缀的密文先尝试 GCM 解密,失败后回退 ECB,已签发的 EKEY_ token 保持可用。该回退是迁移期措施,待历史 token 轮换完成后移除。 SSRF 与文件路径 - validateFinalUrl 返回解析后的 URI 并直接用于发起请求,消除校验地址与实际请求地址的解析差异,同时拒绝携带 userInfo 与 fragment 的地址。 - StorageService 的文档路径经规范化与根目录包含检查,并用 toRealPath() 处理软链接;文档根目录由 RAGConfig.documentRoot 统一提供,取自环境变量 FOLDER_PATH。 ReDoS - BlockServiceImpl 的 appId 判定与 AiChatServiceImpl 的消息内容匹配均改为非正则实现。 构建与 CI - 新增 codeql.yml 增量扫描与 codeql-full.yml 周期全量扫描,两者均配置 config-file 排除测试与生成目录。 - 新增 pmd/errorprone-ruleset.xml;pmd-check 以 minimumPriority=4、failurePriority=2、maxAllowedViolations=51 承接历史违规基线,cpd-check 的 failOnViolation 置为 false。遗留代码的 PMD 抑制注解后续逐步清理。 测试与格式 - 新增 SM4UtilsTest、ModelServiceImplTest,扩充 SqlIdentifierValidatorTest、DynamicModelServiceTest、AiChatV1ServiceImplTest,全量单测 647 个通过。 - DatabaseCleanupService、SM4Utils、VectorStoreConfig、StorageService、AiChatV1ServiceImpl、ModelServiceImpl 六个文件同时做了 CRLF 转 LF 与整文件重排版,diff 中约 2400 行删除为纯空白差异。
Configuration menu - View commit details
-
Copy full SHA for c43ef64 - Browse repository at this point
Copy the full SHA c43ef64View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff develop_back...develop