87 Commits

Author SHA1 Message Date
60bf3950b0 buggix 2026-05-22 14:08:01 +08:00
666f484d62 bugfix 2026-05-21 23:02:07 +08:00
78b52c2063 bugfix 2026-05-21 22:53:14 +08:00
8fe72676a9 bugfix 2026-05-21 17:02:01 +08:00
f4482bffb2 bugfix 2026-05-21 16:59:45 +08:00
9bc4e69f25 bugfix 2026-05-21 16:58:00 +08:00
37386e2625 feat: add json table definitions for all models (converted from xlsx) 2026-05-21 12:46:36 +08:00
44a1e1d1d8 bugfix 2026-05-21 11:14:09 +08:00
746c8198c3 bugfix 2026-05-20 21:17:27 +08:00
79466e1cb6 bugfix 2026-05-20 21:15:43 +08:00
6a87e8a53f bugfix 2026-05-20 21:12:52 +08:00
4b7852a5c2 bugfix 2026-05-19 15:19:33 +08:00
2472a26c4f bugfix 2026-05-19 15:03:24 +08:00
1c2887c6ba Merge branch 'main' of git.opencomputing.cn:yumoqing/dapi 2026-05-19 14:58:45 +08:00
26711f7855 bugfix 2026-05-19 14:52:56 +08:00
b1fa4e6b30 bugfix 2026-05-15 18:13:29 +08:00
e6d9f02dd4 fix: align all downapikey operations to actual table schema (id,dappid,userid,apikey,enabled_date,expired_date) 2026-05-13 11:44:53 +08:00
5c527c1bb2 fix: remove non-existent kwdownapikey table reference, use downapikey for user-level lookup 2026-05-13 11:22:11 +08:00
beaa4371d7 fix: create_user_apikey use kwdownapikey for per-user existence check 2026-05-12 20:13:03 +08:00
c96acba94f fix: add_apikey uses 'apikey' variable instead of undefined 'id' 2026-05-12 20:12:26 +08:00
b2369cd00c fix: verify user exists before returning existing apikey in create_user_apikey 2026-05-12 18:14:15 +08:00
5fc90a8033 bugfix 2026-05-12 16:53:13 +08:00
be368fb7ca bugfix 2026-05-12 16:46:17 +08:00
38b772e131 bugfix 2026-05-12 16:42:40 +08:00
c42f39bc8b fix: change expires_at to expired_date in get_apikey_user and add_apikey, fix getID missing parentheses 2026-05-12 16:10:36 +08:00
e089df99f7 fix: 修改认证自动分配角色为downapp/logined
- 机构类型从'*'改为'downapp'
- 角色名从'downappuser'改为'logined'
- 角色id改为独立生成不再使用dappid
2026-05-11 15:41:23 +08:00
e142f4b84e feat: 添加x-api-key认证模式和downappuser角色自动分配
- 新增x_api_key_auth函数支持Anthropic标准x-api-key header认证
- get_apikey_user查询增加dappid字段
- 认证成功后自动创建并分配downappuser角色(id=dappid)
- rbac/check_perm中增加x-api-key header检查,优先于Authorization
2026-05-11 15:36:41 +08:00
27794d3d25 feat: 新增create_user_apikey函数
- 为已有rbac用户创建dapi apikey
- 支持幂等操作(已存在则返回现有apikey)
- 通过load_dapi注册到ServerEnv供外部调用
2026-05-11 15:11:09 +08:00
89a5cf65a3 bugfix 2026-04-26 15:06:42 +08:00
6acdafbe16 bugfix 2026-04-16 16:00:01 +08:00
6d1abc41cb bugfix 2026-04-16 15:57:48 +08:00
d5072cb2ea bugfix 2026-04-16 15:49:22 +08:00
d64fcd1d73 bugfix 2026-04-16 11:13:26 +08:00
1e0f3a408d bugfix 2026-04-02 14:24:48 +08:00
a05353a0e2 bugfix 2026-04-02 14:20:19 +08:00
ba4eaa4653 bugfix 2026-04-02 14:06:59 +08:00
1746aa0331 bugfix 2026-03-30 21:01:50 +08:00
ae4ae625d9 bugfix 2026-03-30 21:00:41 +08:00
2e66b08b4c bugfix 2026-03-30 20:47:59 +08:00
44fbcd0102 bugfix 2026-03-30 20:43:08 +08:00
d57731c6dd bugfix 2025-09-02 15:19:36 +08:00
89a4bdd42f bugfix 2025-09-02 13:52:13 +08:00
5a6dc559c0 bugfix 2025-09-02 12:56:11 +08:00
a09e663dca bugfix 2025-09-01 11:56:55 +08:00
4b5e27e3e9 bugfix 2025-08-28 18:27:08 +08:00
3693281e77 bugfix 2025-08-28 10:05:31 +08:00
45ee8653c2 bugfix 2025-08-28 09:58:44 +08:00
7e218a68a6 bugfix 2025-08-28 09:41:11 +08:00
19d19dd08d bugfix 2025-08-28 09:37:45 +08:00
990abfb344 bugfix 2025-08-27 19:07:14 +08:00