ji ruo
07309e4530
feat(deploy,gateway): add dual-edition deployment/migration/rollback and TUN route reconciliation
...
- Add standalone edition (`Dockerfile.standalone`, `docker-compose.standalone.yml`) alongside sandbox edition and publish both in `.github/workflows/release.yml`.
- Implement `scripts/deploy-lib.sh`, `install.sh`, `update.sh`, and `scripts/artex-sandbox-firewall.sh --cleanup` with edition detection, legacy standalone -> sandbox migration (symlink-safe workspace permissions), automatic snapshots with pinned `artex-rollback/*` images + PG dump, auto/manual cross-edition rollback, and post-rollback upstream unpinning.
- Update `ensureWritableDir` in `internal/sandbox/manager.go` to safely migrate nested root-owned workspace files without following symlinks.
- Expose `deploy_edition` in `/api/update/check` and update `UpdateCard` UI/i18n warnings for sandbox vs standalone in-app update/rollback.
- Reconcile `artex-gateway` TUN policy routing (`priority 218`, `raw PREROUTING`, `nat POSTROUTING`, `DOCKER-USER`) every 15s to self-heal after host network rule flushes or bridge changes.
- Add unit and shell tests (`scripts/deploy_test.sh`, `cmd/artex-gateway/tun_linux_test.go`, `internal/sandbox/sandbox_test.go`, `server/update_test.go`) and update `README.md` / `.env.example`.
2026-12-02 13:31:05 +08:00
ji ruo
9ce996ef46
Merge pull request #203 from RuoJi6/RuoJi6/feat/issue-194-memory-limit
...
fix: limit ARTEX container and tool memory use
# Conflicts:
# agent/chat.go
# agent/mainagent.go
# agent/planner.go
2026-11-27 15:57:17 +08:00
ji ruo
ea4377ef9a
fix: cap ARTEX container and tool resource use
2026-11-27 15:20:52 +08:00
ji ruo
257b158528
feat(findings): switch vulnerability merging to direct AI auto-merge
...
- Retire suggest_finding_merge tool and suggested review verdict so Reporter directly merges confirmed duplicate root causes or leaves findings independent without pending manual confirmation cards.
- Add DB ListFindingIDsByTask and CreateAutoFindingCaseReviews plus auto-mode support in POST /api/exploration/finding-case-review without requiring manual finding_ids selection.
- Add idempotent startup migration finding_case_tools_v4_auto_merge to refresh schemas, disable suggest_finding_merge, and obsolete legacy pending suggestions.
- Remove manual suggestion cards from FindingCaseReviewPanel and replace manual selection trigger with one-click AI auto-merge on the Findings page and Task detail Findings tab.
- Update README, CHANGELOG, and agent/db/server tests.
Fixes #189
2026-11-26 00:54:28 +08:00
ji ruo
566c533052
Merge remote-tracking branch 'origin/main' into HEAD
...
# Conflicts:
# CHANGELOG.md
2026-11-23 18:38:26 +08:00
M09Ic and Claude Code
3530b583d3
docs: clarify Autumn-27/ARTEX fork lineage and use www.chainreactors.ai
...
Co-Authored-By: Claude Code <[email protected] >
2026-11-22 02:10:10 +08:00
M09Ic and Claude Code
673c996776
docs: add ChainReactors branding and license notice
...
Co-Authored-By: Claude Code <[email protected] >
2026-11-22 01:54:11 +08:00
ji ruo
4d2c327df7
fix(backup): 加固一键备份与恢复安全性及大包流式传输 ( #160 )
...
- 导出前拒绝存在未暂停的运行中/排队中任务(409 backup_active_tasks + X-Artex-Error-Code),恢复事务内将未完成非暂停任务强制置为手动暂停,防止迁移后自动继续打目标,并同步更新确认文案与 README
- 启动恢复时若文件替换或暂存清理失败,ApplyPendingRestore 返回错误且 main 非零退出,交由守护脚本重试,避免带着新库与半套文件启动业务引擎
- 数据库表导出改为 8 MiB 分片流式写入 tar+zstd 并刷新 HTTP 响应,消除大表落盘临时文件与反代长静默超时;README 补齐 /api/system/backup/ 的 Nginx client_max_body_size 0 与 proxy_request_buffering off 配置
- 暂存新恢复包时先将旧 pending 移走、rename 失败则回滚,避免丢弃已有待恢复包
- 恢复接口返回唯一 restore_id 并写入暂存标记,前端改为精确匹配 restore_id 判断重启恢复完成,消除时钟偏差与旧结果误判
- 补充 Windows->Linux 归档路径改写、活跃任务拦截与恢复自动暂停、多片流式 COPY、文件替换失败快速退出续跑及暂存原子替换测试
2026-11-20 17:00:24 +08:00
ji ruo
c6f7c29b71
feat: 一键备份与迁移 ( #160 )
...
- 系统配置新增「备份与迁移」:下载单个 tar.zst 备份(全部业务表的一致快照、数据目录、流量索引快照、skills)
- 上传恢复:先解包并按当前 schema 校验,通过后重启;启动时数据库单事务整体替换,文件逐项替换且可续做
- 归档包绝对路径改写到新数据目录;本机已有同名 skill 保留本机版本
- 抽出 extractTarZst 供流式解包复用
2026-11-19 23:34:02 +08:00
ji ruo
cc1d84d573
Merge pull request #155 from RuoJi6/mcp-server-implementation
2026-11-14 20:51:24 +08:00
ji ruo
437a28cddc
Merge pull request #138 from RuoJi6/agent/agent/github-10
2026-11-14 20:51:24 +08:00
ji ruo
32d8619d36
Merge pull request #122 from RuoJi6/docs/fix-readme-mistakes
2026-11-14 20:51:23 +08:00
ji ruo
0a0158a4ab
feat(mcp): add a source allowlist for the MCP server endpoint
...
Restrict which source addresses may call /mcp with a list of IPs/CIDRs
(IPv4 and IPv6). The check runs before token authentication, so a source
that is not listed is refused with 403 even when it holds a valid token.
An empty list keeps the previous behaviour (any source).
Behind a reverse proxy the TCP peer is always the proxy, so proxies can be
registered as trusted: for requests from them the client is the rightmost
X-Forwarded-For hop that is not itself a trusted proxy. Without a trusted
proxy the header is ignored, so a caller cannot claim an allowed address.
- A stored configuration that cannot be read or parsed refuses requests
instead of falling back to no restriction.
- The audit log records the resolved client address.
- The settings API reports the address the server sees for the caller.
- The allowlist applies to /mcp only; the web UI and admin API are
unaffected.
Refs RuoJi6/ARTEX#144
2026-11-14 14:32:39 +08:00
RuoJi6
c9b1e240ec
Update README.md
2026-11-14 14:22:43 +08:00
RuoJi6
9b8073a763
Update README.md
2026-11-14 14:22:19 +08:00
RuoJi6
faf4d4fb4a
Update README.md
2026-11-14 14:22:01 +08:00
ji ruo
8cf118e34d
feat(mcp): expose ARTEX as an MCP server for external agents
...
Add a stateless Streamable HTTP endpoint at /mcp that lets external agents
list tasks and findings, create tasks, pause/resume them and add hints.
- Access tokens (api_tokens): scopes (read, task:create, task:control),
optional company restriction, task quotas, expiry, revocation. Only the
SHA-256 is stored; the plaintext is returned once.
- /mcp authenticates with access tokens only. It sits outside the HTTP Basic
Auth gate and rejects Basic credentials and the admin JWT.
- Whitelisted tools only; nothing that edits tools, skills, MCP servers,
workspace files or settings is exposed.
- Every tools/call is audited (mcp_audit_log), refusals included.
- POST /api/tasks and the MCP spawn_task tool now share one creation path.
- Settings card for the switch, token management and the call audit.
- Off by default.
Refs RuoJi6/ARTEX#144
2026-11-14 14:08:07 +08:00
ji ruo
570dc1a14c
fix: expand standard browser user agent pool to twenty samples
2026-11-11 19:21:05 +08:00
ji ruo
171db405dd
fix: select random browser user agents for outbound HTTP
2026-11-11 19:13:38 +08:00
ji ruo
17c2fc5e08
fix: make HTTP user agents configurable and remove tool identifiers
2026-11-11 18:56:33 +08:00
ji ruo
0ff2130f46
fix: recover expired Basic Auth sessions in the current tab
2026-11-10 16:28:23 +08:00
Bhao
e45fa6e7b3
docs(readme): 修复前端构建产物复制命令的目录嵌套问题
2026-11-05 22:04:16 +08:00
RuoJi6
25d7b29b12
Merge pull request #119 from RuoJi6/codex/118-save-egress-probe-url
...
fix: 保存并统一使用自定义 IP 探测服务
2026-11-05 16:37:03 +08:00
ji ruo
4868b1816f
fix: persist custom egress IP probe service ( #118 )
2026-11-05 16:00:07 +08:00
RuoJi6
4586634d80
Update README.md
2026-11-04 13:51:54 +08:00
ji ruo
f053931a1d
fix: require Basic Auth for health checks
2026-11-03 14:56:39 +08:00
ji ruo
5203176364
fix: remove application fingerprints from public responses
2026-11-03 14:48:41 +08:00
ji ruo
bd787f8883
fix: display task intelligence content directly
2026-10-20 11:35:38 +08:00
ji ruo
d70dd15e11
feat: add optional task intelligence recording and views
2026-10-20 11:16:04 +08:00
RuoJi6
4bec88fc7f
Merge pull request #14 from RuoJi6/codex/online-update-proxy
...
feat: 在线更新支持独立可选代理与统一设置界面
2026-10-19 08:43:41 +08:00
ji ruo
9d8598c91b
docs(demo): link to the maintained production demo
2026-10-15 15:57:59 +08:00
RuoJi6
db371be93c
feat(demo): deploy published releases to Vercel ( #15 )
2026-10-15 15:47:03 +08:00
ji ruo
6a3d39e969
feat: add optional proxy for online updates
2026-10-15 15:44:55 +08:00
ji ruo
98321d8262
支持计划任务日期范围
2026-10-09 23:50:05 +08:00
ji ruo
ada09f6c1a
fix(ui): restore original controls and limit folders to merged findings
2026-10-09 13:12:54 +08:00
ji ruo
d36812b7e1
feat(findings): show consolidation across report task and asset views
2026-10-09 12:41:46 +08:00
ji ruo
7db7b71cdb
fix(findings): protect historical reports and verify consolidation results
2026-10-09 12:23:11 +08:00
ji ruo
71ec0f0efd
docs(release): prepare v0.3.16
2026-10-09 11:14:57 +08:00
RuoJi6
e77c3ae9a3
Merge pull request #2 from RuoJi6/codex/finding-folders
...
feat(findings): 同一漏洞重复上报归并与文件夹展示
2026-10-09 11:07:16 +08:00
ji ruo
24d4726aee
feat(findings): consolidate duplicate reports into expandable cases
2026-10-09 10:43:53 +08:00
ji ruo
04c8c54ff8
feat(auth): add optional HTTP Basic Auth access gate
2026-10-09 10:12:27 +08:00
RuoJi6
979e1fe4eb
Update README.md
2026-10-09 09:26:37 +08:00
RuoJi6
735dd61564
Update README.md
2026-10-09 09:26:23 +08:00
ji ruo
a91b27feb7
fix(release): retain upstream version 0.3.15
2026-10-09 09:03:33 +08:00
ji ruo
dfef372b64
feat(release): publish standalone repository and Docker Hub images
2026-10-09 09:01:25 +08:00
ji ruo
714b00cccb
feat(update): publish fork releases for online self-update
2026-10-09 08:45:33 +08:00
Autumn-27
e2c8a23a98
fix(web): SSE 活动流默认同源,修复反代部署连不上 :8787
...
sseUrl() 原先无条件把 SSE 地址拼成 ${hostname}:8787,连生产静态导出
也带这个硬编码。反代到 443 的部署里页面从 https://域名/ 加载,SSE 却被
指向 https://域名:8787/...,而 8787 未对公网开放,导致活动流连不上、反复重连。
改为用 NODE_ENV 区分:生产默认同源(相对路径),仅 next dev 保留 :8787
以绕过 Next.js /api 反代对 SSE 的缓冲。NEXT_PUBLIC_SSE_BASE 覆盖口保留。
验证:NEXT_EXPORT=1 next build 后生产包里 :8787 分支已被 tree-shake。
补充 README 反向代理部署文档(同源说明 + nginx 关缓冲配置)。
Closes #169
2026-10-02 20:10:08 -04:00
Autumn-27
33c26dc72a
fix(intercept): 收紧裁判输出协议,减少 1024 截断导致的 fail-open
...
- 裁判 comment 上限 500→120 汉字,每段一句话、宁短勿长,合规裁决远低于
MaxTokens=1024,基本消除截断(截断会致输出无法解析而按失败策略放行)。
- 硬化「只输出 JSON、不带思考/前言/代码块包裹」,减少非 JSON 前言吃掉 token
预算。保留 实际操作/成功后的后果/命中规则 三段结构,与 ParseVerdict 一致。
- docs(readme): 精简审批详情/上下文模型审查一节。
2026-09-19 10:24:08 -04:00
Autumn-27
9b82b02fe2
docs: 采用 AGPL-3.0 开源协议
2026-09-18 07:47:13 -04:00
Autumn-27
2951e10a4d
docs(readme): 完善许可与免责声明
2026-09-18 07:43:58 -04:00