You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
INFO[2023-06-20T12:54:02+08:00] found 'nydus-image' binary at /root/Programs/image-service/target/debug/nydus-image
INFO[2023-06-20T12:54:02+08:00] start to build image from source directory "/usr/bin"
INFO[2023-06-20T12:54:13+08:00] successfully built Nydus image (bootstrap:'build/buildtest.meta', blob:'build/buildtest.blob')
3. Check the encrypted nydus image
Check the encrypted nydus image. An example is blow.
Data blobs add an annotation "containerd.io/snapshot/encrypted-blob" to imply encrypted.
Bootstrap layer using mediatype "application/vnd.oci.image.layer.v1.tar+gzip+encrypted".
nydusify mount \
--target localhost:5000/busybox:nydus-encrypted \
--target-insecure \
--decrypt-keys /tmp/mykey.pem
INFO[2023-06-20T13:13:29+08:00] Parsing image localhost:5000/busybox:nydus-encrypted
INFO[2023-06-20T13:13:29+08:00] trying next host error="failed to do request: Head \"https://localhost:5000/v2/busybox/manifests/nydus-encrypted\": http: server gave HTTP response to HTTPS client" host="localhost:5000"
INFO[2023-06-20T13:13:29+08:00] Parsing image localhost:5000/busybox:nydus-encrypted
INFO[2023-06-20T13:13:29+08:00] Pulling Nydus bootstrap to tmp/nydus_bootstrap
INFO[2023-06-20T13:13:29+08:00] Decrypting Nydus bootstrap layer
decryptKeys {[/tmp/mykey.pem]}
INFO[2023-06-20T13:13:29+08:00] Mounting Nydus image to ./image-fs
INFO[2023-06-20T13:13:29+08:00] Please send signal SIGINT/SIGTERM to umount the file system
# ls image-fs/
bin dev etc home root tmp usr var
# ls image-fs/bin/'[' crond fdformat ifenslave lsof nsenter rmdir strings ubirsvol
'[[' crontab fdisk ifplugd lspci nslookup rmmod stty ubiupdatevol
acpid cryptpw fgconsole ifup lsscsi ntpd route su udhcpc
...
5. Inspect encrypted nydus image
Inspect encrypted nydus image with nydus-image. Encrypted nydus images can be recognized be the RAFS features and cipher tag of the blob info.
1. Changes
2. Build encrypted nydus image
2.1. convert to encrypted nydus image
Convert OCI image to encrypted nydus image by nydusify convert. An example is blow, using jwe to encrypt the nydus bootstrap layer.
2.2. build from directory
Build encrypted nydus image from directory by nydusify build. An example is blow, using jwe to encrypt the nydus bootstrap layer.
3. Check the encrypted nydus image
Check the encrypted nydus image. An example is blow.
check output manifest
Data blobs add an annotation "containerd.io/snapshot/encrypted-blob" to imply encrypted.
Bootstrap layer using mediatype "application/vnd.oci.image.layer.v1.tar+gzip+encrypted".
check output config
4. Mount encrypted nydus image
5. Inspect encrypted nydus image
Inspect encrypted nydus image with nydus-image. Encrypted nydus images can be recognized be the RAFS features and cipher tag of the blob info.
6. Export encrypted nydus image
Export encrypted nydus RAFS filesystem as raw block disk images or tar files with nydus-image. An example is blow.
The text was updated successfully, but these errors were encountered: