ex_tianzy da1b4230b9 feat(deploy): add guarded existing-ECS broker migration tooling
Discover the current Compose project and all override files from container
labels. Add read-only preflight plus prepare/check/build/activate/rollback
commands without editing the running .env, CA, database volumes or unrelated
services. Preserve heterogeneous application image identities for rollback.

Prepare a private keyring, independent router credential, pinned source
snapshot and additive connector/router overlay. Refuse key overwrite and
configuration/image drift. Build offline from the exact existing ARM64
runtime, smoke import and validate role settings through stdin-only inputs.
Require explicit v2 client readiness before activation and recreate only
connector/router with --no-deps. Document actual backup/image evidence,
current client limitation and token-lifecycle rollback boundaries.

Validation: 239 passed, 3 skipped (real PostgreSQL absent), 30 existing
dependency deprecation warnings. Add 26 mocked Docker policy tests; host
script parses as Python 3.7, CLI help/docs/diff checks pass. Docker policy
mocks are not actual Compose or ARM64 build validation.

No remote files, keys, credentials, containers or live configuration were
changed. Stage 5 operational acceptance remains pending actual ECS build,
real databases/platform, v2 client, key recovery and controlled rollout.
2026-11-04 12:18:43 +08:00

ECS 中继服务源码快照

新环境部署入口

需要部署服务时,请使用 deployable/README.md,该目录已整理统一源码、完整 Compose、配置模板、首次初始化及运维脚本。下面的快照目录保留原样用于追溯。

离线部署需另行取得 ARM64 依赖包;源码仓库不包含镜像二进制或真实运行凭据。实机验收状态见 部署检查报告。

本仓库保存 2026-10-27 从 ECS 导出的解压后源码,共 316 个原始文件,包括运行容器源码、主机源码、部署参考文件和历史补丁源码。

来源与校验

  • 原始归档:hainuo-ecs-source-20261027-165115-qb1aPw.tar.gz
  • SHA256:ac3bda5b7835b5d9c4be83c64244554e41c4bddcb94b7cf8adec43bf2efe7e9c
  • 上传前在 Windows 本地验证归档 SHA256、路径安全性和文件类型。
  • SOURCE_SHA256SUMS.json 记录 316 个原始文件的 SHA256。
  • 压缩包和外部校验文件没有作为源码提交。

目录说明

路径 内容
container-code/ 从各运行容器中导出的应用源码;服务与镜像信息见 deployed-services.tsv
host-code/ ECS 主机工作目录中的源码,可能与容器内版本不同
deployment-source/ 已安装的脚本、文档、测试及脱敏部署配置
patch-source/ 历史补丁包中的源码;存在于此处不代表全部已部署
patch-inventory.json 历史补丁来源与校验记录

使用范围

这是源码交接快照,不是可直接部署的离线交付包。Compose 中的敏感配置已脱敏;依赖二进制、离线镜像、数据库、运行时配置、证书私钥、设备身份和用户令牌不包含在内。新环境部署需要另行配置应用凭据、域名及证书、数据存储和依赖,并进行业务验收。

本次导入保留原始源码,不合并不同来源的版本,不修改 ECS 服务,也不包含仅安装在 Windows 客户端上的补丁。

上传前检查

敏感文件名及 PEM 私钥标记扫描未发现命中。凭据赋值格式扫描有 6 处命中,人工核对为测试中的 fake-app-secret / fake-secret 示例,不是运行凭据。这些检查不能保证识别所有形式的硬编码敏感信息。

S
Description
No description provided
Readme
1.2 MiB
Languages
Python 95.9%
JavaScript 2.1%
Shell 1.1%
HTML 0.8%