-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathcryptpilot.spec
More file actions
588 lines (502 loc) · 25.9 KB
/
cryptpilot.spec
File metadata and controls
588 lines (502 loc) · 25.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
%global debug_package %{nil}
%define release_num 1
Name: cryptpilot
Version: 0.7.0
Release: %{release_num}%{?dist}
Summary: Full-disk encryption and data protection tool for confidential computing
Group: Applications/System
License: Apache-2.0
URL: https://www.alibaba.com
Source0: https://github.com/openanolis/cryptpilot/releases/download/v%{version}/cryptpilot-%{version}-vendored-source.tar.gz
# Shared BuildRequires for all packages
%{!?with_rustup:%global use_system_rust 1}
%if 0%{?use_system_rust}
BuildRequires: cargo >= 1.82.0
BuildRequires: rust >= 1.82.0
%endif
# cmake is required by flatc crate for building FlatBuffers compiler
BuildRequires: cmake
%define dracut_dst %{_prefix}/lib/dracut/modules.d/91cryptpilot/
# Build dependencies (shared across all packages)
BuildRequires: protobuf-compiler
BuildRequires: cryptsetup-devel
BuildRequires: perl-IPC-Cmd
BuildRequires: clang-libs
BuildRequires: clang
BuildRequires: device-mapper-devel
# Runtime dependencies for cryptpilot (main package)
Requires: cryptpilot-fde = %{version}-%{release}
Requires: cryptpilot-crypt = %{version}-%{release}
Requires: cryptpilot-verity = %{version}-%{release}
%description
Cryptpilot is a full-disk encryption utility for protecting data at rest in confidential computing environments.
It provides LUKS2-based encryption for rootfs and data volumes, integrates with dracut for early-boot decryption,
and supports multiple key providers including TPM2, KBS (Key Broker Service), KMS, OIDC, OTP, and custom exec plugins.
Includes tools for disk image conversion (cryptpilot-convert) and enhancement (cryptpilot-enhance).
%package -n cryptpilot-verity
Summary: Integrity measurement tool for directory trees
Group: Applications/System
License: Apache-2.0
# Runtime dependencies for cryptpilot-verity
Requires: fuse3-libs
Requires: fuse3
Obsoletes: cryptpilot < %{version}-%{release}
BuildRequires: fuse3-devel
%description -n cryptpilot-verity
Cryptpilot-verity is an integrity measurement tool for directory trees in confidential computing environments.
%package -n cryptpilot-fde
Summary: Full-disk encryption tooling for system volumes
Group: Applications/System
License: Apache-2.0
# FDE runtime dependencies
Requires: cryptsetup
Requires: cryptsetup-libs
Requires: device-mapper-libs
Requires: kmod
Requires: coreutils
Requires: systemd
Requires: systemd-udev
Requires: dracut
Requires: lvm2
# Used by cryptpilot-convert for disk conversion
Requires: qemu-img
# Used by cryptpilot-enhance for partition manipulation
Requires: util-linux
Requires: veritysetup
# Filesystem tools for volume formatting
# mkfs.vfat
Recommends: dosfstools
# mkfs.xfs
Recommends: xfsprogs
# mkfs.ext4
Recommends: e2fsprogs
# swapon for swap volumes
Requires: util-linux
# virt-customize
Requires: libguestfs-tools-c
# growpart
Requires: cloud-utils-growpart
# If not installed, the kbs keyprovider and AAEL will not work.
Suggests: confidential-data-hub
# If not installed, the kbs keyprovider and AAEL will not work.
Suggests: attestation-agent
Obsoletes: cryptpilot < %{version}-%{release}
%description -n cryptpilot-fde
Cryptpilot-fde provides system disk encryption and boot-time processing for full-disk encryption setups.
Includes cryptpilot-convert for disk image conversion and cryptpilot-enhance for FDE enhancement.
%package -n cryptpilot-crypt
Summary: Data volume encryption tooling
Group: Applications/System
License: Apache-2.0
# Crypt runtime dependencies
Requires: cryptsetup-libs
Requires: device-mapper-libs
Requires: kmod
Requires: coreutils
Requires: systemd
# Filesystem tools for volume formatting
# mkfs.vfat
Recommends: dosfstools
# mkfs.xfs
Recommends: xfsprogs
# mkfs.ext4
Recommends: e2fsprogs
# swapon for swap volumes
Requires: util-linux
# If not installed, the kbs keyprovider will not work.
Recommends: confidential-data-hub
# If not installed, the kbs keyprovider will not work.
Recommends: attestation-agent
Obsoletes: cryptpilot < %{version}-%{release}
%description -n cryptpilot-crypt
Cryptpilot-crypt provides data volume encryption and automatic volume management for confidential computing environments.
%prep
%setup -q -n %{name}-%{version}
%build
# Build cryptpilot-fde
pushd src/cryptpilot-fde/
cargo install --path . --bin cryptpilot-fde --root %{_builddir}/%{name}-%{version}/install/cryptpilot-fde/ --locked --offline
popd
# Build cryptpilot-crypt
pushd src/cryptpilot-crypt/
cargo install --path . --bin cryptpilot-crypt --root %{_builddir}/%{name}-%{version}/install/cryptpilot-crypt/ --locked --offline
popd
# Build cryptpilot-verity
pushd src/cryptpilot-verity/
cargo install --path . --bin cryptpilot-verity --root %{_builddir}/%{name}-%{version}/install/cryptpilot-verity/ --locked --offline
popd
%install
# Install cryptpilot-fde
pushd src/
install -d -p %{buildroot}%{_prefix}/bin
install -p -m 755 %{_builddir}/%{name}-%{version}/install/cryptpilot-fde/bin/cryptpilot-fde %{buildroot}%{_prefix}/bin/cryptpilot-fde
# Install FDE enhancement scripts
install -p -m 755 cryptpilot-convert.sh %{buildroot}%{_prefix}/bin/cryptpilot-convert
install -p -m 755 cryptpilot-enhance.sh %{buildroot}%{_prefix}/bin/cryptpilot-enhance
# Install cryptpilot-crypt
install -p -m 755 %{_builddir}/%{name}-%{version}/install/cryptpilot-crypt/bin/cryptpilot-crypt %{buildroot}%{_prefix}/bin/cryptpilot-crypt
# Install cryptpilot-verity
install -p -m 755 %{_builddir}/%{name}-%{version}/install/cryptpilot-verity/bin/cryptpilot-verity %{buildroot}%{_prefix}/bin/cryptpilot-verity
# Install remain stuffs
rm -rf %{buildroot}%{dracut_dst}
install -d -p %{buildroot}%{dracut_dst}
install -p -m 755 dist/dracut/modules.d/91cryptpilot/module-setup.sh %{buildroot}%{dracut_dst}
install -p -m 755 dist/dracut/modules.d/91cryptpilot/initrd-trigger-network-online.sh %{buildroot}%{dracut_dst}
install -p -m 755 dist/dracut/modules.d/91cryptpilot/initrd-wait-network-online.sh %{buildroot}%{dracut_dst}
install -p -m 644 dist/dracut/modules.d/91cryptpilot/cryptpilot-fde-before-sysroot.service %{buildroot}%{dracut_dst}
install -p -m 644 dist/dracut/modules.d/91cryptpilot/cryptpilot-fde-after-sysroot.service %{buildroot}%{dracut_dst}
install -p -m 644 dist/dracut/modules.d/91cryptpilot/initrd-wait-network-online.service %{buildroot}%{dracut_dst}
install -p -m 644 dist/dracut/modules.d/91cryptpilot/lvm.conf %{buildroot}%{dracut_dst}
install -d -p %{buildroot}%{_prefix}/lib/systemd/system
install -p -m 644 dist/systemd/cryptpilot.service %{buildroot}%{_prefix}/lib/systemd/system/cryptpilot.service
install -d -p %{buildroot}/etc/cryptpilot
install -p -m 600 dist/etc/global.toml.template %{buildroot}/etc/cryptpilot/global.toml.template
install -p -m 600 dist/etc/fde.toml.template %{buildroot}/etc/cryptpilot/fde.toml.template
install -d -p %{buildroot}/etc/cryptpilot/volumes
install -p -m 600 dist/etc/volumes/otp.toml.template %{buildroot}/etc/cryptpilot/volumes/otp.toml.template
install -p -m 600 dist/etc/volumes/kbs.toml.template %{buildroot}/etc/cryptpilot/volumes/kbs.toml.template
install -p -m 600 dist/etc/volumes/kms.toml.template %{buildroot}/etc/cryptpilot/volumes/kms.toml.template
install -p -m 600 dist/etc/volumes/oidc.toml.template %{buildroot}/etc/cryptpilot/volumes/oidc.toml.template
install -p -m 600 dist/etc/volumes/exec.toml.template %{buildroot}/etc/cryptpilot/volumes/exec.toml.template
install -d -p %{buildroot}/usr/share/cryptpilot
install -p -m 644 dist/usr/share/cryptpilot/policy.rego %{buildroot}/usr/share/cryptpilot/policy.rego
install -d -p %{buildroot}/usr/lib/udev/rules.d
install -p -m 644 dist/usr/lib/udev/rules.d/12-cryptpilot-hide-intermediate-devices.rules %{buildroot}/usr/lib/udev/rules.d/12-cryptpilot-hide-intermediate-devices.rules
popd
%clean
rm -rf %{buildroot}
%files
%license src/LICENSE
%files -n cryptpilot-verity
%license src/LICENSE
%{_prefix}/bin/cryptpilot-verity
%files -n cryptpilot-fde
%license src/LICENSE
%{_prefix}/bin/cryptpilot-fde
%{_prefix}/bin/cryptpilot-convert
%{_prefix}/bin/cryptpilot-enhance
# FDE configuration templates
%dir /etc/cryptpilot
/etc/cryptpilot/global.toml.template
/etc/cryptpilot/fde.toml.template
# Dracut integration for FDE boot
%dir %{dracut_dst}
%{dracut_dst}module-setup.sh
%{dracut_dst}initrd-trigger-network-online.sh
%{dracut_dst}initrd-wait-network-online.sh
%{dracut_dst}cryptpilot-fde-before-sysroot.service
%{dracut_dst}cryptpilot-fde-after-sysroot.service
%{dracut_dst}initrd-wait-network-online.service
%{dracut_dst}lvm.conf
# Policy for FDE
%dir /usr/share/cryptpilot
/usr/share/cryptpilot/policy.rego
# Udev rules for device hiding
/usr/lib/udev/rules.d/12-cryptpilot-hide-intermediate-devices.rules
%post -n cryptpilot-fde
# Reload udev rules to apply new device filtering rules
if command -v udevadm >/dev/null 2>&1; then
udevadm control --reload-rules || :
fi
%files -n cryptpilot-crypt
%license src/LICENSE
%{_prefix}/bin/cryptpilot-crypt
# Systemd service for volume management
%{_prefix}/lib/systemd/system/cryptpilot.service
# Volume configuration templates
%dir /etc/cryptpilot/volumes
/etc/cryptpilot/volumes/otp.toml.template
/etc/cryptpilot/volumes/kbs.toml.template
/etc/cryptpilot/volumes/kms.toml.template
/etc/cryptpilot/volumes/oidc.toml.template
/etc/cryptpilot/volumes/exec.toml.template
%post -n cryptpilot-crypt
# Reload systemd manager configuration to pick up new/updated service files
if command -v systemctl >/dev/null 2>&1; then
systemctl daemon-reload || :
fi
%preun -n cryptpilot-crypt
if [ $1 == 0 ]; then #uninstall
systemctl unmask cryptpilot.service
systemctl stop cryptpilot.service
systemctl disable cryptpilot.service
fi
%postun -n cryptpilot-crypt
if [ $1 == 0 ]; then #uninstall
systemctl daemon-reload
systemctl reset-failed
fi
%changelog
* Thu Apr 16 2026 Kun Lai <laikun@linux.alibaba.com> - 0.7.0-1
- fix(disk-persistent): handle dirty COW device in dm-snapshot setup
- ci(test-convert): replace fixed 4-case matrix with 3-dimensional 12-case matrix
- fix(ubuntu): add zram module support for Ubuntu cloud images
- fix(module-setup): add zram and dm-snapshot modules to initramfs
- docs: add pre-push checks for gpgsig and Claude committer identity
- ci: reduce memory and disk usage in test-convert jobs
- docs: add pre-commit check requirements to CLAUDE.md
- fix(nbd): make udev rule reload non-fatal with fallback for container environments
- fix(test): use container_name instead of container_id in QEMU boot test
- ci: fix RPM path handling and add QEMU boot test
- ci: fix artifact download in test-convert job
- ci: fix docker create command for scratch-based test image
- ci: add test image workflow and optimize CI test performance
- fix(ci): increase tmpfs to 20GB for test container
- fix(ci): increase tmpfs size to 10GB for test container
- fix(ci): load nbd module on host before container tests
- fix(ci): skip test gracefully when nbd module unavailable
- fix(ci): resolve test-convert CI failures
- ci: add integration tests for cryptpilot-convert
- docs: add CLAUDE.md with git commit requirements
- docs: reorganize docs/ directory structure
- fix: clarify IMDS reachability error instead of "not an ECS instance"
- docs: fix dm-integrity kernel config option
* Thu Apr 02 2026 Kun Lai <laikun@linux.alibaba.com> - 0.6.0-1
- fix(convert): update essential packages for Debian/Ubuntu rootfs
- rpm: separate SRPM and RPM build steps in buildspec templates
- docs: fix UKI parameter name in quick-start guides
- refactor(kernel): make module loading non-fatal with modprobe detection
- feat(kernel): add kernel module loading helper with static kernel support
- ci: add workflow to build and publish test images to GHCR
- build: add Docker image build support with RPM-based workflow
- docs(fde): add UKI measure-only example and reference value documentation
- build: configure yum for faster parallel downloads
- ci: complete removal of cryptpilot main package from CI artifacts
* Wed Mar 18 2026 Kun Lai <laikun@linux.alibaba.com> - 0.5.0-1
- build: improve version tag detection robustness
- ci: upgrade GitHub Actions to v6/v8 for Node.js 24 compatibility
- build(makefile): update RPM spec Version field during version bump
- ci: add GitHub Release notes generation workflow
- build(makefile): filter stable version tags for changelog generation
- build(rpm): remove cryptpilot main package from build outputs
- build: fix DEB packaging version and add automated version bump targets
- refactor(fde): rename volume and configuration concepts
- docs(cryptpilot-fde): remove deprecated --stage flag from show-reference-value examples
- feat(cryptpilot-fde): add dm-snapshot backend support for writable rootfs
- fix(cryptpilot-convert): correct help text for --rootfs-no-encryption option
- build: preserve uncommitted changes when creating source tarball
- feat(cryptpilot-fde): remove /data directory from encrypted system image and adjust rw_overlay scope
- docs(cryptpilot-fde): enhance boot documentation with UKI/GRUB modes and technical details
* Tue Mar 03 2026 Kun Lai <laikun@linux.alibaba.com> - 0.4.0-1
- feat(fs): replace is_empty_disk with more precise has_valuable_data
- refactor(ci): add multi-arch RPM build with SLSA provenance support
- cryptpilot-enhance: support CRYPTPILOT_ENHANCE_VIRT_CUSTOMIZE_OPTS env var
- spec: add cloud-utils-growpart as dependency for cryptpilot-fde
* Tue Feb 03 2026 Kun Lai <laikun@linux.alibaba.com> - 0.3.4-1
- fix: correct is_empty_disk logic and streamline filesystem creation
- fix: replace makefs_if_empty with force_mkfs for reliable volume initialization
- fix: remove redundant filesystem checks relying on LUKS2 initialization status
- feat: unify volume status reporting with structured enum and description
* Mon Feb 02 2026 Kun Lai <laikun@linux.alibaba.com> - 0.3.3-1
- feat(luks2): implement atomic initialization check with subsystem
* Wed Jan 28 2026 Kun Lai <laikun@linux.alibaba.com> - 0.3.2-1
- fix: gracefully handle NTP time sync failure in boot service
- fix: simplify LVM partition creation to use remaining disk space
- fix(cryptpilot-convert): remove fstab ro mount option modification
- fix(fde): fix wrong logical volume name introduced by 37ecb7b
- fix(cryptpilot-convert): prevent version conflict when user provides custom RPM
- cryptpilot-convert: optimize image conversion with backing file
- cryptpilot-convert: disable LVM auto-activation for system VG
- cryptpilot-convert: auto-detect and use current cryptpilot-fde version
- refactor: adjust rw_overlay configuration behavior and naming
- feat(deb): add standard Debian packaging support
- fix(spec): add libguestfs-tools-c as dependencies of cryptpilot-fde
- fix(spec): correct aa and cdh dependencies of cryptpilot-crypt
- chore: remove unnecessary cryptsetup rpm dependency
- ci(test): fix coreutils conflict on anolisos:23
- ci(test): add runtime dependencies for test execution
- ci: split test workflow for parallel execution
- feat(cryptpilot-convert): mark rootfs as read-only
- fix(convert): avoid "No space left on device" during UKI patching
* Thu Jan 15 2026 Kun Lai <laikun@linux.alibaba.com> - 0.3.1-1
- feat(kbs): support both one-shot and daemon modes for CDH
- refactor(kbs): implement ttrpc client for daemon mode
- fix(blktrace): fix invalid casting on aarch64
- build: migrate CI to native aarch64 runners
- chore: rename source tarball to include vendored-source suffix
- fix(init): add interactive protection and RAII volume management
- fix(mkfs): use blkid -p for better empty disk detection
* Tue Jan 13 2026 Kun Lai <laikun@linux.alibaba.com> - 0.3.0-1
- feat(cryptpilot-crypt): add JSON output and volume filtering to show command
- test: support running integration tests without external binaries
- docs: restructure documentation and add Chinese translations
- refactor: split monolithic package into cryptpilot-fde and cryptpilot-crypt
- refactor(cryptpilot): improve tracing and logging for volume setup and blktrace operations
- build(cryptpilot-verity): split cryptpilot-verity into separate RPM package and improve build/install scripts
- refactor(verity): split verity subcommand into standalone binary cryptpilot-verity
- refactor: change project to rust workspace
* Fri Jan 09 2026 Kun Lai <laikun@linux.alibaba.com> - 0.2.10-1
- fde: Remove the warning print when obtaining the reference value
- fde: support ubuntu GRUB configuration
- fde: improve external disk detection
- dracut: improve cryptpilot initrd module
- cryptpilot-convert: add Debian/Ubuntu system support
- build: add Debian/Ubuntu package building support
- fix(convert): fix boot failure in UKI mode by removing NvVars
- chore(clippy): make cargo clippy happy
- fix(fs): align loop device block size with underlying LUKS2 device
- chore(build): remove support for AnoliOS:8 due to libc dependency on gettid
- refactor: replace cryptsetup CLI calls with libcryptsetup-rs bindings
- chore(build): update Rust toolchain to 1.82.0 and improve build reliability
- feat: add cryptpilot-enhance Secure VM disk image hardening tool
- feat(cryptpilot-convert): skip boot partition creation in UKI mode
- feat: add verity command for data integrity verification
- Make attestation-agent and confidential-data-hub optional Suggests dependencies
- refactor: remove custom aa eventlog entries for config and roothash
- feat(fde): support reference value calculation for UKI boot images
- feat: add --uki-append-cmdline option to customize UKI kernel command line
- refactor(initrd): defer initrd generation and move configs into initrd for UKI support
- feat: add --uki option to generate and boot from Unified Kernel Image
- doc(README.md): upgrade to latest Alinux3 image with updated kernel
- refactor(cmd): add child PID callback hook in command execution
* Tue Nov 11 2025 Kun Lai <laikun@linux.alibaba.com> - 0.2.9-1
- fix(fde): fix panic due to wrong default hash algo
* Fri Oct 31 2025 Kun Lai <laikun@linux.alibaba.com> - 0.2.8-1
- feat(fde): support multiple hash algorithms in show-reference-value (sha1, sha256, sha384, sm3)
- feat(fde): allow show-reference-value to work on non-encrypted disks
- feat(fs): make TmpMountPoint::mount support read-only mode by default
- fix(nbd): wait 1 second after connecting NBD device to ensure partition detection
- fix: set LC_ALL=C before running external commands for consistent output
- build: switch to git clone for source copy in tarball creation
- build: generate ttrpc protocol files in OUT_DIR and clean up attributes
- refactor: fix wrong URL in .proto file
- docs: update AAEL documentation for new tcg2 log format
- reference value: use IETF 4634 compliant hash algorithm names (e.g., SHA-384)
- fde: use --key-file=- consistently to avoid newline issues in LUKS operations
- fde: include both GRUB kernel cmdline variants in reference values
- fde: add CentOS 7 compatibility for boot measurement
- fde: add DM_UDEV_DISABLE_OTHER_RULES_FLAG to hide intermediate cryptpilot devices
- Remove -E option for `file` command in mkfs.rs
- cryptpilot-convert: improve logging for boot partition creation
- boot_service: remove spurious findmnt failure warning during boot
- boot_service: fix LVM resize failures in initramfs with custom lvm.conf
- fde: disable LVM locking in pvresize and lvextend during early boot
* Fri Sep 26 2025 Kun Lai <laikun@linux.alibaba.com> - 0.2.7-1
- fde: auto-expand system PV and data LV on boot
- boot_service: split stage logic into separate modules
- fde: fix path handling in fde mount setup by using path operations
- boot_service: handle OTP-backed data volumes correctly across reboots
- cryptpilot-convert.sh: lock essential packages after install
- fde: hide intermediate device-mapper devices from udev and udisks
- Revert "cryptpilot: add force override root=/dev/mapper/rootfs to cmdline"
- Revert "cryptpilot-convert: force override the mount source for / in /etc/fstab"
- cryptpilot-convert: rename --clean-freed-space to --wipe-freed-space
- dracut: fix in case initrd-root-device.target are missing on some distros e.g. centos 7
- Rewrite file -E to stdout string matching in mkfs.rs
- Rewrite lvcreate --nolocking in mod.rs
- fde: make GPT device detection resilient to command failure
- fde: improve disk mount handling with better error reporting
- dracut: fix network-manager may not exist in centos7
- cryptpilot-convert: suppress ext4 signature warning by forcing LVM creation
- dracut: remove dependency on /usr/lib/systemd/systemd-makefs
- cryptpilot-convert: Add support for network proxy environment variables
- cryptpilot-convert: Be compatible with different e2fsprogs versions
* Mon Sep 15 2025 Kun Lai <laikun@linux.alibaba.com> - 0.2.6-1
- cryptpilot & FDE Enhancements:
* Redirect all logs to stderr for consistent logging behavior
* Fix kernel module loading failures on specific systems
* Resolve race condition where block devices appear after cryptpilot service start
* Add passphrase validation before unlocking encrypted volumes
* Enforce root=/dev/mapper/rootfs in kernel command line via force override
* Fix boot partition detection logic
* Improve network stability during early boot
- cryptpilot-convert Improvements:
* Speed up conversion of large disk images
* Replace yum --installroot with chroot-based package installation
* Add --boot_part_size parameter to customize boot partition size
* Add --rootfs-part-num to set root filesystem partition number
* Enhance EFI and rootfs partition detection based on content inspection
* Fix access failure after partition creation
* Correctly detect default kernel in multi-kernel systems
* Fix encrypted image creation for AnolisOS-23.3-x86_64.qcow2
* Prevent repeated mounting of EFI/boot partitions by adding noauto,nofail to fstab
* Optimize e2fsck execution logic
* Add boot partition pre-check functionality
* Improve compatibility with various disk partition layouts
* Force override / mount source in /etc/fstab
* Add colored logging output for better readability
* Enable support for AnolisOS 23.3 and Alinux3 software installation via yum
- show-reference-value Updates:
* Support SM3 hash algorithm for reference value calculation
* Generate reference values for GRUB, kernel, cmdline, and initrd
* Fix kernel path generation issues
* Support multiple GRUB and shim binaries in /boot
* Suppress noisy mount error messages
* Remove irrelevant print output during command execution
* Fix failure in cleaning up DM devices from NBD instances
* Remove redundant 'tdx' prefix from output
- Container & OverlayFS Fixes:
* Fix "not supported as upperdir" error in Docker
* Resolve "overlay is not supported over overlayfs" error in Podman
- FDE & Configuration Changes:
* Change load_config content format from JSON object to hex hash value
- Infrastructure & Compatibility:
* Add Aliyun IMDS availability check before fetching instance config
* Mon Jul 7 2025 Kun Lai <laikun@linux.alibaba.com> - 0.2.5-5
- fde: sync time to system before call cdh if run in aliyun ecs.
- fde: add timeout fetching config from cloudinit.
* Wed Jul 2 2025 Kun Lai <laikun@linux.alibaba.com> - 0.2.5-4
- Fix "Failed to load kernel module 'nbd'" when used in docker container.
* Mon Jun 30 2025 Kun Lai <laikun@linux.alibaba.com> - 0.2.5-3
- cryptpilot-convert: fix occasional "device or resource busy" error when rootfs encryption is enabled
* Thu Jun 12 2025 Kun Lai <laikun@linux.alibaba.com> - 0.2.5-2
- cryptpilot-convert: fix failed checking free nbd device when no nbd kernel module avaliable
- cryptpilot.spec: add missing requires for file package
- cmd/open: add checking passphrase before open the volume
- fs/nbd.rs: change udev rule path to volatile runtime directory /run/udev/rules.d
* Thu Jun 12 2025 Kun Lai <laikun@linux.alibaba.com> - 0.2.5-1
- Add "cryptpilot config check" command to check if the config is valid
- Add support to specify more than one volume name to open/init/close command
- Remove the "config dump" command
- Change short form of --config-dir from -d to -c
- Add the "fde show-reference-value" and "fde dump-config" command
- Add --rootfs-no-encryption option to cryptpilot-convert to make disk with rootfs volume unencrypted
* Fri May 23 2025 Kun Lai <laikun@linux.alibaba.com> - 0.2.4-1
- Fix broken FDE due to wrong dm-verity kernel module name
* Mon Apr 28 2025 Kun Lai <laikun@linux.alibaba.com> - 0.2.3-1
- Add new key provider plugin type "exec"
- Fix wrong lvm part size in disk image converted by cryptpilot-convert
- Change systemd service in initrd from RequiredBy to WantedBy for weaker dependency
* Tue Apr 15 2025 Kun Lai <laikun@linux.alibaba.com> - 0.2.2-2
- Update source code git hash from c2257859 to ea829279
* Mon Mar 31 2025 Kun Lai <laikun@linux.alibaba.com> - 0.2.2-1
- Fix TLS support in dracut initrd
- Add RUST_LOG environment variable to control log level
- Fix udev env SYSTEMD_READY=0 when integrity is on
* Mon Mar 3 2025 Kun Lai <laikun@linux.alibaba.com> - 0.2.1-1
- Add OIDC key provider Plugin
- Fix path of confidential-data-hub
- Fix failed to launch containers due to overlayfs
- Not install attestation-agent as dependency unless user install it
* Wed Feb 26 2025 Kun Lai <laikun@linux.alibaba.com> - 0.2.0-1
- RPM Build Improvements:
* Add cryptpilot-convert to RPM package
* Fix RPM build in Docker environments without TTY
* Separate cargo configuration from .spec file
* Add static binary build support
* Update dependency names for aa and cdh
- Feature Enhancements:
* Add OIDC Key Provider Plugin (contributed by xynnn007)
* Support configuration loading from cloud-init
* Add runtime measurement based on AAEL
* Implement dynamic log level adjustment (switch to tracing framework)
- Service Optimizations:
* Optimize automatic decryption flow during initrd stage
* Fix systemd service dependencies
* Add emergency shell fallback for boot failures
* Improve console logging output
- Security Improvements:
* Omit sensitive information in logs
* Enforce verification of /sysroot mount source
* Add timeout handling for KBS client
- Documentation & CI:
* Add CI and license badges to README
* Implement GitHub Actions RPM build workflow
* Fix missing LICENSE file inclusion
- Bug Fixes:
* Fix grub2-mkconfig failures under overlayfs
* Resolve device busy issues during conversion
* Fix builds on stable Rust versions
* Correct Alibaba Cloud Linux 3 UEFI conversion issues
* Mon Oct 28 2024 Kun Lai <laikun@linux.alibaba.com> - 0.1.0-1
- Initial package release.