fix: clarify IMDS reachability error instead of “not an ECS instance” check_is_aliyun_ecs() previously returned a plain bool, causing callers to emit the misleading message “Not a Aliyun ECS instance” when the Aliyun IMDS endpoint (100.100.100.200:80) was simply unreachable (e.g. TCP timeout or connection refused due to a security-group rule or IMDS being disabled). Users mistook this for a machine-type mismatch rather than an IMDS connectivity problem. Changes: check_is_aliyun_ecs() now returns Result<()> and surfaces a specific error message for timeout vs connection-refused cases, mentioning the exact endpoint and suggesting probable causes. cloud_init.rs: propagates the new error with an additional context layer (“Aliyun IMDS is not reachable”) so the log chain is readable. time_sync.rs: updated to match the new API; debug-log now prints the actual IMDS error instead of the generic “not an ECS instance” string.
fix: clarify IMDS reachability error instead of “not an ECS instance”
check_is_aliyun_ecs() previously returned a plain bool, causing callers to emit the misleading message “Not a Aliyun ECS instance” when the Aliyun IMDS endpoint (100.100.100.200:80) was simply unreachable (e.g. TCP timeout or connection refused due to a security-group rule or IMDS being disabled). Users mistook this for a machine-type mismatch rather than an IMDS connectivity problem.
check_is_aliyun_ecs()
Changes:
Result<()>
cloud_init.rs
time_sync.rs
cryptpilot 为机密计算环境提供全面的加密解决方案,保护系统启动完整性和静态数据。
cryptpilot 分为多个专用软件包:
全盘加密 - 加密整个系统磁盘并提供启动完整性保护。
快速开始:
# 加密磁盘镜像 cryptpilot-convert --in ./original.qcow2 --out ./encrypted.qcow2 \ -c ./config_dir/ --rootfs-passphrase MyPassword
📖 完整文档 | 快速开始指南
运行时卷加密 - 在系统运行期间管理加密的数据卷。
# 初始化并打开卷 cryptpilot-crypt init data0 cryptpilot-crypt open data0 mount /dev/mapper/data0 /mnt/data0
静态数据度量工具 - 用于计算和验证静态数据的哈希值。
从最新发布版本下载:
# 用于全盘加密 rpm --install cryptpilot-fde-*.rpm # 用于运行时卷加密 rpm --install cryptpilot-crypt-*.rpm # (可选)主包,用于配置目录 rpm --install cryptpilot-*.rpm
构建 RPM 包:
make create-tarball rpm-build rpm --install /root/rpmbuild/RPMS/x86_64/cryptpilot-*.rpm
或构建 DEB 包:
make create-tarball deb-build dpkg -i /tmp/cryptpilot_*.deb
cryptpilot-convert --in ./source.qcow2 --out ./encrypted.qcow2 \ -c ./config_dir/ --rootfs-passphrase MyPassword
📖 FDE 详细示例
cryptpilot-crypt init data0 cryptpilot-crypt open data0 mount /dev/mapper/data0 /mnt/data0
📖 Crypt 详细示例
Apache-2.0
欢迎贡献!请参阅开发指南。
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
cryptpilot:TEEOS 中操作系统启动和静态数据的机密性保护
cryptpilot 为机密计算环境提供全面的加密解决方案,保护系统启动完整性和静态数据。
项目结构
cryptpilot 分为多个专用软件包:
cryptpilot-fde
全盘加密 - 加密整个系统磁盘并提供启动完整性保护。
快速开始:
📖 完整文档 | 快速开始指南
cryptpilot-crypt
运行时卷加密 - 在系统运行期间管理加密的数据卷。
快速开始:
📖 完整文档 | 快速开始指南
cryptpilot-verity
静态数据度量工具 - 用于计算和验证静态数据的哈希值。
功能特性
安装
从发布版本安装
从最新发布版本下载:
从源码构建
构建 RPM 包:
或构建 DEB 包:
快速示例
加密虚拟机磁盘镜像(FDE)
📖 FDE 详细示例
加密数据卷(Crypt)
📖 Crypt 详细示例
支持的发行版
文档
软件包文档
开发
许可证
Apache-2.0
贡献
欢迎贡献!请参阅开发指南。
参见