hermes
f6a4c7d40a
feat(protect): 支持用过期证书签名 + 上传时解析证书到期时间
...
Docker Build / Build and Push Docker Image (push) Successful in 1m11s
Docker Build / Deploy to Server (push) Successful in 2s
需求:pfx 证书过期后仍要能用来签产物。
1) 去掉「证书已过期」的硬拒绝。私服/内网分发场景下「有签名」比「链被信任」
更重要,过期证书照样能写入 Authenticode。改为:允许,但在创建任务的响应
里带 warning,前端选中过期证书时显示琥珀色提示条,下拉选项本身也标
「已过期」。安全相关的校验(平台不匹配、已停用、非本人、APK/ELF)全部保留。
2) 上传证书时解析 Subject 与 NotAfter(纯 Go,software.sslmate.com/src/go-pkcs12)。
之前这两个字段从没被填过 —— verify 的镜像是 Alpine,里面没有 openssl CLI,
列表里「到期时间」永远是「无到期信息」,过期提醒形同虚设。
解析失败不阻断上传(口令错也能存下来),只是没有到期信息。
3) 「N 天后过期」只对未过期且 30 天内生效;过期项不再显示负数天数。
实测(本地 osslsigncode 2.9,用 openssl 生成 2020-2021 的真过期证书):
- 上传 → not_after=2021-01-01 落库,Subject=CN=VFY Expired Signer,O=Hermes
- 带该证书加壳 → 任务 done,响应 warning=「所选证书已于 2021-01-01 过期…」
- osslsigncode verify 产物:Signer CN=VFY Expired Signer,
message digest 与计算值一致 → 签名确实写进去了
- 界面:下拉列出过期项并标注「已过期」,选中后出现琥珀色提示条
2026-11-22 11:02:23 +08:00
hermes
6340ba9e38
feat(protect): 加壳页选证书重签 + 修签名路径致命 bug
...
Docker Build / Build and Push Docker Image (push) Successful in 1m35s
Docker Build / Deploy to Server (push) Successful in 4s
用户反馈「签名证书上传后怎么用」——查下来三个问题,全修:
1) 面板根本没有证书入口。上传证书后无处可选,只有直接打 API 才用得上。
加壳页新增「重签证书」下拉:按文件类型自动过滤(PE→windows、IPA→ios),
只列启用且未过期的证书,显示到期日与 30 天内过期提醒;不选=不重签。
APK/ELF 明确提示不支持(APK 走服务端 keystore,ELF 无签名机制)。
2) 证书被静默忽略的竞态。原流程是先 CreateAndRun(内部已 go execute),
之后再 UPDATE sign_profile_id,协程可能先读到 NULL → 任务成功但没重签。
改为建任务时就把 sign_profile_id 写进 task(CreateAndRunSigned /
CreateAndRunSyncWithSign),handler 里先校验再创建。
3) 【致命】签名路径一直是相对路径,osslsigncode 跑不起来。
PROTECT_DIR 默认 data/protect 是相对的,而 SignPE 用 runCmd(workDir,…)
把子进程 cwd 切到了 workDir,于是 cert.p12 的 data/protect/… 被解析成
workDir/data/protect/… → Failed to read PKCS#12 file。生产上这条路径
从来没成功过(历史任务列表里能看到 exit status 255)。
NewRunner 与 LoadMaterial 统一转绝对路径。
顺带:
- 建任务前校验证书:平台与文件类型匹配、未过期、状态 active、归属本人
- 签名证书列表加「到期时间」列:已过期红、30 天内黄
- i18n 补 9 个键(zh/en)
实测(本地装 osslsigncode 2.9,不看文案看产物):
- 带证书加壳 → osslsigncode verify 显示 Signer CN=VFY Test Signer,
message digest 与计算值一致(链不可信是自签名的正常现象)
- 不带证书 → 产物无签名(对照组)
- 负向:平台不匹配/已过期/已停用/不存在/APK 带证书,五种全部 400 拦下
2026-11-22 10:47:54 +08:00
hermes
5169bf249e
feat(protect): 支持 Linux x86_64 ELF 加壳
...
Docker Build / Build and Push Docker Image (push) Successful in 1m0s
Docker Build / Deploy to Server (push) Successful in 2s
- 新增 internal/protect/elf.go:追加 PT_LOAD 段(搬 phdr 表)+ 改 e_entry,PE/ELF 统一走 PatchAuto
- 壳 assets/elfstub64.bin:无 libc 纯 syscall 实现(登录 POST / 关回显读口令 / hostname 作设备 ID)
- Runner 产物命名:无扩展名不再硬加 .exe
- Info 字段扩到 uint64 以容纳 ELF 地址;上传白名单放行 .elf/无扩展名
- cmd/elfpack:命令行 ELF 打包工具
- 单测:结构校验 + 非 x86_64 精确拒绝
- 实测:/bin/ls、PIE、非 PIE 三种目标;正确口令放行、错误口令/断网/403 拦截;设备绑定写入 user_devices
2026-11-21 20:06:03 +08:00
hermes
18ea287d3d
feat(sign): 面板「签名证书」页
...
Docker Build / Build and Push Docker Image (push) Successful in 58s
Docker Build / Deploy to Server (push) Successful in 2s
- /admin/sign-profiles:平台上选(Windows/iOS)、名称、证书、口令、iOS 描述文件
- 列表只显示元数据(平台徽标、格式、是否含描述文件、时间),删除按钮二次确认
- 文件选择器改成统一风格按钮 + 文件名回显,隐藏原生 input
- 路由/侧边栏/面包屑/i18n(zh+en 各 40 键)
2026-11-21 19:14:46 +08:00
hermes
7840872f91
feat(protect): Android APK 加壳(注入壳类 + 重签)
...
Docker Build / Build and Push Docker Image (push) Successful in 1m5s
Docker Build / Deploy to Server (push) Successful in 3s
- internal/protect/apk.go:apktool 反编译→合并壳 smali→改 application→注入 vfy_cfg.json→回编译→对齐→v1/v2/v3 重签
- 支持两种工具形态:PATH 二进制(Debian)或 JRE+fat jar(Alpine 生产镜像)
- 内嵌 Android 壳 smali(com.vfy.ShellApplication:卡密/账号弹窗、设备指纹、原 Application 反射拉起)与开发签名证书
- Dockerfile:装 openjdk17-jre-headless 并在构建期下载 apktool.jar / uber-apk-signer.jar
- 任务备注分流(PE 报入口变化,APK 报重签信息);包名启发式过滤权限类字符串
- 单测:manifest 改写、包名识别、E2E(真跑 apktool+signer)
2026-11-21 18:13:22 +08:00
hermes
0eac13578e
feat(protect): 多格式识别(APK/IPA/ELF/Mach-O)与明确缺口提示
...
Docker Build / Build and Push Docker Image (push) Successful in 57s
Docker Build / Deploy to Server (push) Successful in 2s
- protect/kind.go:按内容识别 PE/APK/IPA/ELF/Mach-O,APK(AndroidManifest+dex)/IPA(Payload/*.app) 走 zip 结构判定
- PatchAuto 按类型分发;未支持类型返回 *UnsupportedError,说明缺哪一环
- ProtectTask 新增 kind;上传白名单放宽到 .exe/.dll/.apk/.ipa
- MCP verify_protect_version 对非 PE 入口直接给结论
- 面板加「类型」列、接受 apk/ipa 并展示具体缺口;单测覆盖识别与拒绝路径
2026-11-21 17:21:59 +08:00
hermes
683ebb31df
feat(versions): 加壳版本可视化(已加固徽标 + 派生来源)
...
- 版本列表返回 source_version(派生来源版本号),新增「派生自」列
- 版本号后加「已加固」徽标;未加固版本该列显示 -
- 版本详情页加加壳来源横幅(来源版本 + 跳转加壳任务)
- PublishAsVersion 自动进位改为跳过已占用的号;不再误回写 task.version_id
- 前端 schema 补 protected/source_version_id/protect_task_id/source_version
2026-11-21 16:54:56 +08:00
hermes
02df87f464
feat(protect): 加壳产物落成新版本记录
...
- Version 新增 protected / source_version_id / protect_task_id,ProtectTask 新增 version_id
- protect.PublishAsVersion:产物写入内容寻址存储、复制来源版本其余文件、版本号可自动进位
- 路由 POST /dev/protect/tasks/:id/publish、MCP 工具 verify_publish_protected_version
- 面板任务行加「生成版本」弹窗(版本号/策略/更新说明/立即发布)
- 单测 BumpVersion
2026-11-21 15:19:56 +08:00
hermes
22570341ef
feat(protect): 面板「加壳加固」页面
...
- pages/admin/protect/index.vue:应用选择 + 拖拽/点击上传 exe + 统计卡 + 任务表(状态轮询 2s、下载、删除)
- 路由 /admin/protect、侧边栏入口(PackageCheck)、面包屑 titleMap
- i18n zh/en 各补 nav.protect + admin.protect 38 键
- seedtest 增加面板管理员(admin/admin123)便于本地端到端验证
2026-11-21 14:56:02 +08:00
Trae AI
0a99c2b006
feat: 版本补丁包合并与 JS 沙箱执行,创建版本失败透出真实原因
...
Docker Build / Build and Push Docker Image (push) Failing after 9s
Docker Build / Deploy to Server (push) Skipped
- 新增 contentstore 统一存放版本内容并支持定期 GC
- 新增 jsexec 沙箱执行动态接口代码(带超时保护)
- 补丁版本自动合并完整包,筛选仅含完整包的版本
- 创建版本写库失败时记录日志并返回具体错误
2026-11-11 21:34:15 +08:00
Trae AI
2751b24e18
feat: file list shows full package files, desktop shortcut per-file setting
2026-06-18 18:59:50 +08:00
Trae AI
77a2dd468f
feat: 版本管理支持多入口文件、安装选项(桌面快捷方式/开始菜单/自动运行/默认安装目录)
2026-06-18 18:15:51 +08:00
admin and Claude
59f7b00b9d
chore: 默认品牌名从'微授权'改为'网络验证'
...
Co-Authored-By: Claude <noreply@anthropic.com >
2026-06-16 03:25:30 +08:00
admin and Claude
5bbae23bca
feat: 用户管理页面添加充值功能
...
- 后端新增 POST /app-users/:id/recharge API
- 前端新增独立的用户充值页面 (/admin/users/:id/recharge)
- 充值页面风格与添加用户/编辑用户页面一致
- 支持选择卡密类型和数量进行充值
- 永久会员显示提示不允许充值
Co-Authored-By: Claude <noreply@anthropic.com >
2026-06-14 11:49:34 +08:00
admin and Claude Opus 4.8
e89b212dbb
fix: 修复侧边栏拖拽区域的国际化文案和鼠标样式
...
- 添加 toggleSidebar 的中英文翻译
- 移除无效的拖拽鼠标样式,改为 pointer
- 使用 i18n 替换硬编码的英文文本
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-03 05:15:24 +08:00
admin and Claude Opus 4.8
fd6384191c
feat: 版本管理页面添加下载补丁包和完整包的操作按钮
...
- 补丁类型版本显示两个下载按钮:下载补丁包、下载完整包
- 全量版本显示一个下载按钮
- 添加相应的中英文翻译
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-03 04:12:21 +08:00
admin and Claude Opus 4.8
ad58d2220e
feat: 添加补丁版本基础版本选择功能
...
- 添加基础版本下拉选择器,仅在补丁更新类型时显示
- 添加应用和更新类型的 watch 监听,自动获取全量版本列表
- 提交时传递 base_version_id 参数
- 添加调试日志便于排查问题
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-02 22:48:22 +08:00
admin and Claude Opus 4.7
b86fc60741
feat: 添加文件上传进度和速度显示
...
- 新增 api.postFormDataWithProgress 方法支持上传进度回调
- 版本创建和编辑页面显示上传进度条和实时速度
- 按钮显示上传百分比
- 添加国际化翻译
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-06-01 22:01:16 +08:00
admin and Claude Opus 4.7
c755587a4d
feat: 完善版本管理功能
...
后端改进:
- 新增版本发布状态管理 (draft/published/deprecated/superseded)
- 新增发布/废弃/回滚 API 接口
- 新增增量包生成功能 (仅包含差异文件)
- 新增删除版本时的依赖检查
- 数据库字段: publish_status, superseded_by, delta_package_*
前端改进:
- 版本列表新增发布状态列和增量包大小列
- 新增发布/废弃/回滚操作按钮
- 新增增量包下载功能
- 更新国际化翻译
修复:
- 修复 announcements 页面 typeOptions 未定义问题
- 修复 echarts 模块导入类型问题
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-06-01 20:31:52 +08:00
admin and Claude Opus 4.7
47f1e9fe43
fix: show existing files when editing version
...
- Load files data when fetching version info
- Display uploaded file info with re-upload option
- Preserve original file data when canceling re-upload
- Add i18n for reupload button
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-06-01 00:58:36 +08:00
admin and Claude Opus 4.7
53fd9ff7dc
feat: add custom download URL for manual update method
...
- Add custom_download_url field to Version model
- Show custom download URL input when update method is 'manual'
- Use platform default URL if custom URL is not set
- Add i18n translations for new field
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-28 16:06:48 +08:00
admin
853c22fdbe
feat: add balance display, user columns, device mgmt and sessions for agent
...
- Backend: add balance to agent stats API
- Backend: return full user details (balance, expiry, online_status, device_count, application) in agent users API
- Backend: export admin device/session handlers, add agent routes for devices and sessions
- Backend: add card type permission check and balance deduction for agent user creation
- Backend: extract checkAgentUserPermission helper, add user edit API
- Frontend: add balance card to agent dashboard
- Frontend: add application, online_status, device_count, balance, expiry_at columns to agent user table
- Frontend: add agent devices page (reuse admin data-table component)
- Frontend: add agent sessions page (reuse admin data-table component)
- Frontend: add devices and sessions to agent navigation and routes
- Add i18n keys for agent devices, sessions, user columns, dashboard balance
2026-05-11 10:46:29 +08:00
admin
a76a30ee78
feat: add agent user edit, card type permission check and balance deduction
...
- Backend: check AgentApplicationCardType.can_generate before allowing card recharge
- Backend: deduct agent balance and record consumption when creating user with card
- Backend: add GET /agent/users/:id and PUT /agent/users/:id for user edit
- Backend: extract checkAgentUserPermission helper, refactor handleUpdateUserStatus
- Frontend: add user edit page ([id].vue) with username/email/password
- Frontend: add edit action in user list dropdown menu
- Frontend: add route for agent user edit page
- Add i18n keys for agent user edit
2026-05-11 08:48:02 +08:00
admin
57e1d10689
feat: add user creation and ban/unban for agent backend
...
- Backend: POST /agent/users - create user with optional card recharge
- Backend: PUT /agent/users/:id/status - ban/unban user
- Frontend: add create user page for agent (select app, card type)
- Frontend: add ban/unban action in user list with confirm dialog
- Frontend: add actions dropdown column in user data table
- Fix: cloud variables records page i18n key (agent.finance.to -> agent.cloudVariables.records.to)
- Add i18n keys for agent user management (create, ban, unban)
2026-05-11 08:24:30 +08:00
admin
3cea807353
refactor: change agent cloud data permission to cloud variables only
...
- Rename permission from '查看云端数据' to '查看云端变量'
- Remove cloud constants API and page for agents
- Add cloud variable records API for agents (stream type)
- Add agent cloud-variables page with full variable details
- Add agent cloud-variable records page (read-only)
- Update navigation from cloud-data to cloud-variables
- Update i18n keys: cloudData -> cloudVariables
- Backend returns var_type, default_value, max_records etc.
- Records page supports dynamic columns and date filtering
2026-05-11 08:05:40 +08:00
admin
df4ad079f3
fix: agent finance page styling and cloud data API implementation
...
- Fix agent finance page: confirmed backend integration is working
- Add agent cloud-variables and cloud-constants API endpoints
- Rewrite agent cloud-data page to use real API calls instead of mock data
- Fix API path: /agent/applications -> /agent/apps
- Remove 'all' value from app filter SelectItem (empty string issue)
- Add cloudData i18n keys for zh and en
- Cloud data is read-only for agents, with CanViewCloudData permission check
2026-05-10 23:38:04 +08:00
admin
5561587cde
修复: 1.代理卡密筛选status显示(JSON key冲突) 2.财务管理SelectItem空字符串value报错
2026-05-10 17:00:19 +08:00
admin
409ec4f75b
修复: 1.管理员编辑代理云端数据权限switch无效(后端缺少CanViewCloudData字段) 2.代理卡密status显示disabledbanned 3.代理用户管理只显示代理/子代理卡密充值过的用户
2026-05-10 14:12:35 +08:00
admin
c495f9b417
修复代理商卡密管理页面:增加服务端筛选、批量导出、复制功能
2026-05-10 04:27:55 +08:00
admin and Claude Opus 4.7
e7dc05c257
fix: 修复代理编辑页面翻译问题和代理卡密生成页面
...
- 添加 admin.agents.create.saveBtn 和 admin.agents.editSuccess 翻译
- 修复代理卡密生成页面API路径错误,使用/agent/apps/{id}获取卡类
- 重构代理卡密生成页面样式,参考管理员后台卡密生成页面
- 添加代理卡密生成页面完整i18n国际化支持
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-09 22:25:06 +08:00
admin and Claude Opus 4.7
914e3d5127
feat: 优化代理管理页面和代理后台页面
...
- 添加云端数据权限列到代理管理页面
- 重构代理后台用户管理、卡密管理、财务管理页面使用DataTable组件
- 添加统计卡片到代理后台各页面
- 修复agent-apps相关类型错误
- 添加代理后台页面i18n国际化支持
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-09 21:00:33 +08:00
admin and Claude Opus 4.7
aa5d3d126b
refactor: 简化授权管理添加/编辑页面为单卡类选择
...
- 移除卡类列表,改为单选卡类
- 选择代理 → 选择应用 → 选择卡类 → 设置价格
- 修复面包屑导航名称
- 优化预览卡片展示
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-09 19:28:06 +08:00
admin and Claude Opus 4.7
802c36072c
fix: 修复授权页面卡类选项显示空括号问题
...
- 只有当 billing_type 有值时才显示括号内容
- 将"卡类权限"标签改为"选择卡类",更清晰
- 添加 selectCardTypePlaceholder 翻译
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-09 19:22:29 +08:00
admin and Claude Opus 4.7
d10c2ffa77
feat: 优化授权管理添加/编辑页面布局和样式
...
- 添加 i18n 国际化支持,新增 createForm 翻译
- 统一使用 KeyRound 图标作为授权配置标题
- 优化预览卡片,增加已授权卡类列表展示
- 添加 loading 状态和更完善的表单验证
- 统一使用 textarea 组件替代 UiTextarea
- 与版本管理页面布局保持一致
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-09 19:12:25 +08:00
admin
08b4003db8
refactor: 清理多余字段并重新设计个人中心页面
2026-05-08 23:45:11 +08:00
admin
65fa7146e8
refactor: 拆分更新类型(全量/补丁)和更新方式(自动/手动),移除force_update字段
2026-05-08 23:34:14 +08:00
admin
e2ebb6e46e
版本管理全面增强:状态、补丁更新、热更新
...
1. 自动状态管理
- 新增版本自动标记状态:最新版本为'有效',旧版本自动标记为'已失效'
- 前端列表页新增状态列和状态筛选
2. 更新方式升级
- 更新方式从手动/自动改为:手动更新/热更新/完整更新
- 热更新:运行时增量替换文件,无需重启
- 完整更新:下载完整包替换,需重启
3. 补丁更新支持
- 新增 base_version_id 字段支持增量补丁
- 创建版本时可选择基础版本,自动识别为补丁模式
- 补丁模式仅上传变更文件
4. ZIP解析上传(已有功能完善)
- 上传ZIP自动解析文件列表
- 支持选择入口文件
5. 国际化完善
- 中英文新增状态、更新方式等翻译
2026-05-08 16:21:35 +08:00
admin
ee7f58a4dc
fix: add missing viewRecords i18n key for cloudVariables in zh.json
2026-05-08 00:48:03 +08:00
admin
de2c455e79
refactor: improve cloud variable records page with standard DataTable layout
...
- Add statistics cards (total records, variable key, max records, scope)
- Use standard DataTable component with toolbar template
- Add BulkActions component for batch operations
- Add DataTableViewOptions for column visibility control
- Dynamic columns are generated from record data fields
- Add missing i18n keys (totalRecords, maxRecordsLabel, unlimited)
- Match styling with other admin data table pages
2026-05-07 23:40:14 +08:00
admin
c816f4d85c
feat: add comprehensive i18n support across all pages
...
- Add i18n support to admin sidebar, breadcrumbs, and nav-footer
- Add i18n support to admin pages: system-settings, users, versions, risk-control, sessions, cloud-variables, cloud-constants
- Add i18n support to auth pages: login, register
- Add i18n support to install and profile pages
- Add i18n support to agent pages: dashboard, finance, users, apps, cards
- Replace all hard-coded Chinese text with i18n translation keys
- Add comprehensive translation keys to zh.json and en.json
- Fix date formatting to use locale-agnostic toLocaleDateString()
- Pass t function as parameter for i18n in non-component files
2026-05-07 23:06:58 +08:00
admin
f1f2a9dc9d
feat: 云端变量操作菜单添加查看记录入口
...
- stream 类型变量下拉菜单增加「查看记录」选项
- 添加 List 图标导入
- 添加中英文国际化文本
2026-05-07 19:42:37 +08:00
admin
d01e20dfd5
feat: 重构云端变量记录页面,支持动态列和服务端分页
...
- 使用项目 DataTable 组件替换原生 table
- 根据记录数据动态生成表格列
- 支持服务端分页、搜索、日期筛选
- 添加单条/批量删除确认对话框
- 添加路由配置和国际化文本
- 更新 pnpm-lock.yaml 修复 Docker 构建问题
2026-05-07 19:10:25 +08:00
admin
a2eccb9818
feat: 添加代理充值功能到代理管理页面, 移除授权管理页面的无效操作
2026-05-07 01:13:09 +08:00
admin
e7e7631fa5
feat: 授权管理改为设置卡类价格,代理管理增加消费列
2026-05-07 00:28:52 +08:00
admin
ecf5690505
feat: 用户创建充值优化、侧边栏导航修复、在线实例统计修复
2026-05-03 06:07:11 +08:00
admin
fa521de836
chore: 清理最近活动(recentActivities)后端接口和前端翻译
2026-05-03 05:09:35 +08:00
admin
34844870ac
feat: 全球地图、暗黑模式适配、用户总数修复
2026-05-03 05:07:39 +08:00
admin
ea8ffb6c74
fix: 订阅模式登录验证、永久会员类型区分、动态代码HTTP返回值修复、侧边栏滚动位置保持
...
- 修复订阅模式登录时错误检查余额的问题
- 区分无限余额和永久订阅两种永久会员类型
- 修复动态代码HTTP请求返回值在JS中无法正确访问的问题
- 添加侧边栏滚动位置保持功能
- 移除developer角色相关代码,统一使用admin
- 添加缺失的i18n翻译key
2026-05-01 16:39:31 +08:00
admin
416c8c71de
fix: 补充缺失的i18n翻译key(finance.cancel, agentApps.reject/remove等)
2026-05-01 09:00:16 +08:00
admin
ffba49bd77
fix: 合并i18n重复的admin key,修复侧边栏和翻译缺失问题
2026-05-01 08:21:00 +08:00