xiangning
|
caf3c17fce
|
fix(cicd): push_retry 加 timeout 60s 包裹,自动处理跨地域 push 死锁
问题:跨地域推 Harbor 时 docker push 推大 layer TCP 死锁,
命令 hang 住不退出,push_retry 永远等不到重试触发。
修复:
- 每次 docker push 用 timeout 60 包裹,超 60s 强制杀掉 CLI(断点续传)
- 重试次数 10→15,给更多断点续传机会
- 被 timeout 杀掉后返回非零,自动进入下一次重试循环
|
2026-07-17 15:42:36 +08:00 |
|
xiangning
|
26a7443cd7
|
fix(cicd): GenericTrigger 参数名 genericToken→token(修复编译错误)
|
2026-07-17 14:48:44 +08:00 |
|
xiangning
|
61e106415b
|
feat(cicd): 接入自动触发 + docker compose 部署
- Jenkinsfile: 加 GenericTrigger(token=buildflow-api),Gitea push 自动触发构建
- Jenkinsfile: 部署 stage 改 docker compose(原 docker run),去 try/catch 吞异常
- Jenkinsfile: HealthCheck 改轮询(最多60s),失败标 unstable 不再静默
- .dockerignore: 排除 appsettings.Secrets.json + bin/obj,防止密钥进镜像
链路:Gitea push → generic-webhook-trigger → Jenkins build → Harbor → cd-target compose up
|
2026-07-17 14:45:46 +08:00 |
|
xiangning
|
2489b33270
|
fix(cicd): push 重试每次重新 login,修复 Harbor auth session 过期
重试多次后报 'no basic auth credentials'(docker login session 过期)。
改成 push_retry 函数:每次 push 前重新 docker login,组合成原子重试单元。
重试次数提到 10 次。
|
2026-07-17 14:30:57 +08:00 |
|
xiangning
|
efa9f1d489
|
fix(cicd): docker push 加重试循环(8次),应对跨地域网络断流
devops→middleware push 大 blob 反复 use of closed network connection。
docker push 支持断点续传,重试时已传层跳过,多次后最终传完。
|
2026-07-17 14:07:07 +08:00 |
|
xiangning
|
598e2a3b25
|
fix(cicd): 部署 stage 加远程 docker login Harbor
与 portal 同款修复:Harbor 私有仓库 cd-target pull 需先登录。
withCredentials 拿 harbor-credentials,ssh 传到远程执行
docker login(stdin 传密码,不进 history)。
|
2026-07-17 11:46:33 +08:00 |
|
xiangning
|
8345c478c8
|
fix(cicd): 部署 SSH 用 IP 直连 + sudo docker
实测 Jenkins 容器内无 cd-target ssh 别名(/root/.ssh/config 不存在),
且 cd-target 的 ubuntu 用户 docker 需 sudo(NOPASSWD 已配)。
- DEPLOY_HOST: cd-target → ubuntu@110.42.240.10
- 远程命令: docker → sudo docker
|
2026-07-17 11:36:06 +08:00 |
|
xiangning
|
aab0db2b68
|
fix(cicd): api 流水线 - 移除飞书通知(凭证缺失) + 部署改 SSH 直连 cd-target
- 移除 feishuNotify 闭包与 environment 中的 feishu-* credentials 绑定
(凭证未在 Jenkins 配置,导致构建启动即 FAIL)
- 部署 stage: node(deploy-agent) → ssh cd-target 执行 docker pull/run
(无 deploy-agent agent 节点)
- 新增 HealthCheck stage(try/catch 不阻塞)
- 清除硬编码 webhook URL 明文
|
2026-07-17 11:22:09 +08:00 |
|
xiangning
|
5239e59b4e
|
fix(security): 修复端点权限缺失问题并加强系统安全防护
- 移除所有 RAG 相关端点的 AllowAnonymous,添加细粒度权限控制
- 配置全局默认授权策略,防止新端点意外公开
- 为 AI 模型、文档、对话、知识库等资源分配读写权限
- 强化 JWT 令牌验证,开启 Issuer/Audience 校验
- 修复脚本执行服务沙箱配置,增强 API 黑名单过滤
- 添加飞书通知凭证环境变量配置,移除硬编码敏感信息
- 完善验证行为逻辑,优化性能和异常处理
- 新增监控模块告警规则实体及相关配置
- 实现外部系统连接器契约和凭证解析服务
|
2026-07-17 10:06:22 +08:00 |
|
xiangning
|
1fa0b85ad8
|
fix: clean Jenkinsfile (single-quote sh blocks)
|
2026-07-03 18:12:30 +08:00 |
|
xiangning
|
3b4075360d
|
fix: clean Jenkinsfile (single-quote sh blocks)
|
2026-07-03 17:37:03 +08:00 |
|
xiangning
|
27daae8257
|
fix Jenkinsfile escape-free
|
2026-07-03 17:31:03 +08:00 |
|
xiangning
|
3765a77b05
|
fix: rewrite Jenkinsfile (proper escaping + feishu card)
|
2026-07-03 17:20:10 +08:00 |
|
xiangning
|
0da78f209a
|
fix: remove timestamps
|
2026-07-03 17:15:45 +08:00 |
|
xiangning
|
7310eb2ab0
|
fix: correct package emoji (clean)
|
2026-07-03 17:10:52 +08:00 |
|
xiangning
|
b166fbf6ba
|
fix: correct package emoji encoding
|
2026-07-03 17:10:20 +08:00 |
|
xiangning
|
c95b35091d
|
refactor: CI/CD pipeline with stages + feishu card notification (api)
|
2026-07-03 17:09:00 +08:00 |
|
xiangning
|
ab6c6829c6
|
ci: add Jenkinsfile (build+push Harbor)
|
2026-07-02 13:51:07 +08:00 |
|