mirror of
				https://github.com/kairos-io/kcrypt.git
				synced 2025-11-04 11:45:31 +00:00 
			
		
		
		
	Compare commits
	
		
			407 Commits
		
	
	
		
			v0.6.0-rc1
			...
			v0.11.3
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					2bc901ed2c | ||
| 
						 | 
					1477b07170 | ||
| 
						 | 
					80f513aa3a | ||
| 
						 | 
					6caa347c8b | ||
| 
						 | 
					dce938efa6 | ||
| 
						 | 
					cfdabdacff | ||
| 
						 | 
					95f16f3505 | ||
| 
						 | 
					b4267e76f8 | ||
| 
						 | 
					1b169727c6 | ||
| 
						 | 
					7ed4425bb4 | ||
| 
						 | 
					d258183111 | ||
| 
						 | 
					74e916632f | ||
| 
						 | 
					b1e16767b3 | ||
| 
						 | 
					65dcc63c3c | ||
| 
						 | 
					e810d85f29 | ||
| 
						 | 
					5f5898b971 | ||
| 
						 | 
					202fbba1e3 | ||
| 
						 | 
					a2d6c7583d | ||
| 
						 | 
					3821821601 | ||
| 
						 | 
					017e46eafe | ||
| 
						 | 
					92af3af44f | ||
| 
						 | 
					d0b0929d58 | ||
| 
						 | 
					a21e7038f6 | ||
| 
						 | 
					f7f97ce7e8 | ||
| 
						 | 
					f1bacad95f | ||
| 
						 | 
					071181e578 | ||
| 
						 | 
					46fd0f28f0 | ||
| 
						 | 
					9773d5ce7e | ||
| 
						 | 
					ef5ef8e495 | ||
| 
						 | 
					ad07ced68b | ||
| 
						 | 
					418027453d | ||
| 
						 | 
					efa923ba4d | ||
| 
						 | 
					56cb05bcb2 | ||
| 
						 | 
					14a8e3b6d2 | ||
| 
						 | 
					621bb0cc81 | ||
| 
						 | 
					94cf1ea554 | ||
| 
						 | 
					e2f8949178 | ||
| 
						 | 
					ea5fc7351a | ||
| 
						 | 
					3655d3d81e | ||
| 
						 | 
					df7ccef01b | ||
| 
						 | 
					b6122a4949 | ||
| 
						 | 
					3f138babd4 | ||
| 
						 | 
					8c331b08f0 | ||
| 
						 | 
					9fbd62e6c4 | ||
| 
						 | 
					6f6b1cea7d | ||
| 
						 | 
					3e4b1b83d6 | ||
| 
						 | 
					8c92f897df | ||
| 
						 | 
					9100b32875 | ||
| 
						 | 
					f57869c3a6 | ||
| 
						 | 
					78a19e7f7b | ||
| 
						 | 
					9a8fa01609 | ||
| 
						 | 
					390e0eea96 | ||
| 
						 | 
					cac22b202c | ||
| 
						 | 
					a3b289c5db | ||
| 
						 | 
					c46c8ca535 | ||
| 
						 | 
					3ab7486ab1 | ||
| 
						 | 
					636849ec58 | ||
| 
						 | 
					b8b9d29470 | ||
| 
						 | 
					27fb6f9d25 | ||
| 
						 | 
					9cfe9efb67 | ||
| 
						 | 
					568c15a297 | ||
| 
						 | 
					163b8719e2 | ||
| 
						 | 
					dffd359a23 | ||
| 
						 | 
					a0e1ae1e03 | ||
| 
						 | 
					44267e4c1a | ||
| 
						 | 
					3ee6086b4a | ||
| 
						 | 
					a9090633a6 | ||
| 
						 | 
					ead1b43410 | ||
| 
						 | 
					b9dcb70206 | ||
| 
						 | 
					196ade32a1 | ||
| 
						 | 
					5a8eefde7a | ||
| 
						 | 
					ad59eacc41 | ||
| 
						 | 
					60a9f0dde6 | ||
| 
						 | 
					1bf6e020a6 | ||
| 
						 | 
					05831b7801 | ||
| 
						 | 
					08120e338d | ||
| 
						 | 
					8948b42fbf | ||
| 
						 | 
					3d19444a33 | ||
| 
						 | 
					c6da1b94d7 | ||
| 
						 | 
					96adb2ec02 | ||
| 
						 | 
					a9a8cb1bc3 | ||
| 
						 | 
					716a5762bd | ||
| 
						 | 
					9202412327 | ||
| 
						 | 
					3943784517 | ||
| 
						 | 
					a6ec42e638 | ||
| 
						 | 
					dc0a97cab2 | ||
| 
						 | 
					74a54e6b7b | ||
| 
						 | 
					aa72c64aa0 | ||
| 
						 | 
					ac5454d1db | ||
| 
						 | 
					abc50af75b | ||
| 
						 | 
					34d2ef3d60 | ||
| 
						 | 
					cd1a2ce2c3 | ||
| 
						 | 
					27b19db531 | ||
| 
						 | 
					1d16082bb3 | ||
| 
						 | 
					665d2476f1 | ||
| 
						 | 
					f21949e6f0 | ||
| 
						 | 
					ade6879a59 | ||
| 
						 | 
					702f654c7f | ||
| 
						 | 
					6a4f4fe65a | ||
| 
						 | 
					dbe447d91d | ||
| 
						 | 
					5d097165d6 | ||
| 
						 | 
					9a46533e4b | ||
| 
						 | 
					cc1db9bf60 | ||
| 
						 | 
					87b27681c1 | ||
| 
						 | 
					ca2344ff74 | ||
| 
						 | 
					9b76de34b2 | ||
| 
						 | 
					cb9d9b7554 | ||
| 
						 | 
					f140f2bf3c | ||
| 
						 | 
					29e50be08a | ||
| 
						 | 
					4c385dff51 | ||
| 
						 | 
					7a30b822e6 | ||
| 
						 | 
					2d34fe8dfc | ||
| 
						 | 
					8af964f0d9 | ||
| 
						 | 
					d44bd725b4 | ||
| 
						 | 
					7e771c1ec0 | ||
| 
						 | 
					8b686a01f2 | ||
| 
						 | 
					8b67536447 | ||
| 
						 | 
					18c36ff2b8 | ||
| 
						 | 
					d1f62913a3 | ||
| 
						 | 
					3b27c0cf0f | ||
| 
						 | 
					2a45a76b75 | ||
| 
						 | 
					f09a1b1586 | ||
| 
						 | 
					87cca84f73 | ||
| 
						 | 
					26bd797c8e | ||
| 
						 | 
					fc92e3ada0 | ||
| 
						 | 
					0acdcd2961 | ||
| 
						 | 
					51d35a8d74 | ||
| 
						 | 
					e36b3214b1 | ||
| 
						 | 
					a6a726cb81 | ||
| 
						 | 
					2d975678a1 | ||
| 
						 | 
					1108b9a0fe | ||
| 
						 | 
					bce5b5ac83 | ||
| 
						 | 
					c5cd4b8888 | ||
| 
						 | 
					25495b4020 | ||
| 
						 | 
					df3d993f12 | ||
| 
						 | 
					6cdb39d1a8 | ||
| 
						 | 
					ecd6f90d25 | ||
| 
						 | 
					045b47a03d | ||
| 
						 | 
					656a230703 | ||
| 
						 | 
					f41b8f1f7c | ||
| 
						 | 
					dc84f1ca56 | ||
| 
						 | 
					c6b4b9db15 | ||
| 
						 | 
					d5f27f3d9a | ||
| 
						 | 
					797bc036a9 | ||
| 
						 | 
					7ff584df45 | ||
| 
						 | 
					0bb29cc24c | ||
| 
						 | 
					0cf1689002 | ||
| 
						 | 
					0c5045f549 | ||
| 
						 | 
					4389405c3f | ||
| 
						 | 
					7d315ad54e | ||
| 
						 | 
					bae6e98edd | ||
| 
						 | 
					7db0e8e717 | ||
| 
						 | 
					cceea2a341 | ||
| 
						 | 
					fbc19a2a95 | ||
| 
						 | 
					4320354a78 | ||
| 
						 | 
					a9a08af5ab | ||
| 
						 | 
					1624151063 | ||
| 
						 | 
					e78da597e1 | ||
| 
						 | 
					1ad0f242b7 | ||
| 
						 | 
					7c4583780a | ||
| 
						 | 
					7faf1ae94a | ||
| 
						 | 
					d0740add63 | ||
| 
						 | 
					c68e5f3f76 | ||
| 
						 | 
					3b3bdabf70 | ||
| 
						 | 
					31558d9128 | ||
| 
						 | 
					9884b49a9d | ||
| 
						 | 
					f3b0635379 | ||
| 
						 | 
					cfe34ac388 | ||
| 
						 | 
					55b1ed2eb4 | ||
| 
						 | 
					1042d4c001 | ||
| 
						 | 
					2030ed222d | ||
| 
						 | 
					368242a6f0 | ||
| 
						 | 
					0acf453eca | ||
| 
						 | 
					486cae29dd | ||
| 
						 | 
					02c10e32de | ||
| 
						 | 
					9eebed0a91 | ||
| 
						 | 
					fe2be4effc | ||
| 
						 | 
					bca9b0a345 | ||
| 
						 | 
					c6c0710a25 | ||
| 
						 | 
					e10a327d4e | ||
| 
						 | 
					d4b2b29f14 | ||
| 
						 | 
					c9e074d5df | ||
| 
						 | 
					49ddbac460 | ||
| 
						 | 
					23f2d5d54f | ||
| 
						 | 
					d4c06b7714 | ||
| 
						 | 
					ca905f822e | ||
| 
						 | 
					cf952d311e | ||
| 
						 | 
					42cdd0d592 | ||
| 
						 | 
					6f306a45db | ||
| 
						 | 
					09a0e6d646 | ||
| 
						 | 
					53be282549 | ||
| 
						 | 
					82db8535dc | ||
| 
						 | 
					c2601791ab | ||
| 
						 | 
					3830154c22 | ||
| 
						 | 
					e248e8978d | ||
| 
						 | 
					3c6d1cd182 | ||
| 
						 | 
					7e997539a5 | ||
| 
						 | 
					83b5e26e77 | ||
| 
						 | 
					65fa1ddbc1 | ||
| 
						 | 
					a0bdec1449 | ||
| 
						 | 
					2ee270841a | ||
| 
						 | 
					c68ea37c8e | ||
| 
						 | 
					5ab4cce24f | ||
| 
						 | 
					934793f849 | ||
| 
						 | 
					e251508b3f | ||
| 
						 | 
					d574f8fc4d | ||
| 
						 | 
					472eb01daf | ||
| 
						 | 
					fa461901d5 | ||
| 
						 | 
					68eddb8e8c | ||
| 
						 | 
					253581a585 | ||
| 
						 | 
					ddf2c8c037 | ||
| 
						 | 
					159e9430ee | ||
| 
						 | 
					d1d3b23e13 | ||
| 
						 | 
					e0b528ada0 | ||
| 
						 | 
					2a804251a5 | ||
| 
						 | 
					fe2b6140d8 | ||
| 
						 | 
					b5fafef294 | ||
| 
						 | 
					eabd9e852b | ||
| 
						 | 
					d786ed31dd | ||
| 
						 | 
					91025d3aeb | ||
| 
						 | 
					4d161a412b | ||
| 
						 | 
					553f2df732 | ||
| 
						 | 
					8933ef6e01 | ||
| 
						 | 
					d5dc80cf00 | ||
| 
						 | 
					673f4196b8 | ||
| 
						 | 
					b7181d030d | ||
| 
						 | 
					3158e8d62c | ||
| 
						 | 
					acdd04d0d2 | ||
| 
						 | 
					610a6e9ae2 | ||
| 
						 | 
					b64999381a | ||
| 
						 | 
					1f56920306 | ||
| 
						 | 
					d0d2070639 | ||
| 
						 | 
					1992c592d2 | ||
| 
						 | 
					1c40e856be | ||
| 
						 | 
					addb916399 | ||
| 
						 | 
					90d5e97250 | ||
| 
						 | 
					9ba71b9f9b | ||
| 
						 | 
					db4ec870cc | ||
| 
						 | 
					366b9a19fa | ||
| 
						 | 
					cf13ebcec0 | ||
| 
						 | 
					c6627fa14c | ||
| 
						 | 
					6b910df87c | ||
| 
						 | 
					61c969abb9 | ||
| 
						 | 
					94cc420d93 | ||
| 
						 | 
					76591acb25 | ||
| 
						 | 
					267cea1a9f | ||
| 
						 | 
					4d96d37426 | ||
| 
						 | 
					aa8abe9463 | ||
| 
						 | 
					7087a730fe | ||
| 
						 | 
					cf7a8857b0 | ||
| 
						 | 
					d5390af1bb | ||
| 
						 | 
					0bc3a02b7b | ||
| 
						 | 
					cd5634f917 | ||
| 
						 | 
					b6846a3c90 | ||
| 
						 | 
					4275b2a27a | ||
| 
						 | 
					444c87b32b | ||
| 
						 | 
					a78d7b2113 | ||
| 
						 | 
					195dc1f18b | ||
| 
						 | 
					66ec298f59 | ||
| 
						 | 
					bb0cb6dadc | ||
| 
						 | 
					5cf0f7912b | ||
| 
						 | 
					90bfb2723b | ||
| 
						 | 
					267ec5fa74 | ||
| 
						 | 
					18adfbfc1f | ||
| 
						 | 
					e626fad723 | ||
| 
						 | 
					1f6a2d2669 | ||
| 
						 | 
					76f4b98a4e | ||
| 
						 | 
					f9ab46a70a | ||
| 
						 | 
					02a925beb8 | ||
| 
						 | 
					3e9dbb0317 | ||
| 
						 | 
					c195337d82 | ||
| 
						 | 
					59e0b4bcce | ||
| 
						 | 
					a56e6aa6e7 | ||
| 
						 | 
					ffb63a9075 | ||
| 
						 | 
					b5eb2a7c55 | ||
| 
						 | 
					fbdcffb4b6 | ||
| 
						 | 
					f1b32ad05b | ||
| 
						 | 
					b2fd9e9d4a | ||
| 
						 | 
					c8a30a69ea | ||
| 
						 | 
					9b23c26413 | ||
| 
						 | 
					138ecfd4c5 | ||
| 
						 | 
					638fb18d9f | ||
| 
						 | 
					d182f29f07 | ||
| 
						 | 
					48d7743914 | ||
| 
						 | 
					44d55fff78 | ||
| 
						 | 
					e574701e71 | ||
| 
						 | 
					d9a2c6fb55 | ||
| 
						 | 
					ce7a6720f8 | ||
| 
						 | 
					90b3efca27 | ||
| 
						 | 
					b2a1b1c2ee | ||
| 
						 | 
					bb3a5006cd | ||
| 
						 | 
					751341ab03 | ||
| 
						 | 
					6d7f2cc9de | ||
| 
						 | 
					72b1e62f9a | ||
| 
						 | 
					0745dd6531 | ||
| 
						 | 
					ae0abff461 | ||
| 
						 | 
					df3feb702f | ||
| 
						 | 
					3185f198ec | ||
| 
						 | 
					150619dcdd | ||
| 
						 | 
					32eecc9d0b | ||
| 
						 | 
					ac6f20126e | ||
| 
						 | 
					53a64a3005 | ||
| 
						 | 
					3b2cb3250f | ||
| 
						 | 
					84e36d760d | ||
| 
						 | 
					857c709345 | ||
| 
						 | 
					9a6cad0867 | ||
| 
						 | 
					d292537001 | ||
| 
						 | 
					7413819474 | ||
| 
						 | 
					a0f8399015 | ||
| 
						 | 
					599bbcef16 | ||
| 
						 | 
					5274499e1a | ||
| 
						 | 
					a2f7baa39a | ||
| 
						 | 
					8fd1f6cb77 | ||
| 
						 | 
					365d0538fb | ||
| 
						 | 
					a3f367f3aa | ||
| 
						 | 
					8617a8c14a | ||
| 
						 | 
					46aa6fba45 | ||
| 
						 | 
					baf3fa7c83 | ||
| 
						 | 
					88d8065808 | ||
| 
						 | 
					e380ce1304 | ||
| 
						 | 
					0393598788 | ||
| 
						 | 
					ac277a494c | ||
| 
						 | 
					2639bc8824 | ||
| 
						 | 
					7060177e65 | ||
| 
						 | 
					98ac6337a2 | ||
| 
						 | 
					7878a9cce3 | ||
| 
						 | 
					e059b73630 | ||
| 
						 | 
					b8c08721c4 | ||
| 
						 | 
					e136f34adc | ||
| 
						 | 
					64a7bfceb6 | ||
| 
						 | 
					bbee8a854c | ||
| 
						 | 
					2870428fe1 | ||
| 
						 | 
					b1e5a5e216 | ||
| 
						 | 
					8ba74d9b71 | ||
| 
						 | 
					ed614fe9db | ||
| 
						 | 
					087f75d1a7 | ||
| 
						 | 
					ab6ca18ebc | ||
| 
						 | 
					72a6cc004d | ||
| 
						 | 
					70067c9e5b | ||
| 
						 | 
					b21bf0c967 | ||
| 
						 | 
					3828d4261f | ||
| 
						 | 
					441c68dc2e | ||
| 
						 | 
					0d953c48c7 | ||
| 
						 | 
					11e87b839c | ||
| 
						 | 
					e18aa51c47 | ||
| 
						 | 
					66d8bd752d | ||
| 
						 | 
					c0fa3e5690 | ||
| 
						 | 
					6ea10abdc5 | ||
| 
						 | 
					679bd88e7a | ||
| 
						 | 
					e2a5d3b2e9 | ||
| 
						 | 
					9a533c82ed | ||
| 
						 | 
					37e601bf9e | ||
| 
						 | 
					4bac3eae50 | ||
| 
						 | 
					74130c3a90 | ||
| 
						 | 
					694a62be4b | ||
| 
						 | 
					efa40fd4aa | ||
| 
						 | 
					085e05c9e8 | ||
| 
						 | 
					693d13a1a1 | ||
| 
						 | 
					8c7e67cf22 | ||
| 
						 | 
					ebed6d3c47 | ||
| 
						 | 
					fdd32a17fd | ||
| 
						 | 
					8c7c1a2a37 | ||
| 
						 | 
					448860b21a | ||
| 
						 | 
					05628aef6d | ||
| 
						 | 
					d8eafb6833 | ||
| 
						 | 
					fd707b8535 | ||
| 
						 | 
					4715d081ec | ||
| 
						 | 
					6b1652b8fa | ||
| 
						 | 
					7fe64d4fce | ||
| 
						 | 
					fcf834a5b0 | ||
| 
						 | 
					98c0620d40 | ||
| 
						 | 
					366724e0cb | ||
| 
						 | 
					d6c3e42b43 | ||
| 
						 | 
					ee419393cd | ||
| 
						 | 
					7cf3646606 | ||
| 
						 | 
					8d52ffab85 | ||
| 
						 | 
					96d9945ef9 | ||
| 
						 | 
					fc40b9d37c | ||
| 
						 | 
					27e8a5f08e | ||
| 
						 | 
					b9c4f3eeb3 | ||
| 
						 | 
					c2ec37b806 | ||
| 
						 | 
					f4a8e271ce | ||
| 
						 | 
					0c35c9ab48 | ||
| 
						 | 
					b379c81210 | ||
| 
						 | 
					0b5165aca1 | ||
| 
						 | 
					3df9b60f11 | ||
| 
						 | 
					99c1c93d26 | ||
| 
						 | 
					12a8d5d33c | ||
| 
						 | 
					ce877a2a7f | ||
| 
						 | 
					554e350fb7 | ||
| 
						 | 
					e86d8e5595 | ||
| 
						 | 
					42e451494d | ||
| 
						 | 
					94af8c8dd3 | ||
| 
						 | 
					e73e33b26d | ||
| 
						 | 
					e43da08f2d | ||
| 
						 | 
					365f16e8f1 | ||
| 
						 | 
					4ec8386ac8 | ||
| 
						 | 
					20547f93a2 | ||
| 
						 | 
					864ff80b53 | ||
| 
						 | 
					bdde2df13a | ||
| 
						 | 
					166b8802ea | ||
| 
						 | 
					3a0c3f0bae | ||
| 
						 | 
					16ec663748 | ||
| 
						 | 
					59ed3da68d | ||
| 
						 | 
					c08c563658 | ||
| 
						 | 
					47e7f67e04 | ||
| 
						 | 
					a312a2ecd8 | 
							
								
								
									
										12
									
								
								.github/ISSUE_TEMPLATE/file-issues-on-main-kairos-repo.md
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								.github/ISSUE_TEMPLATE/file-issues-on-main-kairos-repo.md
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
---
 | 
			
		||||
name: File issues on main Kairos repo
 | 
			
		||||
about: Tell users to file their issues on the main Kairos repo
 | 
			
		||||
title: ''
 | 
			
		||||
labels: ''
 | 
			
		||||
assignees: ''
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
:warning: All Kairos issues are tracked in our main repo, please file your issue there, thanks! :warning:
 | 
			
		||||
 | 
			
		||||
https://github.com/kairos-io/kairos/issues
 | 
			
		||||
							
								
								
									
										42
									
								
								.github/workflows/dependabot_auto.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								.github/workflows/dependabot_auto.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,42 @@
 | 
			
		||||
name: Dependabot auto-merge
 | 
			
		||||
on:
 | 
			
		||||
- pull_request_target
 | 
			
		||||
 | 
			
		||||
permissions:
 | 
			
		||||
  contents: write
 | 
			
		||||
  pull-requests: write
 | 
			
		||||
  packages: read
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  dependabot:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    if: ${{ github.actor == 'dependabot[bot]' }}
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Dependabot metadata
 | 
			
		||||
        id: metadata
 | 
			
		||||
        uses: dependabot/fetch-metadata@v2.1.0
 | 
			
		||||
        with:
 | 
			
		||||
          github-token: "${{ secrets.GITHUB_TOKEN }}"
 | 
			
		||||
          skip-commit-verification: true
 | 
			
		||||
 | 
			
		||||
      - name: Checkout repository
 | 
			
		||||
        uses: actions/checkout@v4
 | 
			
		||||
 | 
			
		||||
      - name: Approve a PR if not already approved
 | 
			
		||||
        run: |
 | 
			
		||||
          gh pr checkout "$PR_URL"
 | 
			
		||||
            if [ "$(gh pr status --json reviewDecision -q .currentBranch.reviewDecision)" != "APPROVED" ];
 | 
			
		||||
          then
 | 
			
		||||
            gh pr review --approve "$PR_URL"
 | 
			
		||||
          else
 | 
			
		||||
            echo "PR already approved.";
 | 
			
		||||
          fi
 | 
			
		||||
        env:
 | 
			
		||||
          PR_URL: ${{github.event.pull_request.html_url}}
 | 
			
		||||
          GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
 | 
			
		||||
 | 
			
		||||
      - name: Enable auto-merge for Dependabot PRs
 | 
			
		||||
        run: gh pr merge --auto --squash "$PR_URL"
 | 
			
		||||
        env:
 | 
			
		||||
          PR_URL: ${{github.event.pull_request.html_url}}
 | 
			
		||||
          GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
 | 
			
		||||
							
								
								
									
										4
									
								
								.github/workflows/lint.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/lint.yaml
									
									
									
									
										vendored
									
									
								
							@@ -13,11 +13,11 @@ jobs:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Checkout code
 | 
			
		||||
        uses: actions/checkout@v3
 | 
			
		||||
        uses: actions/checkout@v4
 | 
			
		||||
        with:
 | 
			
		||||
          fetch-depth: 0
 | 
			
		||||
      - name: Install Go
 | 
			
		||||
        uses: actions/setup-go@v4
 | 
			
		||||
        uses: actions/setup-go@v5
 | 
			
		||||
      - name: Install earthly
 | 
			
		||||
        uses: Luet-lab/luet-install-action@v1
 | 
			
		||||
        with:
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										35
									
								
								.github/workflows/renovate_auto.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								.github/workflows/renovate_auto.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,35 @@
 | 
			
		||||
name: Renovate auto-merge
 | 
			
		||||
on:
 | 
			
		||||
- pull_request_target
 | 
			
		||||
 | 
			
		||||
permissions:
 | 
			
		||||
  contents: write
 | 
			
		||||
  pull-requests: write
 | 
			
		||||
  packages: read
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  dependabot:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    if: ${{ github.actor == 'renovate[bot]' }}
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Checkout repository
 | 
			
		||||
        uses: actions/checkout@v4
 | 
			
		||||
 | 
			
		||||
      - name: Approve a PR if not already approved
 | 
			
		||||
        run: |
 | 
			
		||||
          gh pr checkout "$PR_URL"
 | 
			
		||||
            if [ "$(gh pr status --json reviewDecision -q .currentBranch.reviewDecision)" != "APPROVED" ];
 | 
			
		||||
          then
 | 
			
		||||
            gh pr review --approve "$PR_URL"
 | 
			
		||||
          else
 | 
			
		||||
            echo "PR already approved.";
 | 
			
		||||
          fi
 | 
			
		||||
        env:
 | 
			
		||||
          PR_URL: ${{github.event.pull_request.html_url}}
 | 
			
		||||
          GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
 | 
			
		||||
 | 
			
		||||
      - name: Enable auto-merge for Renovate PRs
 | 
			
		||||
        run: gh pr merge --auto --squash "$PR_URL"
 | 
			
		||||
        env:
 | 
			
		||||
          PR_URL: ${{github.event.pull_request.html_url}}
 | 
			
		||||
          GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
 | 
			
		||||
							
								
								
									
										10
									
								
								.github/workflows/unit-tests.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								.github/workflows/unit-tests.yml
									
									
									
									
										vendored
									
									
								
							@@ -7,16 +7,20 @@ on:
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  unit-tests:
 | 
			
		||||
    strategy:
 | 
			
		||||
      matrix:
 | 
			
		||||
        # Match this version to the maintained FIPS version in packages at https://github.com/kairos-io/packages/blob/main/packages/toolchain-go/collection.yaml#L63
 | 
			
		||||
        go-version: ["1.19.10", "1.20", "1.21"]
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Checkout code
 | 
			
		||||
        uses: actions/checkout@v3
 | 
			
		||||
        uses: actions/checkout@v4
 | 
			
		||||
        with:
 | 
			
		||||
          fetch-depth: 0
 | 
			
		||||
      - name: Install Go
 | 
			
		||||
        uses: actions/setup-go@v3
 | 
			
		||||
        uses: actions/setup-go@v5
 | 
			
		||||
        with:
 | 
			
		||||
          go-version: '^1.20'
 | 
			
		||||
          go-version: ${{ matrix.go-version }}
 | 
			
		||||
 | 
			
		||||
      - name: Install Ginkgo
 | 
			
		||||
        run: go install github.com/onsi/ginkgo/v2/ginkgo@v2.5.0
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										107
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										107
									
								
								go.mod
									
									
									
									
									
								
							@@ -1,69 +1,104 @@
 | 
			
		||||
module github.com/kairos-io/kcrypt
 | 
			
		||||
 | 
			
		||||
go 1.20
 | 
			
		||||
go 1.19
 | 
			
		||||
 | 
			
		||||
require (
 | 
			
		||||
	github.com/anatol/luks.go v0.0.0-20230125211543-ada2562d4206
 | 
			
		||||
	github.com/gofrs/uuid v4.4.0+incompatible
 | 
			
		||||
	github.com/hashicorp/go-multierror v1.1.1
 | 
			
		||||
	github.com/jaypipes/ghw v0.10.0
 | 
			
		||||
	github.com/kairos-io/kairos v1.24.3-56.0.20230329142538-b6ae4b58c07d
 | 
			
		||||
	github.com/mudler/go-pluggable v0.0.0-20230126220627-7710299a0ae5
 | 
			
		||||
	github.com/onsi/ginkgo/v2 v2.9.2
 | 
			
		||||
	github.com/onsi/gomega v1.27.5
 | 
			
		||||
	github.com/otiai10/copy v1.9.0
 | 
			
		||||
	github.com/pkg/errors v0.9.1
 | 
			
		||||
	github.com/urfave/cli v1.22.12
 | 
			
		||||
	gopkg.in/yaml.v1 v1.0.0-20140924161607-9f9df34309c0
 | 
			
		||||
replace (
 | 
			
		||||
	github.com/onsi/ginkgo/v2 v2.17.1 => github.com/onsi/ginkgo/v2 v2.12.1
 | 
			
		||||
	github.com/onsi/gomega v1.33.0 => github.com/onsi/gomega v1.28.0
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
require (
 | 
			
		||||
	atomicgo.dev/cursor v0.1.1 // indirect
 | 
			
		||||
	github.com/anatol/luks.go v0.0.0-20230423170605-fb3724ed7db7
 | 
			
		||||
	github.com/gofrs/uuid v4.4.0+incompatible
 | 
			
		||||
	github.com/jaypipes/ghw v0.12.0
 | 
			
		||||
	github.com/kairos-io/kairos-sdk v0.1.8
 | 
			
		||||
	github.com/mudler/go-pluggable v0.0.0-20230126220627-7710299a0ae5
 | 
			
		||||
	github.com/onsi/ginkgo/v2 v2.17.1
 | 
			
		||||
	github.com/onsi/gomega v1.33.0
 | 
			
		||||
	github.com/otiai10/copy v1.14.0
 | 
			
		||||
	github.com/pkg/errors v0.9.1
 | 
			
		||||
	github.com/rs/zerolog v1.33.0
 | 
			
		||||
	github.com/urfave/cli/v2 v2.27.2
 | 
			
		||||
	gopkg.in/yaml.v1 v1.0.0-20140924161607-9f9df34309c0
 | 
			
		||||
	gopkg.in/yaml.v3 v3.0.1
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
require (
 | 
			
		||||
	atomicgo.dev/cursor v0.1.3 // indirect
 | 
			
		||||
	atomicgo.dev/keyboard v0.2.9 // indirect
 | 
			
		||||
	atomicgo.dev/schedule v0.0.2 // indirect
 | 
			
		||||
	github.com/Microsoft/go-winio v0.6.1 // indirect
 | 
			
		||||
	github.com/Microsoft/hcsshim v0.11.4 // indirect
 | 
			
		||||
	github.com/StackExchange/wmi v1.2.1 // indirect
 | 
			
		||||
	github.com/anatol/devmapper.go v0.0.0-20220907161421-ba4de5fc0fd1 // indirect
 | 
			
		||||
	github.com/avast/retry-go v3.0.0+incompatible // indirect
 | 
			
		||||
	github.com/aybabtme/rgbterm v0.0.0-20170906152045-cc83f3b3ce59 // indirect
 | 
			
		||||
	github.com/chuckpreslar/emission v0.0.0-20170206194824-a7ddd980baf9 // indirect
 | 
			
		||||
	github.com/containerd/cgroups v1.1.0 // indirect
 | 
			
		||||
	github.com/containerd/console v1.0.3 // indirect
 | 
			
		||||
	github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
 | 
			
		||||
	github.com/containerd/containerd v1.7.11 // indirect
 | 
			
		||||
	github.com/containerd/continuity v0.4.2 // indirect
 | 
			
		||||
	github.com/containerd/log v0.1.0 // indirect
 | 
			
		||||
	github.com/containerd/stargz-snapshotter/estargz v0.14.3 // indirect
 | 
			
		||||
	github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect
 | 
			
		||||
	github.com/denisbrodbeck/machineid v1.0.1 // indirect
 | 
			
		||||
	github.com/dgryski/go-camellia v0.0.0-20191119043421-69a8a13fb23d // indirect
 | 
			
		||||
	github.com/docker/cli v24.0.0+incompatible // indirect
 | 
			
		||||
	github.com/docker/distribution v2.8.2+incompatible // indirect
 | 
			
		||||
	github.com/docker/docker v24.0.9+incompatible // indirect
 | 
			
		||||
	github.com/docker/docker-credential-helpers v0.7.0 // indirect
 | 
			
		||||
	github.com/docker/go-connections v0.4.0 // indirect
 | 
			
		||||
	github.com/docker/go-units v0.5.0 // indirect
 | 
			
		||||
	github.com/ghodss/yaml v1.0.0 // indirect
 | 
			
		||||
	github.com/go-logr/logr v1.2.3 // indirect
 | 
			
		||||
	github.com/go-logr/logr v1.4.1 // indirect
 | 
			
		||||
	github.com/go-ole/go-ole v1.2.6 // indirect
 | 
			
		||||
	github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
 | 
			
		||||
	github.com/google/go-cmp v0.5.9 // indirect
 | 
			
		||||
	github.com/gogo/protobuf v1.3.2 // indirect
 | 
			
		||||
	github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
 | 
			
		||||
	github.com/golang/protobuf v1.5.4 // indirect
 | 
			
		||||
	github.com/google/go-cmp v0.6.0 // indirect
 | 
			
		||||
	github.com/google/go-containerregistry v0.19.1 // indirect
 | 
			
		||||
	github.com/google/pprof v0.0.0-20230228050547-1710fef4ab10 // indirect
 | 
			
		||||
	github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
 | 
			
		||||
	github.com/gookit/color v1.5.2 // indirect
 | 
			
		||||
	github.com/gookit/color v1.5.3 // indirect
 | 
			
		||||
	github.com/hashicorp/errwrap v1.1.0 // indirect
 | 
			
		||||
	github.com/imdario/mergo v0.3.15 // indirect
 | 
			
		||||
	github.com/itchyny/gojq v0.12.12 // indirect
 | 
			
		||||
	github.com/hashicorp/go-multierror v1.1.1 // indirect
 | 
			
		||||
	github.com/itchyny/gojq v0.12.15 // indirect
 | 
			
		||||
	github.com/itchyny/timefmt-go v0.1.5 // indirect
 | 
			
		||||
	github.com/jaypipes/pcidb v1.0.0 // indirect
 | 
			
		||||
	github.com/joho/godotenv v1.5.1 // indirect
 | 
			
		||||
	github.com/kairos-io/kairos-sdk v0.0.2-0.20230317135804-ad3c0f6cd6dd // indirect
 | 
			
		||||
	github.com/kr/text v0.1.0 // indirect
 | 
			
		||||
	github.com/lithammer/fuzzysearch v1.1.5 // indirect
 | 
			
		||||
	github.com/mattn/go-isatty v0.0.17 // indirect
 | 
			
		||||
	github.com/mattn/go-runewidth v0.0.14 // indirect
 | 
			
		||||
	github.com/jzelinskie/whirlpool v0.0.0-20201016144138-0675e54bb004 // indirect
 | 
			
		||||
	github.com/klauspost/compress v1.17.4 // indirect
 | 
			
		||||
	github.com/lithammer/fuzzysearch v1.1.8 // indirect
 | 
			
		||||
	github.com/mattn/go-colorable v0.1.13 // indirect
 | 
			
		||||
	github.com/mattn/go-isatty v0.0.20 // indirect
 | 
			
		||||
	github.com/mattn/go-runewidth v0.0.15 // indirect
 | 
			
		||||
	github.com/mitchellh/go-homedir v1.1.0 // indirect
 | 
			
		||||
	github.com/moby/sys/sequential v0.5.0 // indirect
 | 
			
		||||
	github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 // indirect
 | 
			
		||||
	github.com/pterm/pterm v0.12.57 // indirect
 | 
			
		||||
	github.com/opencontainers/go-digest v1.0.0 // indirect
 | 
			
		||||
	github.com/opencontainers/image-spec v1.1.0-rc3 // indirect
 | 
			
		||||
	github.com/pterm/pterm v0.12.63 // indirect
 | 
			
		||||
	github.com/qeesung/image2ascii v1.0.1 // indirect
 | 
			
		||||
	github.com/rivo/uniseg v0.4.4 // indirect
 | 
			
		||||
	github.com/rogpeppe/go-internal v1.9.0 // indirect
 | 
			
		||||
	github.com/rivo/uniseg v0.4.7 // indirect
 | 
			
		||||
	github.com/russross/blackfriday/v2 v2.1.0 // indirect
 | 
			
		||||
	github.com/sirupsen/logrus v1.9.3 // indirect
 | 
			
		||||
	github.com/vbatts/tar-split v0.11.3 // indirect
 | 
			
		||||
	github.com/wayneashleyberry/terminal-dimensions v1.1.0 // indirect
 | 
			
		||||
	github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
 | 
			
		||||
	golang.org/x/crypto v0.7.0 // indirect
 | 
			
		||||
	golang.org/x/net v0.8.0 // indirect
 | 
			
		||||
	golang.org/x/sys v0.6.0 // indirect
 | 
			
		||||
	golang.org/x/term v0.6.0 // indirect
 | 
			
		||||
	golang.org/x/text v0.8.0 // indirect
 | 
			
		||||
	golang.org/x/tools v0.7.0 // indirect
 | 
			
		||||
	github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913 // indirect
 | 
			
		||||
	go.opencensus.io v0.24.0 // indirect
 | 
			
		||||
	golang.org/x/crypto v0.22.0 // indirect
 | 
			
		||||
	golang.org/x/mod v0.15.0 // indirect
 | 
			
		||||
	golang.org/x/net v0.23.0 // indirect
 | 
			
		||||
	golang.org/x/sync v0.6.0 // indirect
 | 
			
		||||
	golang.org/x/sys v0.19.0 // indirect
 | 
			
		||||
	golang.org/x/term v0.19.0 // indirect
 | 
			
		||||
	golang.org/x/text v0.14.0 // indirect
 | 
			
		||||
	golang.org/x/tools v0.18.0 // indirect
 | 
			
		||||
	google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect
 | 
			
		||||
	google.golang.org/grpc v1.58.3 // indirect
 | 
			
		||||
	google.golang.org/protobuf v1.33.0 // indirect
 | 
			
		||||
	gopkg.in/yaml.v2 v2.4.0 // indirect
 | 
			
		||||
	gopkg.in/yaml.v3 v3.0.1 // indirect
 | 
			
		||||
	howett.net/plist v1.0.0 // indirect
 | 
			
		||||
)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										336
									
								
								go.sum
									
									
									
									
									
								
							
							
						
						
									
										336
									
								
								go.sum
									
									
									
									
									
								
							@@ -1,8 +1,15 @@
 | 
			
		||||
atomicgo.dev/cursor v0.1.1 h1:0t9sxQomCTRh5ug+hAMCs59x/UmC9QL6Ci5uosINKD4=
 | 
			
		||||
atomicgo.dev/cursor v0.1.1/go.mod h1:Lr4ZJB3U7DfPPOkbH7/6TOtJ4vFGHlgj1nc+n900IpU=
 | 
			
		||||
atomicgo.dev/assert v0.0.2 h1:FiKeMiZSgRrZsPo9qn/7vmr7mCsh5SZyXY4YGYiYwrg=
 | 
			
		||||
atomicgo.dev/cursor v0.1.3 h1:w8GcylMdZRyFzvDiGm3wy3fhZYYT7BwaqNjUFHxo0NU=
 | 
			
		||||
atomicgo.dev/cursor v0.1.3/go.mod h1:Lr4ZJB3U7DfPPOkbH7/6TOtJ4vFGHlgj1nc+n900IpU=
 | 
			
		||||
atomicgo.dev/keyboard v0.2.9 h1:tOsIid3nlPLZ3lwgG8KZMp/SFmr7P0ssEN5JUsm78K8=
 | 
			
		||||
atomicgo.dev/keyboard v0.2.9/go.mod h1:BC4w9g00XkxH/f1HXhW2sXmJFOCWbKn9xrOunSFtExQ=
 | 
			
		||||
atomicgo.dev/schedule v0.0.2 h1:2e/4KY6t3wokja01Cyty6qgkQM8MotJzjtqCH70oX2Q=
 | 
			
		||||
atomicgo.dev/schedule v0.0.2/go.mod h1:xeUa3oAkiuHYh8bKiQBRojqAMq3PXXbJujjb0hw8pEU=
 | 
			
		||||
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
 | 
			
		||||
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0=
 | 
			
		||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
 | 
			
		||||
github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
 | 
			
		||||
github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
 | 
			
		||||
github.com/MarvinJWendt/testza v0.1.0/go.mod h1:7AxNvlfeHP7Z/hDQ5JtE3OKYT3XFUeLCDE2DQninSqs=
 | 
			
		||||
github.com/MarvinJWendt/testza v0.2.1/go.mod h1:God7bhG8n6uQxwdScay+gjm9/LnO4D3kkcZX4hv9Rp8=
 | 
			
		||||
github.com/MarvinJWendt/testza v0.2.8/go.mod h1:nwIcjmr0Zz+Rcwfh3/4UhBp7ePKVhuBExvZqnKYWlII=
 | 
			
		||||
@@ -10,24 +17,49 @@ github.com/MarvinJWendt/testza v0.2.10/go.mod h1:pd+VWsoGUiFtq+hRKSU1Bktnn+DMCSr
 | 
			
		||||
github.com/MarvinJWendt/testza v0.2.12/go.mod h1:JOIegYyV7rX+7VZ9r77L/eH6CfJHHzXjB69adAhzZkI=
 | 
			
		||||
github.com/MarvinJWendt/testza v0.3.0/go.mod h1:eFcL4I0idjtIx8P9C6KkAuLgATNKpX4/2oUqKc6bF2c=
 | 
			
		||||
github.com/MarvinJWendt/testza v0.4.2/go.mod h1:mSdhXiKH8sg/gQehJ63bINcCKp7RtYewEjXsvsVUPbE=
 | 
			
		||||
github.com/MarvinJWendt/testza v0.5.2 h1:53KDo64C1z/h/d/stCYCPY69bt/OSwjq5KpFNwi+zB4=
 | 
			
		||||
github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow=
 | 
			
		||||
github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM=
 | 
			
		||||
github.com/Microsoft/hcsshim v0.11.4 h1:68vKo2VN8DE9AdN4tnkWnmdhqdbpUFM8OF3Airm7fz8=
 | 
			
		||||
github.com/Microsoft/hcsshim v0.11.4/go.mod h1:smjE4dvqPX9Zldna+t5FG3rnoHhaB7QYxPRqGcpAD9w=
 | 
			
		||||
github.com/StackExchange/wmi v1.2.1 h1:VIkavFPXSjcnS+O8yTq7NI32k0R5Aj+v39y29VYDOSA=
 | 
			
		||||
github.com/StackExchange/wmi v1.2.1/go.mod h1:rcmrprowKIVzvc+NUiLncP2uuArMWLCbu9SBzvHz7e8=
 | 
			
		||||
github.com/anatol/devmapper.go v0.0.0-20220907161421-ba4de5fc0fd1 h1:6ok4FQsJFooNYKiSmrVUv476cG/NYmbM0LxazuL4sZU=
 | 
			
		||||
github.com/anatol/devmapper.go v0.0.0-20220907161421-ba4de5fc0fd1/go.mod h1:k5R4Ie9eQbP4muJljLeun3f1onpMKRSqG/aXMFdCWm4=
 | 
			
		||||
github.com/anatol/luks.go v0.0.0-20230125211543-ada2562d4206 h1:9kfvAJRm75SuSR185WrbYOco0cKFo9IglQfiFyRNvK0=
 | 
			
		||||
github.com/anatol/luks.go v0.0.0-20230125211543-ada2562d4206/go.mod h1:XwLorksvNshI9TH9UOO/WfX7kYIdlljCQi5WPkN7K0c=
 | 
			
		||||
github.com/anatol/luks.go v0.0.0-20230423170605-fb3724ed7db7 h1:Q9DsAuWcdvV/7nK8Vdfzd/JBuCaXJn6ON/1H4gYvw5U=
 | 
			
		||||
github.com/anatol/luks.go v0.0.0-20230423170605-fb3724ed7db7/go.mod h1:Dg5siXjPlu/NB24ivNHK5cOms5u9dLc/GEWaGFb0t3I=
 | 
			
		||||
github.com/anatol/vmtest v0.0.0-20220413190228-7a42f1f6d7b8 h1:t4JGeY9oaF5LB4Rdx9e2wARRRPAYt8Ow4eCf5SwO3fA=
 | 
			
		||||
github.com/atomicgo/cursor v0.0.1/go.mod h1:cBON2QmmrysudxNBFthvMtN32r3jxVRIvzkUiF/RuIk=
 | 
			
		||||
github.com/avast/retry-go v3.0.0+incompatible h1:4SOWQ7Qs+oroOTQOYnAHqelpCO0biHSxpiH9JdtuBj0=
 | 
			
		||||
github.com/avast/retry-go v3.0.0+incompatible/go.mod h1:XtSnn+n/sHqQIpZ10K1qAevBhOOCWBLXXy3hyiqqBrY=
 | 
			
		||||
github.com/aybabtme/rgbterm v0.0.0-20170906152045-cc83f3b3ce59 h1:WWB576BN5zNSZc/M9d/10pqEx5VHNhaQ/yOVAkmj5Yo=
 | 
			
		||||
github.com/aybabtme/rgbterm v0.0.0-20170906152045-cc83f3b3ce59/go.mod h1:q/89r3U2H7sSsE2t6Kca0lfwTK8JdoNGS/yzM/4iH5I=
 | 
			
		||||
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
 | 
			
		||||
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
 | 
			
		||||
github.com/chuckpreslar/emission v0.0.0-20170206194824-a7ddd980baf9 h1:xz6Nv3zcwO2Lila35hcb0QloCQsc38Al13RNEzWRpX4=
 | 
			
		||||
github.com/chuckpreslar/emission v0.0.0-20170206194824-a7ddd980baf9/go.mod h1:2wSM9zJkl1UQEFZgSd68NfCgRz1VL1jzy/RjCg+ULrs=
 | 
			
		||||
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
 | 
			
		||||
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
 | 
			
		||||
github.com/containerd/aufs v1.0.0/go.mod h1:kL5kd6KM5TzQjR79jljyi4olc1Vrx6XBlcyj3gNv2PU=
 | 
			
		||||
github.com/containerd/cgroups v1.1.0 h1:v8rEWFl6EoqHB+swVNjVoCJE8o3jX7e8nqBGPLaDFBM=
 | 
			
		||||
github.com/containerd/cgroups v1.1.0/go.mod h1:6ppBcbh/NOOUU+dMKrykgaBnK9lCIBxHqJDGwsa1mIw=
 | 
			
		||||
github.com/containerd/console v1.0.3 h1:lIr7SlA5PxZyMV30bDW0MGbiOPXwc63yRuCP0ARubLw=
 | 
			
		||||
github.com/containerd/console v1.0.3/go.mod h1:7LqA/THxQ86k76b8c/EMSiaJ3h1eZkMkXar0TQ1gf3U=
 | 
			
		||||
github.com/containerd/containerd v1.7.11 h1:lfGKw3eU35sjV0aG2eYZTiwFEY1pCzxdzicHP3SZILw=
 | 
			
		||||
github.com/containerd/containerd v1.7.11/go.mod h1:5UluHxHTX2rdvYuZ5OJTC5m/KJNs0Zs9wVoJm9zf5ZE=
 | 
			
		||||
github.com/containerd/continuity v0.4.2 h1:v3y/4Yz5jwnvqPKJJ+7Wf93fyWoCB3F5EclWG023MDM=
 | 
			
		||||
github.com/containerd/continuity v0.4.2/go.mod h1:F6PTNCKepoxEaXLQp3wDAjygEnImnZ/7o4JzpodfroQ=
 | 
			
		||||
github.com/containerd/go-runc v1.0.0/go.mod h1:cNU0ZbCgCQVZK4lgG3P+9tn9/PaJNmoDXPpoJhDR+Ok=
 | 
			
		||||
github.com/containerd/log v0.1.0 h1:TCJt7ioM2cr/tfR8GPbGf9/VRAX8D2B4PjzCpfX540I=
 | 
			
		||||
github.com/containerd/log v0.1.0/go.mod h1:VRRf09a7mHDIRezVKTRCrOq78v577GXq3bSa3EhrzVo=
 | 
			
		||||
github.com/containerd/stargz-snapshotter/estargz v0.14.3 h1:OqlDCK3ZVUO6C3B/5FSkDwbkEETK84kQgEeFwDC+62k=
 | 
			
		||||
github.com/containerd/stargz-snapshotter/estargz v0.14.3/go.mod h1:KY//uOCIkSuNAHhJogcZtrNHdKrA99/FCCRjE3HD36o=
 | 
			
		||||
github.com/containerd/typeurl v1.0.2/go.mod h1:9trJWW2sRlGub4wZJRTW83VtbOLS6hwcDZXTn6oPz9s=
 | 
			
		||||
github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
 | 
			
		||||
github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w=
 | 
			
		||||
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
 | 
			
		||||
github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4=
 | 
			
		||||
github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
 | 
			
		||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
 | 
			
		||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
 | 
			
		||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
 | 
			
		||||
@@ -35,110 +67,177 @@ github.com/denisbrodbeck/machineid v1.0.1 h1:geKr9qtkB876mXguW2X6TU4ZynleN6ezuMS
 | 
			
		||||
github.com/denisbrodbeck/machineid v1.0.1/go.mod h1:dJUwb7PTidGDeYyUBmXZ2GphQBbjJCrnectwCyxcUSI=
 | 
			
		||||
github.com/dgryski/go-camellia v0.0.0-20191119043421-69a8a13fb23d h1:CPqTNIigGweVPT4CYb+OO2E6XyRKFOmvTHwWRLgCAlE=
 | 
			
		||||
github.com/dgryski/go-camellia v0.0.0-20191119043421-69a8a13fb23d/go.mod h1:QX5ZVULjAfZJux/W62Y91HvCh9hyW6enAwcrrv/sLj0=
 | 
			
		||||
github.com/docker/cli v24.0.0+incompatible h1:0+1VshNwBQzQAx9lOl+OYCTCEAD8fKs/qeXMx3O0wqM=
 | 
			
		||||
github.com/docker/cli v24.0.0+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
 | 
			
		||||
github.com/docker/distribution v2.8.2+incompatible h1:T3de5rq0dB1j30rp0sA2rER+m322EBzniBPB6ZIzuh8=
 | 
			
		||||
github.com/docker/distribution v2.8.2+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
 | 
			
		||||
github.com/docker/docker v24.0.9+incompatible h1:HPGzNmwfLZWdxHqK9/II92pyi1EpYKsAqcl4G0Of9v0=
 | 
			
		||||
github.com/docker/docker v24.0.9+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
 | 
			
		||||
github.com/docker/docker-credential-helpers v0.7.0 h1:xtCHsjxogADNZcdv1pKUHXryefjlVRqWqIhk/uXJp0A=
 | 
			
		||||
github.com/docker/docker-credential-helpers v0.7.0/go.mod h1:rETQfLdHNT3foU5kuNkFR1R1V12OJRRO5lzt2D1b5X0=
 | 
			
		||||
github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ=
 | 
			
		||||
github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec=
 | 
			
		||||
github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c/go.mod h1:Uw6UezgYA44ePAFQYUehOuCzmy5zmg/+nl2ZfMWGkpA=
 | 
			
		||||
github.com/docker/go-metrics v0.0.1/go.mod h1:cG1hvH2utMXtqgqqYE9plW6lDxS3/5ayHzueweSI3Vw=
 | 
			
		||||
github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4=
 | 
			
		||||
github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
 | 
			
		||||
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
 | 
			
		||||
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
 | 
			
		||||
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
 | 
			
		||||
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
 | 
			
		||||
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
 | 
			
		||||
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
 | 
			
		||||
github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwVZI=
 | 
			
		||||
github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY=
 | 
			
		||||
github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=
 | 
			
		||||
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
 | 
			
		||||
github.com/go-logr/logr v1.2.3 h1:2DntVwHkVopvECVRSlL5PSo9eG+cAkDCuckLubN+rq0=
 | 
			
		||||
github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
 | 
			
		||||
github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ=
 | 
			
		||||
github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
 | 
			
		||||
github.com/go-ole/go-ole v1.2.5/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0=
 | 
			
		||||
github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY=
 | 
			
		||||
github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0=
 | 
			
		||||
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI=
 | 
			
		||||
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls=
 | 
			
		||||
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
 | 
			
		||||
github.com/gofrs/uuid v4.4.0+incompatible h1:3qXRTX8/NbyulANqlc0lchS1gqAVxRgsuW1YrTJupqA=
 | 
			
		||||
github.com/gofrs/uuid v4.4.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
 | 
			
		||||
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
 | 
			
		||||
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
 | 
			
		||||
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
 | 
			
		||||
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
 | 
			
		||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=
 | 
			
		||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
 | 
			
		||||
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
 | 
			
		||||
github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs=
 | 
			
		||||
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
 | 
			
		||||
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
 | 
			
		||||
github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
 | 
			
		||||
github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
 | 
			
		||||
github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
 | 
			
		||||
github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
 | 
			
		||||
github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
 | 
			
		||||
github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
 | 
			
		||||
github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
 | 
			
		||||
github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg=
 | 
			
		||||
github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
 | 
			
		||||
github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
 | 
			
		||||
github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
 | 
			
		||||
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
 | 
			
		||||
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
 | 
			
		||||
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
 | 
			
		||||
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
 | 
			
		||||
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
 | 
			
		||||
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
 | 
			
		||||
github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
 | 
			
		||||
github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
 | 
			
		||||
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
 | 
			
		||||
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
 | 
			
		||||
github.com/google/go-containerregistry v0.19.1 h1:yMQ62Al6/V0Z7CqIrrS1iYoA5/oQCm88DeNujc7C1KY=
 | 
			
		||||
github.com/google/go-containerregistry v0.19.1/go.mod h1:YCMFNQeeXeLF+dnhhWkqDItx/JSkH01j1Kis4PsjzFI=
 | 
			
		||||
github.com/google/pprof v0.0.0-20230228050547-1710fef4ab10 h1:CqYfpuYIjnlNxM3msdyPRKabhXZWbKjf3Q8BWROFBso=
 | 
			
		||||
github.com/google/pprof v0.0.0-20230228050547-1710fef4ab10/go.mod h1:79YE0hCXdHag9sBkw2o+N/YnZtTkXi0UT9Nnixa5eYk=
 | 
			
		||||
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4=
 | 
			
		||||
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ=
 | 
			
		||||
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
 | 
			
		||||
github.com/gookit/color v1.4.2/go.mod h1:fqRyamkC1W8uxl+lxCQxOT09l/vYfZ+QeiX3rKQHCoQ=
 | 
			
		||||
github.com/gookit/color v1.5.0/go.mod h1:43aQb+Zerm/BWh2GnrgOQm7ffz7tvQXEKV6BFMl7wAo=
 | 
			
		||||
github.com/gookit/color v1.5.2 h1:uLnfXcaFjlrDnQDT+NCBcfhrXqYTx/rcCa6xn01Y8yI=
 | 
			
		||||
github.com/gookit/color v1.5.2/go.mod h1:w8h4bGiHeeBpvQVePTutdbERIUf3oJE5lZ8HM0UgXyg=
 | 
			
		||||
github.com/gookit/color v1.5.3 h1:twfIhZs4QLCtimkP7MOxlF3A0U/5cDPseRT9M/+2SCE=
 | 
			
		||||
github.com/gookit/color v1.5.3/go.mod h1:NUzwzeehUfl7GIb36pqId+UGmRfQcU/WiiyTTeNjHtE=
 | 
			
		||||
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk=
 | 
			
		||||
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
 | 
			
		||||
github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I=
 | 
			
		||||
github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
 | 
			
		||||
github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo=
 | 
			
		||||
github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM=
 | 
			
		||||
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
 | 
			
		||||
github.com/imdario/mergo v0.3.15 h1:M8XP7IuFNsqUx6VPK2P9OSmsYsI/YFaGil0uD21V3dM=
 | 
			
		||||
github.com/imdario/mergo v0.3.15/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY=
 | 
			
		||||
github.com/itchyny/gojq v0.12.12 h1:x+xGI9BXqKoJQZkr95ibpe3cdrTbY8D9lonrK433rcA=
 | 
			
		||||
github.com/itchyny/gojq v0.12.12/go.mod h1:j+3sVkjxwd7A7Z5jrbKibgOLn0ZfLWkV+Awxr/pyzJE=
 | 
			
		||||
github.com/itchyny/gojq v0.12.15 h1:WC1Nxbx4Ifw5U2oQWACYz32JK8G9qxNtHzrvW4KEcqI=
 | 
			
		||||
github.com/itchyny/gojq v0.12.15/go.mod h1:uWAHCbCIla1jiNxmeT5/B5mOjSdfkCq6p8vxWg+BM10=
 | 
			
		||||
github.com/itchyny/timefmt-go v0.1.5 h1:G0INE2la8S6ru/ZI5JecgyzbbJNs5lG1RcBqa7Jm6GE=
 | 
			
		||||
github.com/itchyny/timefmt-go v0.1.5/go.mod h1:nEP7L+2YmAbT2kZ2HfSs1d8Xtw9LY8D2stDBckWakZ8=
 | 
			
		||||
github.com/jaypipes/ghw v0.10.0 h1:UHu9UX08Py315iPojADFPOkmjTsNzHj4g4adsNKKteY=
 | 
			
		||||
github.com/jaypipes/ghw v0.10.0/go.mod h1:jeJGbkRB2lL3/gxYzNYzEDETV1ZJ56OKr+CSeSEym+g=
 | 
			
		||||
github.com/jaypipes/ghw v0.12.0 h1:xU2/MDJfWmBhJnujHY9qwXQLs3DBsf0/Xa9vECY0Tho=
 | 
			
		||||
github.com/jaypipes/ghw v0.12.0/go.mod h1:jeJGbkRB2lL3/gxYzNYzEDETV1ZJ56OKr+CSeSEym+g=
 | 
			
		||||
github.com/jaypipes/pcidb v1.0.0 h1:vtZIfkiCUE42oYbJS0TAq9XSfSmcsgo9IdxSm9qzYU8=
 | 
			
		||||
github.com/jaypipes/pcidb v1.0.0/go.mod h1:TnYUvqhPBzCKnH34KrIX22kAeEbDCSRJ9cqLRCuNDfk=
 | 
			
		||||
github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
 | 
			
		||||
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=
 | 
			
		||||
github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=
 | 
			
		||||
github.com/kairos-io/kairos v1.24.3-56.0.20230329142538-b6ae4b58c07d h1:B01GinEZbowPwbWrqDIb6n2AaHIscJVOqsh0I5gAEXw=
 | 
			
		||||
github.com/kairos-io/kairos v1.24.3-56.0.20230329142538-b6ae4b58c07d/go.mod h1:2aYSSCHw8csfuqA5g6BpxBJ89kZt84G5okeuJj7PH+w=
 | 
			
		||||
github.com/kairos-io/kairos-sdk v0.0.2-0.20230317135804-ad3c0f6cd6dd h1:x3pwiwfj/eAv3OZ8BNFdmpjhh8ZInu7z8Xv/6+dhmFw=
 | 
			
		||||
github.com/kairos-io/kairos-sdk v0.0.2-0.20230317135804-ad3c0f6cd6dd/go.mod h1:Wg/jfAQe8seka5VUXtcPvg+sA6GmQEy+DYlJmgKM8Zs=
 | 
			
		||||
github.com/jzelinskie/whirlpool v0.0.0-20201016144138-0675e54bb004 h1:G+9t9cEtnC9jFiTxyptEKuNIAbiN5ZCQzX2a74lj3xg=
 | 
			
		||||
github.com/jzelinskie/whirlpool v0.0.0-20201016144138-0675e54bb004/go.mod h1:KmHnJWQrgEvbuy0vcvj00gtMqbvNn1L+3YUZLK/B92c=
 | 
			
		||||
github.com/kairos-io/kairos-sdk v0.1.1 h1:A9/bweW+Oy0Tmp3l7R4kL4NZXTJcKPXpp1/7u/tAluE=
 | 
			
		||||
github.com/kairos-io/kairos-sdk v0.1.1/go.mod h1:sR1X4B3F1nkaECQ1vdsJ78OIkfLfyB22/aIpdRQJ/Mo=
 | 
			
		||||
github.com/kairos-io/kairos-sdk v0.1.2 h1:veA06dQR4zddrWSxaZNq+5lSZQH0EHlU6OnR5fdkQ2Q=
 | 
			
		||||
github.com/kairos-io/kairos-sdk v0.1.2/go.mod h1:sR1X4B3F1nkaECQ1vdsJ78OIkfLfyB22/aIpdRQJ/Mo=
 | 
			
		||||
github.com/kairos-io/kairos-sdk v0.1.3 h1:mdGdr5mWQ6FXZkXPsDRBvCdZDIKbFpub40idtsSTN8k=
 | 
			
		||||
github.com/kairos-io/kairos-sdk v0.1.3/go.mod h1:sR1X4B3F1nkaECQ1vdsJ78OIkfLfyB22/aIpdRQJ/Mo=
 | 
			
		||||
github.com/kairos-io/kairos-sdk v0.1.5 h1:dk33F9naiHiZlzLTioCz7XQcR8Y6CVRbwE5rxtz5ha0=
 | 
			
		||||
github.com/kairos-io/kairos-sdk v0.1.5/go.mod h1:sR1X4B3F1nkaECQ1vdsJ78OIkfLfyB22/aIpdRQJ/Mo=
 | 
			
		||||
github.com/kairos-io/kairos-sdk v0.1.6 h1:x+oqSvyRgexiJeTbYXpM0ZcJnDbnbRSG4lGNVqDCZc0=
 | 
			
		||||
github.com/kairos-io/kairos-sdk v0.1.6/go.mod h1:sR1X4B3F1nkaECQ1vdsJ78OIkfLfyB22/aIpdRQJ/Mo=
 | 
			
		||||
github.com/kairos-io/kairos-sdk v0.1.8 h1:TKigA+3Nmzn/NLztbLVBLacpx0cK1oJl1AoZarohU98=
 | 
			
		||||
github.com/kairos-io/kairos-sdk v0.1.8/go.mod h1:asSOyJanH10Cnxl9zx5RzyYNMhEworaiMh/7uRnS4GA=
 | 
			
		||||
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs=
 | 
			
		||||
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
 | 
			
		||||
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
 | 
			
		||||
github.com/klauspost/compress v1.17.4 h1:Ej5ixsIri7BrIjBkRZLTo6ghwrEtHFk7ijlczPW4fZ4=
 | 
			
		||||
github.com/klauspost/compress v1.17.4/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM=
 | 
			
		||||
github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
 | 
			
		||||
github.com/klauspost/cpuid/v2 v2.0.10/go.mod h1:g2LTdtYhdyuGPqyWyv7qRAmj1WBqxuObKfj5c0PQa7c=
 | 
			
		||||
github.com/klauspost/cpuid/v2 v2.0.12/go.mod h1:g2LTdtYhdyuGPqyWyv7qRAmj1WBqxuObKfj5c0PQa7c=
 | 
			
		||||
github.com/klauspost/cpuid/v2 v2.2.3 h1:sxCkb+qR91z4vsqw4vGGZlDgPz3G7gjaLyK3V8y70BU=
 | 
			
		||||
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
 | 
			
		||||
github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0=
 | 
			
		||||
github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI=
 | 
			
		||||
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
 | 
			
		||||
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
 | 
			
		||||
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
 | 
			
		||||
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
 | 
			
		||||
github.com/lithammer/fuzzysearch v1.1.5 h1:Ag7aKU08wp0R9QCfF4GoGST9HbmAIeLP7xwMrOBEp1c=
 | 
			
		||||
github.com/lithammer/fuzzysearch v1.1.5/go.mod h1:1R1LRNk7yKid1BaQkmuLQaHruxcC4HmAH30Dh61Ih1Q=
 | 
			
		||||
github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPng=
 | 
			
		||||
github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
 | 
			
		||||
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
 | 
			
		||||
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
 | 
			
		||||
github.com/linuxkit/virtsock v0.0.0-20201010232012-f8cee7dfc7a3/go.mod h1:3r6x7q95whyfWQpmGZTu3gk3v2YkMi05HEzl7Tf7YEo=
 | 
			
		||||
github.com/lithammer/fuzzysearch v1.1.8 h1:/HIuJnjHuXS8bKaiTMeeDlW2/AyIWk2brx1V8LFgLN4=
 | 
			
		||||
github.com/lithammer/fuzzysearch v1.1.8/go.mod h1:IdqeyBClc3FFqSzYq/MXESsS4S0FsZ5ajtkr5xPLts4=
 | 
			
		||||
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
 | 
			
		||||
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
 | 
			
		||||
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
 | 
			
		||||
github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
 | 
			
		||||
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
 | 
			
		||||
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
 | 
			
		||||
github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
 | 
			
		||||
github.com/mattn/go-runewidth v0.0.14 h1:+xnbZSEeDbOIg5/mE6JF0w6n9duR1l3/WmbinWVwUuU=
 | 
			
		||||
github.com/mattn/go-runewidth v0.0.14/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
 | 
			
		||||
github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U=
 | 
			
		||||
github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
 | 
			
		||||
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
 | 
			
		||||
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
 | 
			
		||||
github.com/moby/locker v1.0.1/go.mod h1:S7SDdo5zpBK84bzzVlKr2V0hz+7x9hWbYC/kq7oQppc=
 | 
			
		||||
github.com/moby/sys/mountinfo v0.6.2 h1:BzJjoreD5BMFNmD9Rus6gdd1pLuecOFPt8wC+Vygl78=
 | 
			
		||||
github.com/moby/sys/sequential v0.5.0 h1:OPvI35Lzn9K04PBbCLW0g4LcFAJgHsvXsRyewg5lXtc=
 | 
			
		||||
github.com/moby/sys/sequential v0.5.0/go.mod h1:tH2cOOs5V9MlPiXcQzRC+eEyab644PWKGRYaaV5ZZlo=
 | 
			
		||||
github.com/moby/term v0.0.0-20221205130635-1aeaba878587 h1:HfkjXDfhgVaN5rmueG8cL8KKeFNecRCXFhaJ2qZ5SKA=
 | 
			
		||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
 | 
			
		||||
github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A=
 | 
			
		||||
github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc=
 | 
			
		||||
github.com/mudler/go-pluggable v0.0.0-20230126220627-7710299a0ae5 h1:FaZD86+A9mVt7lh9glAryzQblMsbJYU2VnrdZ8yHlTs=
 | 
			
		||||
github.com/mudler/go-pluggable v0.0.0-20230126220627-7710299a0ae5/go.mod h1:WmKcT8ONmhDQIqQ+HxU+tkGWjzBEyY/KFO8LTGCu4AI=
 | 
			
		||||
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 h1:zYyBkD/k9seD2A7fsi6Oo2LfFZAehjjQMERAvZLEDnQ=
 | 
			
		||||
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646/go.mod h1:jpp1/29i3P1S/RLdc7JQKbRpFeM1dOBd8T9ki5s+AY8=
 | 
			
		||||
github.com/nxadm/tail v1.4.4 h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78=
 | 
			
		||||
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
 | 
			
		||||
github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE=
 | 
			
		||||
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
 | 
			
		||||
github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
 | 
			
		||||
github.com/onsi/ginkgo v1.14.2 h1:8mVmC9kjFFmA8H4pKMUhcblgifdkOIXPvbhN1T36q1M=
 | 
			
		||||
github.com/onsi/ginkgo v1.14.2/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY=
 | 
			
		||||
github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE=
 | 
			
		||||
github.com/onsi/ginkgo/v2 v2.9.2 h1:BA2GMJOtfGAfagzYtrAlufIP0lq6QERkFmHLMLPwFSU=
 | 
			
		||||
github.com/onsi/ginkgo/v2 v2.9.2/go.mod h1:WHcJJG2dIlcCqVfBAwUCrJxSPFb6v4azBwgxeMeDuts=
 | 
			
		||||
github.com/onsi/ginkgo/v2 v2.12.1 h1:uHNEO1RP2SpuZApSkel9nEh1/Mu+hmQe7Q+Pepg5OYA=
 | 
			
		||||
github.com/onsi/ginkgo/v2 v2.12.1/go.mod h1:TE309ZR8s5FsKKpuB1YAQYBzCaAfUgatB/xlT/ETL/o=
 | 
			
		||||
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
 | 
			
		||||
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
 | 
			
		||||
github.com/onsi/gomega v1.10.3/go.mod h1:V9xEwhxec5O8UDM77eCW8vLymOMltsqPVYWrpDsH8xc=
 | 
			
		||||
github.com/onsi/gomega v1.27.5 h1:T/X6I0RNFw/kTqgfkZPcQ5KU6vCnWNBGdtrIx2dpGeQ=
 | 
			
		||||
github.com/onsi/gomega v1.27.5/go.mod h1:PIQNjfQwkP3aQAH7lf7j87O/5FiNr+ZR8+ipb+qQlhg=
 | 
			
		||||
github.com/otiai10/copy v1.9.0 h1:7KFNiCgZ91Ru4qW4CWPf/7jqtxLagGRmIxWldPP9VY4=
 | 
			
		||||
github.com/otiai10/copy v1.9.0/go.mod h1:hsfX19wcn0UWIHUQ3/4fHuehhk2UyArQ9dVFAn3FczI=
 | 
			
		||||
github.com/otiai10/curr v0.0.0-20150429015615-9b4961190c95/go.mod h1:9qAhocn7zKJG+0mI8eUu6xqkFDYS2kb2saOteoSB3cE=
 | 
			
		||||
github.com/otiai10/curr v1.0.0/go.mod h1:LskTG5wDwr8Rs+nNQ+1LlxRjAtTZZjtJW4rMXl6j4vs=
 | 
			
		||||
github.com/otiai10/mint v1.3.0/go.mod h1:F5AjcsTsWUqX+Na9fpHb52P8pcRX2CI6A3ctIT91xUo=
 | 
			
		||||
github.com/otiai10/mint v1.4.0 h1:umwcf7gbpEwf7WFzqmWwSv0CzbeMsae2u9ZvpP8j2q4=
 | 
			
		||||
github.com/otiai10/mint v1.4.0/go.mod h1:gifjb2MYOoULtKLqUAEILUG/9KONW6f7YsJ6vQLTlFI=
 | 
			
		||||
github.com/onsi/gomega v1.28.0 h1:i2rg/p9n/UqIDAMFUJ6qIUUMcsqOuUHgbpbu235Vr1c=
 | 
			
		||||
github.com/onsi/gomega v1.28.0/go.mod h1:A1H2JE76sI14WIP57LMKj7FVfCHx3g3BcZVjJG8bjX8=
 | 
			
		||||
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
 | 
			
		||||
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
 | 
			
		||||
github.com/opencontainers/image-spec v1.1.0-rc3 h1:fzg1mXZFj8YdPeNkRXMg+zb88BFV0Ys52cJydRwBkb8=
 | 
			
		||||
github.com/opencontainers/image-spec v1.1.0-rc3/go.mod h1:X4pATf0uXsnn3g5aiGIsVnJBR4mxhKzfwmvK/B2NTm8=
 | 
			
		||||
github.com/otiai10/copy v1.14.0 h1:dCI/t1iTdYGtkvCuBG2BgR6KZa83PTclw4U5n2wAllU=
 | 
			
		||||
github.com/otiai10/copy v1.14.0/go.mod h1:ECfuL02W+/FkTWZWgQqXPWZgW9oeKCSQ5qVfSc4qc4w=
 | 
			
		||||
github.com/otiai10/mint v1.5.1 h1:XaPLeE+9vGbuyEHem1JNk3bYc7KKqyI/na0/mLd/Kks=
 | 
			
		||||
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
 | 
			
		||||
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
 | 
			
		||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
 | 
			
		||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
 | 
			
		||||
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
 | 
			
		||||
github.com/pterm/pterm v0.12.27/go.mod h1:PhQ89w4i95rhgE+xedAoqous6K9X+r6aSOI2eFF7DZI=
 | 
			
		||||
github.com/pterm/pterm v0.12.29/go.mod h1:WI3qxgvoQFFGKGjGnJR849gU0TsEOvKn5Q8LlY1U7lg=
 | 
			
		||||
github.com/pterm/pterm v0.12.30/go.mod h1:MOqLIyMOgmTDz9yorcYbcw+HsgoZo3BQfg2wtl3HEFE=
 | 
			
		||||
@@ -146,47 +245,114 @@ github.com/pterm/pterm v0.12.31/go.mod h1:32ZAWZVXD7ZfG0s8qqHXePte42kdz8ECtRyEej
 | 
			
		||||
github.com/pterm/pterm v0.12.33/go.mod h1:x+h2uL+n7CP/rel9+bImHD5lF3nM9vJj80k9ybiiTTE=
 | 
			
		||||
github.com/pterm/pterm v0.12.36/go.mod h1:NjiL09hFhT/vWjQHSj1athJpx6H8cjpHXNAK5bUw8T8=
 | 
			
		||||
github.com/pterm/pterm v0.12.40/go.mod h1:ffwPLwlbXxP+rxT0GsgDTzS3y3rmpAO1NMjUkGTYf8s=
 | 
			
		||||
github.com/pterm/pterm v0.12.57 h1:HTjDUmILmh6hIsEidRdpxQAiqcoHCdvRCxIR3KZ0/XE=
 | 
			
		||||
github.com/pterm/pterm v0.12.57/go.mod h1:7rswprkyxYOse1IMh79w42jvReNHxro4z9oHfqjIdzM=
 | 
			
		||||
github.com/pterm/pterm v0.12.63 h1:fHlrpFiI9qLtEU0TWDWMU+tAt4qKJ/s157BEAPtGm8w=
 | 
			
		||||
github.com/pterm/pterm v0.12.63/go.mod h1:Bq1eoUJ6BhUzzXG8WxA4l7T3s7d3Ogwg7v9VXlsVat0=
 | 
			
		||||
github.com/qeesung/image2ascii v1.0.1 h1:Fe5zTnX/v/qNC3OC4P/cfASOXS501Xyw2UUcgrLgtp4=
 | 
			
		||||
github.com/qeesung/image2ascii v1.0.1/go.mod h1:kZKhyX0h2g/YXa/zdJR3JnLnJ8avHjZ3LrvEKSYyAyU=
 | 
			
		||||
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
 | 
			
		||||
github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis=
 | 
			
		||||
github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
 | 
			
		||||
github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
 | 
			
		||||
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
 | 
			
		||||
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
 | 
			
		||||
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
 | 
			
		||||
github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg=
 | 
			
		||||
github.com/rs/zerolog v1.32.0 h1:keLypqrlIjaFsbmJOBdB/qvyF8KEtCWHwobLp5l/mQ0=
 | 
			
		||||
github.com/rs/zerolog v1.32.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss=
 | 
			
		||||
github.com/rs/zerolog v1.33.0 h1:1cU2KZkvPxNyfgEmhHAz/1A9Bz+llsdYzklWFzgp0r8=
 | 
			
		||||
github.com/rs/zerolog v1.33.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss=
 | 
			
		||||
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
 | 
			
		||||
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
 | 
			
		||||
github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ=
 | 
			
		||||
github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
 | 
			
		||||
github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
 | 
			
		||||
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
 | 
			
		||||
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
 | 
			
		||||
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
 | 
			
		||||
github.com/stefanberger/go-pkcs11uri v0.0.0-20201008174630-78d3cae3a980/go.mod h1:AO3tvPzVZ/ayst6UlUKUv6rcPQInYe3IknH3jYhAKu8=
 | 
			
		||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
 | 
			
		||||
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
 | 
			
		||||
github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c=
 | 
			
		||||
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
 | 
			
		||||
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
 | 
			
		||||
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
 | 
			
		||||
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
 | 
			
		||||
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
 | 
			
		||||
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
 | 
			
		||||
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
 | 
			
		||||
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
 | 
			
		||||
github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8=
 | 
			
		||||
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
 | 
			
		||||
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
 | 
			
		||||
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
 | 
			
		||||
github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww=
 | 
			
		||||
github.com/tmc/scp v0.0.0-20170824174625-f7b48647feef h1:7D6Nm4D6f0ci9yttWaKjM1TMAXrH5Su72dojqYGntFY=
 | 
			
		||||
github.com/urfave/cli v1.22.12 h1:igJgVw1JdKH+trcLWLeLwZjU9fEfPesQ+9/e4MQ44S8=
 | 
			
		||||
github.com/urfave/cli v1.22.12/go.mod h1:sSBEIC79qR6OvcmsD4U3KABeOTxDqQtdDnaFuUN30b8=
 | 
			
		||||
github.com/urfave/cli v1.22.14 h1:ebbhrRiGK2i4naQJr+1Xj92HXZCrK7MsyTS/ob3HnAk=
 | 
			
		||||
github.com/urfave/cli v1.22.14/go.mod h1:X0eDS6pD6Exaclxm99NJ3FiCDRED7vIHpx2mDOHLvkA=
 | 
			
		||||
github.com/urfave/cli v1.22.15 h1:nuqt+pdC/KqswQKhETJjo7pvn/k4xMUxgW6liI7XpnM=
 | 
			
		||||
github.com/urfave/cli v1.22.15/go.mod h1:wSan1hmo5zeyLGBjRJbzRTNk8gwoYa2B9n4q9dmRIc0=
 | 
			
		||||
github.com/urfave/cli/v2 v2.27.1/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ=
 | 
			
		||||
github.com/urfave/cli/v2 v2.27.2 h1:6e0H+AkS+zDckwPCUrZkKX38mRaau4nL2uipkJpbkcI=
 | 
			
		||||
github.com/urfave/cli/v2 v2.27.2/go.mod h1:g0+79LmHHATl7DAcHO99smiR/T7uGLw84w8Y42x+4eM=
 | 
			
		||||
github.com/vbatts/tar-split v0.11.3 h1:hLFqsOLQ1SsppQNTMpkpPXClLDfC2A3Zgy9OUU+RVck=
 | 
			
		||||
github.com/vbatts/tar-split v0.11.3/go.mod h1:9QlHN18E+fEH7RdG+QAJJcuya3rqT7eXSTY7wGrAokY=
 | 
			
		||||
github.com/wayneashleyberry/terminal-dimensions v1.1.0 h1:EB7cIzBdsOzAgmhTUtTTQXBByuPheP/Zv1zL2BRPY6g=
 | 
			
		||||
github.com/wayneashleyberry/terminal-dimensions v1.1.0/go.mod h1:2lc/0eWCObmhRczn2SdGSQtgBooLUzIotkkEGXqghyg=
 | 
			
		||||
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ=
 | 
			
		||||
github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778/go.mod h1:2MuV+tbUrU1zIOPMxZ5EncGwgmMJsa+9ucAQZXxsObs=
 | 
			
		||||
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=
 | 
			
		||||
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
 | 
			
		||||
github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913 h1:+qGGcbkzsfDQNPPe9UDgpxAWQrhbbBXOYJFQDq/dtJw=
 | 
			
		||||
github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913/go.mod h1:4aEEwZQutDLsQv2Deui4iYQ6DWTxR14g6m8Wv88+Xqk=
 | 
			
		||||
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
 | 
			
		||||
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
 | 
			
		||||
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
 | 
			
		||||
go.mozilla.org/pkcs7 v0.0.0-20200128120323-432b2356ecb1/go.mod h1:SNgMg+EgDFwmvSmLRTNKC5fegJjB7v23qTQ0XLGUNHk=
 | 
			
		||||
go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0=
 | 
			
		||||
go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo=
 | 
			
		||||
go.uber.org/goleak v1.1.12/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ=
 | 
			
		||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
 | 
			
		||||
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
 | 
			
		||||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
 | 
			
		||||
golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A=
 | 
			
		||||
golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU=
 | 
			
		||||
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
 | 
			
		||||
golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30=
 | 
			
		||||
golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M=
 | 
			
		||||
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
 | 
			
		||||
golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561 h1:MDc5xs78ZrZr3HMQugiXOAkSZtfTpbJLDr/lwfgO53E=
 | 
			
		||||
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
 | 
			
		||||
golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
 | 
			
		||||
golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
 | 
			
		||||
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
 | 
			
		||||
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
 | 
			
		||||
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
 | 
			
		||||
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
 | 
			
		||||
golang.org/x/mod v0.15.0 h1:SernR4v+D55NyBH2QiEQrlBAnj1ECL6AGrA5+dPaMY8=
 | 
			
		||||
golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
 | 
			
		||||
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
 | 
			
		||||
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
 | 
			
		||||
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
 | 
			
		||||
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
 | 
			
		||||
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
 | 
			
		||||
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
 | 
			
		||||
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
 | 
			
		||||
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
 | 
			
		||||
golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
 | 
			
		||||
golang.org/x/net v0.0.0-20201006153459-a7d1128ccaa0/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
 | 
			
		||||
golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
 | 
			
		||||
golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
 | 
			
		||||
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
 | 
			
		||||
golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
 | 
			
		||||
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
 | 
			
		||||
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
 | 
			
		||||
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
 | 
			
		||||
golang.org/x/net v0.23.0 h1:7EYJ93RZ9vYSZAIb2x3lnuvqO5zneoD6IvWjuhfxjTs=
 | 
			
		||||
golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg=
 | 
			
		||||
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
 | 
			
		||||
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
 | 
			
		||||
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
 | 
			
		||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
 | 
			
		||||
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
 | 
			
		||||
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
 | 
			
		||||
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
 | 
			
		||||
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
 | 
			
		||||
golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ=
 | 
			
		||||
golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
 | 
			
		||||
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
 | 
			
		||||
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
 | 
			
		||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
 | 
			
		||||
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
 | 
			
		||||
@@ -203,36 +369,79 @@ golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7w
 | 
			
		||||
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 | 
			
		||||
golang.org/x/sys v0.0.0-20211013075003-97ac67df715c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 | 
			
		||||
golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 | 
			
		||||
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 | 
			
		||||
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 | 
			
		||||
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 | 
			
		||||
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 | 
			
		||||
golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
 | 
			
		||||
golang.org/x/sys v0.0.0-20220906165534-d0df966e6959/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 | 
			
		||||
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 | 
			
		||||
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 | 
			
		||||
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 | 
			
		||||
golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o=
 | 
			
		||||
golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
 | 
			
		||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
 | 
			
		||||
golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
 | 
			
		||||
golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
 | 
			
		||||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
 | 
			
		||||
golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=
 | 
			
		||||
golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
 | 
			
		||||
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
 | 
			
		||||
golang.org/x/term v0.19.0 h1:+ThwsDv+tYfnJFhF4L8jITxu1tdTWRTZpdsWgEgjL6Q=
 | 
			
		||||
golang.org/x/term v0.19.0/go.mod h1:2CuTdWZ7KHSQwUzKva0cbMg6q2DMI3Mmxp+gKJbskEk=
 | 
			
		||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
 | 
			
		||||
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
 | 
			
		||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
 | 
			
		||||
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
 | 
			
		||||
golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
 | 
			
		||||
golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
 | 
			
		||||
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
 | 
			
		||||
golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
 | 
			
		||||
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
 | 
			
		||||
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
 | 
			
		||||
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 h1:vVKdlvoWBphwdxWKrFZEuM0kGgGLxUOYcY4U/2Vjg44=
 | 
			
		||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
 | 
			
		||||
golang.org/x/tools v0.7.0 h1:W4OVu8VVOaIO0yzWMNdepAulS7YfoS3Zabrm8DOXXU4=
 | 
			
		||||
golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s=
 | 
			
		||||
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
 | 
			
		||||
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
 | 
			
		||||
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
 | 
			
		||||
golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
 | 
			
		||||
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
 | 
			
		||||
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
 | 
			
		||||
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
 | 
			
		||||
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
 | 
			
		||||
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
 | 
			
		||||
golang.org/x/tools v0.18.0 h1:k8NLag8AGHnn+PHbl7g43CtqZAwG60vZkLqgyZgIHgQ=
 | 
			
		||||
golang.org/x/tools v0.18.0/go.mod h1:GL7B4CwcLLeo59yx/9UWWuNOW1n3VZ4f5axWfML7Lcg=
 | 
			
		||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
 | 
			
		||||
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
 | 
			
		||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
 | 
			
		||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
 | 
			
		||||
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
 | 
			
		||||
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
 | 
			
		||||
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
 | 
			
		||||
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
 | 
			
		||||
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
 | 
			
		||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 h1:bVf09lpb+OJbByTj913DRJioFFAjf/ZGxEz7MajTp2U=
 | 
			
		||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98/go.mod h1:TUfxEVdsvPg18p6AslUXFoLdpED4oBnGwyqk3dV1XzM=
 | 
			
		||||
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
 | 
			
		||||
google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
 | 
			
		||||
google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
 | 
			
		||||
google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
 | 
			
		||||
google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc=
 | 
			
		||||
google.golang.org/grpc v1.58.3 h1:BjnpXut1btbtgN/6sp+brB2Kbm2LjNXnidYujAVbSoQ=
 | 
			
		||||
google.golang.org/grpc v1.58.3/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0=
 | 
			
		||||
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
 | 
			
		||||
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
 | 
			
		||||
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
 | 
			
		||||
google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
 | 
			
		||||
google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
 | 
			
		||||
google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
 | 
			
		||||
google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
 | 
			
		||||
google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w=
 | 
			
		||||
google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
 | 
			
		||||
google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
 | 
			
		||||
google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI=
 | 
			
		||||
google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
 | 
			
		||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
 | 
			
		||||
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
 | 
			
		||||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
 | 
			
		||||
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
 | 
			
		||||
gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
 | 
			
		||||
gopkg.in/square/go-jose.v2 v2.5.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI=
 | 
			
		||||
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
 | 
			
		||||
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
 | 
			
		||||
gopkg.in/yaml.v1 v1.0.0-20140924161607-9f9df34309c0 h1:POO/ycCATvegFmVuPpQzZFJ+pGZeX22Ufu6fibxDVjU=
 | 
			
		||||
@@ -246,5 +455,8 @@ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C
 | 
			
		||||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
 | 
			
		||||
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
 | 
			
		||||
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
 | 
			
		||||
gotest.tools/v3 v3.4.0 h1:ZazjZUfuVeZGLAmlKKuyv3IKP5orXcwtOwDQH6YVr6o=
 | 
			
		||||
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
 | 
			
		||||
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
 | 
			
		||||
howett.net/plist v1.0.0 h1:7CrbWYbPPO/PyNy38b2EB/+gYbjCe2DXBxgtOOZbSQM=
 | 
			
		||||
howett.net/plist v1.0.0/go.mod h1:lqaXoTrLY4hg8tnEzNru53gicrbv7rrk+2xJA/7hw9g=
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										312
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										312
									
								
								main.go
									
									
									
									
									
								
							@@ -3,290 +3,102 @@ package main
 | 
			
		||||
import (
 | 
			
		||||
	"fmt"
 | 
			
		||||
	"os"
 | 
			
		||||
	"os/exec"
 | 
			
		||||
	"path/filepath"
 | 
			
		||||
	"strings"
 | 
			
		||||
	"time"
 | 
			
		||||
 | 
			
		||||
	"github.com/gofrs/uuid"
 | 
			
		||||
	"github.com/jaypipes/ghw"
 | 
			
		||||
	"github.com/jaypipes/ghw/pkg/block"
 | 
			
		||||
	configpkg "github.com/kairos-io/kcrypt/pkg/config"
 | 
			
		||||
	"github.com/rs/zerolog"
 | 
			
		||||
 | 
			
		||||
	"github.com/kairos-io/kcrypt/pkg/lib"
 | 
			
		||||
	cp "github.com/otiai10/copy"
 | 
			
		||||
	"github.com/urfave/cli"
 | 
			
		||||
	"github.com/urfave/cli/v2"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
var Version = "v0.0.0-dev"
 | 
			
		||||
 | 
			
		||||
func waitdevice(device string, attempts int) error {
 | 
			
		||||
	for tries := 0; tries < attempts; tries++ {
 | 
			
		||||
		_, err := sh("udevadm settle")
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			return err
 | 
			
		||||
		}
 | 
			
		||||
		_, err = os.Lstat(device)
 | 
			
		||||
		if !os.IsNotExist(err) {
 | 
			
		||||
			return nil
 | 
			
		||||
		}
 | 
			
		||||
		time.Sleep(1 * time.Second)
 | 
			
		||||
	}
 | 
			
		||||
	return fmt.Errorf("no device found")
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func createLuks(dev, password, version string, cryptsetupArgs ...string) error {
 | 
			
		||||
	if version == "" {
 | 
			
		||||
		version = "luks2"
 | 
			
		||||
	}
 | 
			
		||||
	args := []string{"luksFormat", "--type", version, "--iter-time", "5", "-q", dev}
 | 
			
		||||
	args = append(args, cryptsetupArgs...)
 | 
			
		||||
	cmd := exec.Command("cryptsetup", args...)
 | 
			
		||||
	cmd.Stdin = strings.NewReader(password)
 | 
			
		||||
	cmd.Stdout = os.Stdout
 | 
			
		||||
	cmd.Stderr = os.Stderr
 | 
			
		||||
	err := cmd.Run()
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// TODO: A crypt disk utility to call after install, that with discovery discoveries the password that should be used
 | 
			
		||||
// this function should delete COS_PERSISTENT. delete the partition and create a luks+type in place.
 | 
			
		||||
 | 
			
		||||
// Take a part label, and recreates it with LUKS. IT OVERWRITES DATA!
 | 
			
		||||
// On success, it returns a machine parseable string with the partition information
 | 
			
		||||
// (label:name:uuid) so that it can be stored by the caller for later use.
 | 
			
		||||
// This is because the label of the encrypted partition is not accessible unless
 | 
			
		||||
// the partition is decrypted first and the uuid changed after encryption so
 | 
			
		||||
// any stored information needs to be updated (by the caller).
 | 
			
		||||
func luksify(label string) (string, error) {
 | 
			
		||||
	// blkid
 | 
			
		||||
	persistent, b, err := findPartition(label)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return "", err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	pass, err := lib.GetPassword(b)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return "", err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	persistent = fmt.Sprintf("/dev/%s", persistent)
 | 
			
		||||
	devMapper := fmt.Sprintf("/dev/mapper/%s", b.Name)
 | 
			
		||||
	partUUID := uuid.NewV5(uuid.NamespaceURL, label)
 | 
			
		||||
 | 
			
		||||
	if err := createLuks(persistent, pass, "luks1", []string{"--uuid", partUUID.String()}...); err != nil {
 | 
			
		||||
		return "", err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if err := lib.LuksUnlock(persistent, b.Name, pass); err != nil {
 | 
			
		||||
		return "", err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if err := waitdevice(devMapper, 10); err != nil {
 | 
			
		||||
		return "", err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	cmd := fmt.Sprintf("mkfs.ext4 -L %s %s", label, devMapper)
 | 
			
		||||
	out, err := sh(cmd)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return "", fmt.Errorf("err: %w, out: %s", err, out)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	out2, err := sh(fmt.Sprintf("cryptsetup close %s", b.Name))
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return "", fmt.Errorf("err: %w, out: %s", err, out2)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return configpkg.PartitionToString(b), nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func findPartition(label string) (string, *block.Partition, error) {
 | 
			
		||||
	b, err := ghw.Block()
 | 
			
		||||
	if err == nil {
 | 
			
		||||
		for _, disk := range b.Disks {
 | 
			
		||||
			for _, p := range disk.Partitions {
 | 
			
		||||
				if p.FilesystemLabel == label {
 | 
			
		||||
					return p.Name, p, nil
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	} else {
 | 
			
		||||
		return "", nil, err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return "", nil, fmt.Errorf("not found")
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func sh(c string) (string, error) {
 | 
			
		||||
	o, err := exec.Command("/bin/sh", "-c", c).CombinedOutput()
 | 
			
		||||
	return string(o), err
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const (
 | 
			
		||||
	GZType   = "gz"
 | 
			
		||||
	XZType   = "xz"
 | 
			
		||||
	LZMAType = "lzma"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// TODO: replace with golang native code
 | 
			
		||||
func detect(archive string) (string, error) {
 | 
			
		||||
	out, err := sh(fmt.Sprintf("file %s", archive))
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return "", err
 | 
			
		||||
	}
 | 
			
		||||
	out = strings.ToLower(out)
 | 
			
		||||
	if strings.Contains(out, "xz") {
 | 
			
		||||
		return XZType, nil
 | 
			
		||||
 | 
			
		||||
	} else if strings.Contains(out, "lzma") {
 | 
			
		||||
		return LZMAType, nil
 | 
			
		||||
 | 
			
		||||
	} else if strings.Contains(out, "gz") {
 | 
			
		||||
		return GZType, nil
 | 
			
		||||
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return "", fmt.Errorf("Unknown")
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// TODO: replace with golang native code
 | 
			
		||||
func extractInitrd(initrd string, dst string) error {
 | 
			
		||||
	var out string
 | 
			
		||||
	var err error
 | 
			
		||||
	err = os.MkdirAll(dst, os.ModePerm)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	format, err := detect(initrd)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
	if format == XZType || format == LZMAType {
 | 
			
		||||
		out, err = sh(fmt.Sprintf("cd %s && xz -dc <  %s | cpio -idmv", dst, initrd))
 | 
			
		||||
	} else if format == GZType {
 | 
			
		||||
		out, err = sh(fmt.Sprintf("cd %s && zcat %s | cpio -idmv", dst, initrd))
 | 
			
		||||
	}
 | 
			
		||||
	fmt.Println(out)
 | 
			
		||||
 | 
			
		||||
	return err
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func createInitrd(initrd string, src string, format string) error {
 | 
			
		||||
	fmt.Printf("Creating '%s' from '%s' as '%s'\n", initrd, src, format)
 | 
			
		||||
 | 
			
		||||
	if _, err := os.Stat(src); err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
	var err error
 | 
			
		||||
	var out string
 | 
			
		||||
	if format == XZType {
 | 
			
		||||
		out, err = sh(fmt.Sprintf("cd %s && find . 2>/dev/null | cpio -H newc --quiet --null -o -R root:root | xz -0 --check=crc32 > %s", src, initrd))
 | 
			
		||||
	} else if format == GZType {
 | 
			
		||||
		out, err = sh(fmt.Sprintf("cd %s && find . | cpio -H newc -o -R root:root | gzip -9 > %s", src, initrd))
 | 
			
		||||
	} else if format == LZMAType {
 | 
			
		||||
		out, err = sh(fmt.Sprintf("cd %s && find . 2>/dev/null | cpio -H newc -o -R root:root | xz -9 --format=lzma > %s", src, initrd))
 | 
			
		||||
	}
 | 
			
		||||
	fmt.Println(out)
 | 
			
		||||
 | 
			
		||||
	return err
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// TODO: A inject initramfs command to add the discovery e.g. to use inside Dockerfiles
 | 
			
		||||
 | 
			
		||||
func injectInitrd(initrd string, file, dst string) error {
 | 
			
		||||
 | 
			
		||||
	fmt.Printf("Injecting '%s' as '%s' into '%s'\n", file, dst, initrd)
 | 
			
		||||
	format, err := detect(initrd)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
	tmp, err := os.MkdirTemp("", "kcrypt")
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return fmt.Errorf("cannot create tempdir, %s", err)
 | 
			
		||||
	}
 | 
			
		||||
	defer os.RemoveAll(tmp)
 | 
			
		||||
 | 
			
		||||
	fmt.Printf("Extracting '%s' in '%s' ...\n", initrd, tmp)
 | 
			
		||||
	if err := extractInitrd(initrd, tmp); err != nil {
 | 
			
		||||
		return fmt.Errorf("cannot extract initrd, %s", err)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	d := filepath.Join(tmp, dst)
 | 
			
		||||
	fmt.Printf("Copying '%s' in '%s' ...\n", file, d)
 | 
			
		||||
	if err := cp.Copy(file, d); err != nil {
 | 
			
		||||
		return fmt.Errorf("cannot copy file, %s", err)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return createInitrd(initrd, tmp, format)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// TODO: a custom toolkit version, to build out initrd pre-built with this component
 | 
			
		||||
 | 
			
		||||
func main() {
 | 
			
		||||
	app := &cli.App{
 | 
			
		||||
		Name:        "kairos-kcrypt",
 | 
			
		||||
		Version:     Version,
 | 
			
		||||
		Author:      "Ettore Di Giacinto",
 | 
			
		||||
		Authors:     []*cli.Author{&cli.Author{Name: "Ettore Di Giacinto"}},
 | 
			
		||||
		Usage:       "kairos escrow key agent component",
 | 
			
		||||
		Description: ``,
 | 
			
		||||
		UsageText:   ``,
 | 
			
		||||
		Copyright:   "Ettore Di Giacinto",
 | 
			
		||||
		Commands: []cli.Command{
 | 
			
		||||
			{
 | 
			
		||||
 | 
			
		||||
				Name: "extract-initrd",
 | 
			
		||||
				Action: func(c *cli.Context) error {
 | 
			
		||||
					if c.NArg() != 2 {
 | 
			
		||||
						return fmt.Errorf("requires 3 args. initrd,, dst")
 | 
			
		||||
					}
 | 
			
		||||
					return extractInitrd(c.Args()[0], c.Args()[1])
 | 
			
		||||
				},
 | 
			
		||||
			},
 | 
			
		||||
		Commands: []*cli.Command{
 | 
			
		||||
			{
 | 
			
		||||
 | 
			
		||||
				Name:        "encrypt",
 | 
			
		||||
				Description: "Encrypts a partition",
 | 
			
		||||
				Usage:       "Encrypts a partition",
 | 
			
		||||
				ArgsUsage:   "kcrypt [--tpm] [--tpm-pcrs] [--public-key-pcrs] LABEL",
 | 
			
		||||
				Flags: []cli.Flag{
 | 
			
		||||
					&cli.BoolFlag{
 | 
			
		||||
						Name:  "tpm",
 | 
			
		||||
						Usage: "Use TPM measurements to lock the partition",
 | 
			
		||||
					},
 | 
			
		||||
					&cli.StringSliceFlag{
 | 
			
		||||
						Name:  "tpm-pcrs",
 | 
			
		||||
						Usage: "tpm pcrs to bind to (single measurement) . Only applies when --tpm is also set.",
 | 
			
		||||
					},
 | 
			
		||||
					&cli.StringSliceFlag{
 | 
			
		||||
						Name:  "public-key-pcrs",
 | 
			
		||||
						Usage: "public key pcrs to bind to (policy). Only applies when --tpm is also set.",
 | 
			
		||||
						Value: cli.NewStringSlice("11"),
 | 
			
		||||
					},
 | 
			
		||||
				},
 | 
			
		||||
				Action: func(c *cli.Context) error {
 | 
			
		||||
					var err error
 | 
			
		||||
					var out string
 | 
			
		||||
					if c.NArg() != 1 {
 | 
			
		||||
						return fmt.Errorf("requires 1 arg, the partition label")
 | 
			
		||||
					}
 | 
			
		||||
					out, err := luksify(c.Args().First())
 | 
			
		||||
					log := zerolog.New(os.Stdout).With().Timestamp().Logger()
 | 
			
		||||
					if c.Bool("tpm") {
 | 
			
		||||
						err = lib.LuksifyMeasurements(c.Args().First(), c.StringSlice("tpm-pcrs"), c.StringSlice("public-key-pcrs"), log)
 | 
			
		||||
					} else {
 | 
			
		||||
						out, err = lib.Luksify(c.Args().First(), log)
 | 
			
		||||
						fmt.Println(out)
 | 
			
		||||
					}
 | 
			
		||||
					if err != nil {
 | 
			
		||||
						return err
 | 
			
		||||
					}
 | 
			
		||||
					fmt.Println(out)
 | 
			
		||||
 | 
			
		||||
					return nil
 | 
			
		||||
				},
 | 
			
		||||
			},
 | 
			
		||||
 | 
			
		||||
			{
 | 
			
		||||
				Name:        "unlock-all",
 | 
			
		||||
				UsageText:   "unlock-all",
 | 
			
		||||
				Usage:       "Try to unlock all LUKS partitions",
 | 
			
		||||
				Description: "Typically run during initrd to unlock all the LUKS partitions found",
 | 
			
		||||
				ArgsUsage:   "kcrypt [--tpm] unlock-all",
 | 
			
		||||
				Flags: []cli.Flag{
 | 
			
		||||
					&cli.BoolFlag{
 | 
			
		||||
						Name:  "tpm",
 | 
			
		||||
						Usage: "Use TPM to unlock the partition",
 | 
			
		||||
					},
 | 
			
		||||
				},
 | 
			
		||||
				Action: func(c *cli.Context) error {
 | 
			
		||||
					return lib.UnlockAll(c.Bool("tpm"))
 | 
			
		||||
				},
 | 
			
		||||
			},
 | 
			
		||||
			{
 | 
			
		||||
 | 
			
		||||
				Name: "inject-initrd",
 | 
			
		||||
				Name:   "extract-initrd",
 | 
			
		||||
				Hidden: true,
 | 
			
		||||
				Action: func(c *cli.Context) error {
 | 
			
		||||
					if c.NArg() != 2 {
 | 
			
		||||
						return fmt.Errorf("requires 3 args. initrd,, dst")
 | 
			
		||||
					}
 | 
			
		||||
					return lib.ExtractInitrd(c.Args().First(), c.Args().Get(1))
 | 
			
		||||
				},
 | 
			
		||||
			},
 | 
			
		||||
			{
 | 
			
		||||
				Name:   "inject-initrd",
 | 
			
		||||
				Hidden: true,
 | 
			
		||||
				Action: func(c *cli.Context) error {
 | 
			
		||||
					if c.NArg() != 3 {
 | 
			
		||||
						return fmt.Errorf("requires 3 args. initrd, srcfile, dst")
 | 
			
		||||
					}
 | 
			
		||||
					return injectInitrd(c.Args()[0], c.Args()[1], c.Args()[2])
 | 
			
		||||
				},
 | 
			
		||||
			},
 | 
			
		||||
			{
 | 
			
		||||
				Name:      "unlock-all",
 | 
			
		||||
				UsageText: "unlock-all",
 | 
			
		||||
				Usage:     "Try to unlock all LUKS partitions",
 | 
			
		||||
				Description: `
 | 
			
		||||
Typically run during initrd to unlock all the LUKS partitions found
 | 
			
		||||
		`,
 | 
			
		||||
				ArgsUsage: "kcrypt unlock-all",
 | 
			
		||||
				Flags: []cli.Flag{
 | 
			
		||||
 | 
			
		||||
					&cli.StringFlag{},
 | 
			
		||||
				},
 | 
			
		||||
				Action: func(c *cli.Context) error {
 | 
			
		||||
					return lib.UnlockAll()
 | 
			
		||||
					return lib.InjectInitrd(c.Args().First(), c.Args().Get(1), c.Args().Get(2))
 | 
			
		||||
				},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
 
 | 
			
		||||
@@ -9,7 +9,7 @@ import (
 | 
			
		||||
 | 
			
		||||
	"github.com/gofrs/uuid"
 | 
			
		||||
	"github.com/jaypipes/ghw/pkg/block"
 | 
			
		||||
	"github.com/kairos-io/kairos/pkg/config/collector"
 | 
			
		||||
	"github.com/kairos-io/kairos-sdk/collector"
 | 
			
		||||
	"github.com/pkg/errors"
 | 
			
		||||
	"gopkg.in/yaml.v1"
 | 
			
		||||
)
 | 
			
		||||
@@ -48,13 +48,15 @@ func partitionDataFromString(partitionStr string) (string, string, error) {
 | 
			
		||||
func GetConfiguration(configDirs []string) (Config, error) {
 | 
			
		||||
	var result Config
 | 
			
		||||
 | 
			
		||||
	o := &collector.Options{}
 | 
			
		||||
	o := &collector.Options{MergeBootCMDLine: false}
 | 
			
		||||
 | 
			
		||||
	if err := o.Apply(collector.Directories(configDirs...), collector.NoLogs); err != nil {
 | 
			
		||||
		return result, err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	c, err := collector.Scan(o)
 | 
			
		||||
	c, err := collector.Scan(o, func(d []byte) ([]byte, error) {
 | 
			
		||||
		return d, nil
 | 
			
		||||
	})
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return result, err
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
@@ -6,7 +6,7 @@ import (
 | 
			
		||||
	. "github.com/onsi/ginkgo/v2"
 | 
			
		||||
	. "github.com/onsi/gomega"
 | 
			
		||||
 | 
			
		||||
	"github.com/kairos-io/kairos/pkg/config/collector"
 | 
			
		||||
	"github.com/kairos-io/kairos-sdk/collector"
 | 
			
		||||
	configpkg "github.com/kairos-io/kcrypt/pkg/config"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										104
									
								
								pkg/lib/initrd.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										104
									
								
								pkg/lib/initrd.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,104 @@
 | 
			
		||||
package lib
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"fmt"
 | 
			
		||||
	"os"
 | 
			
		||||
	"path/filepath"
 | 
			
		||||
	"strings"
 | 
			
		||||
 | 
			
		||||
	cp "github.com/otiai10/copy"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
const (
 | 
			
		||||
	GZType   = "gz"
 | 
			
		||||
	XZType   = "xz"
 | 
			
		||||
	LZMAType = "lzma"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func createInitrd(initrd string, src string, format string) error {
 | 
			
		||||
	fmt.Printf("Creating '%s' from '%s' as '%s'\n", initrd, src, format)
 | 
			
		||||
 | 
			
		||||
	if _, err := os.Stat(src); err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
	var err error
 | 
			
		||||
	var out string
 | 
			
		||||
	if format == XZType {
 | 
			
		||||
		out, err = SH(fmt.Sprintf("cd %s && find . 2>/dev/null | cpio -H newc --quiet --null -o -R root:root | xz -0 --check=crc32 > %s", src, initrd))
 | 
			
		||||
	} else if format == GZType {
 | 
			
		||||
		out, err = SH(fmt.Sprintf("cd %s && find . | cpio -H newc -o -R root:root | gzip -9 > %s", src, initrd))
 | 
			
		||||
	} else if format == LZMAType {
 | 
			
		||||
		out, err = SH(fmt.Sprintf("cd %s && find . 2>/dev/null | cpio -H newc -o -R root:root | xz -9 --format=lzma > %s", src, initrd))
 | 
			
		||||
	}
 | 
			
		||||
	fmt.Println(out)
 | 
			
		||||
 | 
			
		||||
	return err
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func InjectInitrd(initrd string, file, dst string) error {
 | 
			
		||||
	fmt.Printf("Injecting '%s' as '%s' into '%s'\n", file, dst, initrd)
 | 
			
		||||
	format, err := detect(initrd)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
	tmp, err := os.MkdirTemp("", "kcrypt")
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return fmt.Errorf("cannot create tempdir, %s", err)
 | 
			
		||||
	}
 | 
			
		||||
	defer os.RemoveAll(tmp)
 | 
			
		||||
 | 
			
		||||
	fmt.Printf("Extracting '%s' in '%s' ...\n", initrd, tmp)
 | 
			
		||||
	if err := ExtractInitrd(initrd, tmp); err != nil {
 | 
			
		||||
		return fmt.Errorf("cannot extract initrd, %s", err)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	d := filepath.Join(tmp, dst)
 | 
			
		||||
	fmt.Printf("Copying '%s' in '%s' ...\n", file, d)
 | 
			
		||||
	if err := cp.Copy(file, d); err != nil {
 | 
			
		||||
		return fmt.Errorf("cannot copy file, %s", err)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return createInitrd(initrd, tmp, format)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func ExtractInitrd(initrd string, dst string) error {
 | 
			
		||||
	var out string
 | 
			
		||||
	var err error
 | 
			
		||||
	err = os.MkdirAll(dst, os.ModePerm)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	format, err := detect(initrd)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
	if format == XZType || format == LZMAType {
 | 
			
		||||
		out, err = SH(fmt.Sprintf("cd %s && xz -dc <  %s | cpio -idmv", dst, initrd))
 | 
			
		||||
	} else if format == GZType {
 | 
			
		||||
		out, err = SH(fmt.Sprintf("cd %s && zcat %s | cpio -idmv", dst, initrd))
 | 
			
		||||
	}
 | 
			
		||||
	fmt.Println(out)
 | 
			
		||||
 | 
			
		||||
	return err
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func detect(archive string) (string, error) {
 | 
			
		||||
	out, err := SH(fmt.Sprintf("file %s", archive))
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return "", err
 | 
			
		||||
	}
 | 
			
		||||
	out = strings.ToLower(out)
 | 
			
		||||
	if strings.Contains(out, "xz") {
 | 
			
		||||
		return XZType, nil
 | 
			
		||||
 | 
			
		||||
	} else if strings.Contains(out, "lzma") {
 | 
			
		||||
		return LZMAType, nil
 | 
			
		||||
 | 
			
		||||
	} else if strings.Contains(out, "gz") {
 | 
			
		||||
		return GZType, nil
 | 
			
		||||
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return "", fmt.Errorf("Unknown")
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										232
									
								
								pkg/lib/lock.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										232
									
								
								pkg/lib/lock.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,232 @@
 | 
			
		||||
package lib
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"bytes"
 | 
			
		||||
	"fmt"
 | 
			
		||||
	"math/rand"
 | 
			
		||||
	"os"
 | 
			
		||||
	"os/exec"
 | 
			
		||||
	"strings"
 | 
			
		||||
	"syscall"
 | 
			
		||||
	"time"
 | 
			
		||||
 | 
			
		||||
	"github.com/gofrs/uuid"
 | 
			
		||||
	"github.com/jaypipes/ghw"
 | 
			
		||||
	"github.com/jaypipes/ghw/pkg/block"
 | 
			
		||||
	configpkg "github.com/kairos-io/kcrypt/pkg/config"
 | 
			
		||||
	"github.com/rs/zerolog"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func CreateLuks(dev, password string, cryptsetupArgs ...string) error {
 | 
			
		||||
	args := []string{"luksFormat", "--type", "luks2", "--iter-time", "5", "-q", dev}
 | 
			
		||||
	args = append(args, cryptsetupArgs...)
 | 
			
		||||
	cmd := exec.Command("cryptsetup", args...)
 | 
			
		||||
	cmd.Stdin = strings.NewReader(password)
 | 
			
		||||
	cmd.Stdout = os.Stdout
 | 
			
		||||
	cmd.Stderr = os.Stderr
 | 
			
		||||
	err := cmd.Run()
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var seededRand = rand.New(rand.NewSource(time.Now().UnixNano()))
 | 
			
		||||
 | 
			
		||||
func getRandomString(length int) string {
 | 
			
		||||
	const charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
 | 
			
		||||
	b := make([]byte, length)
 | 
			
		||||
	for i := range b {
 | 
			
		||||
		b[i] = charset[seededRand.Intn(len(charset))]
 | 
			
		||||
	}
 | 
			
		||||
	return string(b)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Luksify Take a part label, and recreates it with LUKS. IT OVERWRITES DATA!
 | 
			
		||||
// On success, it returns a machine parseable string with the partition information
 | 
			
		||||
// (label:name:uuid) so that it can be stored by the caller for later use.
 | 
			
		||||
// This is because the label of the encrypted partition is not accessible unless
 | 
			
		||||
// the partition is decrypted first and the uuid changed after encryption so
 | 
			
		||||
// any stored information needs to be updated (by the caller).
 | 
			
		||||
func Luksify(label string, logger zerolog.Logger) (string, error) {
 | 
			
		||||
	var pass string
 | 
			
		||||
 | 
			
		||||
	// Make sure ghw will see all partitions correctly.
 | 
			
		||||
	// older versions don't have --type=all. Try the simpler version then.
 | 
			
		||||
	out, err := SH("udevadm trigger --type=all || udevadm trigger")
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return "", fmt.Errorf("udevadm trigger failed: %w, out: %s", err, out)
 | 
			
		||||
	}
 | 
			
		||||
	syscall.Sync()
 | 
			
		||||
 | 
			
		||||
	part, b, err := FindPartition(label)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		logger.Err(err).Msg("find partition")
 | 
			
		||||
		return "", err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	pass, err = GetPassword(b)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		logger.Err(err).Msg("get password")
 | 
			
		||||
		return "", err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	mapper := fmt.Sprintf("/dev/mapper/%s", b.Name)
 | 
			
		||||
	device := fmt.Sprintf("/dev/%s", part)
 | 
			
		||||
	partUUID := uuid.NewV5(uuid.NamespaceURL, label)
 | 
			
		||||
	extraArgs := []string{"--uuid", partUUID.String()}
 | 
			
		||||
 | 
			
		||||
	if err := CreateLuks(device, pass, extraArgs...); err != nil {
 | 
			
		||||
		logger.Err(err).Msg("create luks")
 | 
			
		||||
		return "", err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	err = formatLuks(device, b.Name, mapper, label, pass, logger)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		logger.Err(err).Msg("format luks")
 | 
			
		||||
		return "", err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return configpkg.PartitionToString(b), nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// LuksifyMeasurements takes a label and a list if public-keys and pcrs to bind and uses the measurements
 | 
			
		||||
// in the current node to encrypt the partition with those and bind those to the given pcrs
 | 
			
		||||
// this expects systemd 255 as it needs the SRK public key that systemd extracts
 | 
			
		||||
// Sets a random password, enrolls the policy, unlocks and formats the partition, closes it and tfinally removes the random password from it
 | 
			
		||||
// Note that there is a diff between the publicKeyPcrs and normal Pcrs
 | 
			
		||||
// The former links to a policy type that allows anything signed by that policy to unlcok the partitions so its
 | 
			
		||||
// really useful for binding to PCR11 which is the UKI measurements in order to be able to upgrade the system and still be able
 | 
			
		||||
// to unlock the partitions.
 | 
			
		||||
// The later binds to a SINGLE measurement, so if that changes, it will not unlock anything.
 | 
			
		||||
// This is useful for things like PCR7 which measures the secureboot state and certificates if you dont expect those to change during
 | 
			
		||||
// the whole lifetime of a machine
 | 
			
		||||
// It can also be used to bind to things like the firmware code or efi drivers that we dont expect to change
 | 
			
		||||
// default for publicKeyPcrs is 11
 | 
			
		||||
// default for pcrs is nothing, so it doesn't bind as we want to expand things like DBX and be able to blacklist certs and such
 | 
			
		||||
func LuksifyMeasurements(label string, publicKeyPcrs []string, pcrs []string, logger zerolog.Logger) error {
 | 
			
		||||
	// Make sure ghw will see all partitions correctly.
 | 
			
		||||
	// older versions don't have --type=all. Try the simpler version then.
 | 
			
		||||
	out, err := SH("udevadm trigger --type=all || udevadm trigger")
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return fmt.Errorf("udevadm trigger failed: %w, out: %s", err, out)
 | 
			
		||||
	}
 | 
			
		||||
	syscall.Sync()
 | 
			
		||||
 | 
			
		||||
	part, b, err := FindPartition(label)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// On TPM locking we generate a random password that will only be used here then discarded.
 | 
			
		||||
	// only unlocking method will be PCR values
 | 
			
		||||
	pass := getRandomString(32)
 | 
			
		||||
	mapper := fmt.Sprintf("/dev/mapper/%s", b.Name)
 | 
			
		||||
	device := fmt.Sprintf("/dev/%s", part)
 | 
			
		||||
	partUUID := uuid.NewV5(uuid.NamespaceURL, label)
 | 
			
		||||
 | 
			
		||||
	extraArgs := []string{"--uuid", partUUID.String()}
 | 
			
		||||
 | 
			
		||||
	if err := CreateLuks(device, pass, extraArgs...); err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if len(publicKeyPcrs) == 0 {
 | 
			
		||||
		publicKeyPcrs = []string{"11"}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	syscall.Sync()
 | 
			
		||||
 | 
			
		||||
	// Enroll PCR policy as a keyslot
 | 
			
		||||
	// We pass the current signature of the booted system to confirm that we would be able to unlock with the current booted system
 | 
			
		||||
	// That checks the policy against the signatures and fails if a UKI with those signatures wont be able to unlock the device
 | 
			
		||||
	// Files are generated by systemd automatically and are extracted from the UKI binary directly
 | 
			
		||||
	// public pem cert -> .pcrpkey section fo the elf file
 | 
			
		||||
	// signatures -> .pcrsig section of the elf file
 | 
			
		||||
	args := []string{
 | 
			
		||||
		"--tpm2-public-key=/run/systemd/tpm2-pcr-public-key.pem",
 | 
			
		||||
		fmt.Sprintf("--tpm2-public-key-pcrs=%s", strings.Join(publicKeyPcrs, "+")),
 | 
			
		||||
		fmt.Sprintf("--tpm2-pcrs=%s", strings.Join(pcrs, "+")),
 | 
			
		||||
		"--tpm2-signature=/run/systemd/tpm2-pcr-signature.json",
 | 
			
		||||
		"--tpm2-device-key=/run/systemd/tpm2-srk-public-key.tpm2b_public",
 | 
			
		||||
		device}
 | 
			
		||||
	logger.Debug().Str("args", strings.Join(args, " ")).Msg("running command")
 | 
			
		||||
	cmd := exec.Command("systemd-cryptenroll", args...)
 | 
			
		||||
	cmd.Env = append(cmd.Env, fmt.Sprintf("PASSWORD=%s", pass), "SYSTEMD_LOG_LEVEL=debug") // cannot pass it via stdin
 | 
			
		||||
	// Store the output into a buffer to log it in case we need it
 | 
			
		||||
	// debug output goes to stderr for some reason?
 | 
			
		||||
	stdOut := bytes.Buffer{}
 | 
			
		||||
	cmd.Stdout = &stdOut
 | 
			
		||||
	cmd.Stderr = &stdOut
 | 
			
		||||
	err = cmd.Run()
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		logger.Debug().Str("output", stdOut.String()).Msg("debug from cryptenroll")
 | 
			
		||||
		logger.Err(err).Msg("Enrolling measurements")
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	logger.Debug().Str("output", stdOut.String()).Msg("debug from cryptenroll")
 | 
			
		||||
 | 
			
		||||
	err = formatLuks(device, b.Name, mapper, label, pass, logger)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		logger.Err(err).Msg("format luks")
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Delete password slot from luks device
 | 
			
		||||
	out, err = SH(fmt.Sprintf("systemd-cryptenroll --wipe-slot=password %s", device))
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		logger.Err(err).Str("out", out).Msg("Removing password")
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// format luks will unlock the device, wait for it and then format it
 | 
			
		||||
// device is the actual /dev/X luks device
 | 
			
		||||
// label is the label we will set to the formatted partition
 | 
			
		||||
// password is the pass to unlock the device to be able to format the underlying mapper
 | 
			
		||||
func formatLuks(device, name, mapper, label, pass string, logger zerolog.Logger) error {
 | 
			
		||||
	l := logger.With().Str("device", device).Str("name", name).Str("mapper", mapper).Logger()
 | 
			
		||||
	l.Debug().Msg("unlock")
 | 
			
		||||
	if err := LuksUnlock(device, name, pass); err != nil {
 | 
			
		||||
		return fmt.Errorf("unlock err: %w", err)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	l.Debug().Msg("wait device")
 | 
			
		||||
	if err := Waitdevice(mapper, 10); err != nil {
 | 
			
		||||
		return fmt.Errorf("waitdevice err: %w", err)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	l.Debug().Msg("format")
 | 
			
		||||
	cmdFormat := fmt.Sprintf("mkfs.ext4 -L %s %s", label, mapper)
 | 
			
		||||
	out, err := SH(cmdFormat)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return fmt.Errorf("mkfs err: %w, out: %s", err, out)
 | 
			
		||||
	}
 | 
			
		||||
	l.Debug().Msg("close")
 | 
			
		||||
	out, err = SH(fmt.Sprintf("cryptsetup close %s", mapper))
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return fmt.Errorf("lock err: %w, out: %s", err, out)
 | 
			
		||||
	}
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func FindPartition(label string) (string, *block.Partition, error) {
 | 
			
		||||
	b, err := ghw.Block()
 | 
			
		||||
	if err == nil {
 | 
			
		||||
		for _, disk := range b.Disks {
 | 
			
		||||
			for _, p := range disk.Partitions {
 | 
			
		||||
				if p.FilesystemLabel == label {
 | 
			
		||||
					return p.Name, p, nil
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	} else {
 | 
			
		||||
		return "", nil, err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return "", nil, fmt.Errorf("not found label %s", label)
 | 
			
		||||
}
 | 
			
		||||
@@ -12,51 +12,76 @@ import (
 | 
			
		||||
	"github.com/kairos-io/kcrypt/pkg/bus"
 | 
			
		||||
	configpkg "github.com/kairos-io/kcrypt/pkg/config"
 | 
			
		||||
	"github.com/mudler/go-pluggable"
 | 
			
		||||
	"github.com/rs/zerolog"
 | 
			
		||||
	"github.com/rs/zerolog/log"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// UnlockAll Unlocks all encrypted devices found in the system
 | 
			
		||||
func UnlockAll() error {
 | 
			
		||||
func UnlockAll(tpm bool) error {
 | 
			
		||||
	logger := log.Logger
 | 
			
		||||
 | 
			
		||||
	return UnlockAllWithLogger(tpm, logger)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func UnlockAllWithLogger(tpm bool, logger zerolog.Logger) error {
 | 
			
		||||
	bus.Manager.Initialize()
 | 
			
		||||
 | 
			
		||||
	config, err := configpkg.GetConfiguration(configpkg.ConfigScanDirs)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		fmt.Printf("Warning: Could not read kcrypt configuration '%s'\n", err.Error())
 | 
			
		||||
		logger.Info().Msgf("Warning: Could not read kcrypt configuration '%s'\n", err.Error())
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	blk, err := ghw.Block()
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		fmt.Printf("Warning: Error reading partitions '%s \n", err.Error())
 | 
			
		||||
		logger.Warn().Msgf("Warning: Error reading partitions '%s \n", err.Error())
 | 
			
		||||
 | 
			
		||||
		return nil
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Some versions of udevadm don't support --settle (e.g. alpine)
 | 
			
		||||
	// and older versions don't have --type=all. Try the simpler version then.
 | 
			
		||||
	logger.Info().Msgf("triggering udev to populate disk info")
 | 
			
		||||
	_, err = utils.SH("udevadm trigger --type=all || udevadm trigger")
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	for _, disk := range blk.Disks {
 | 
			
		||||
		for _, p := range disk.Partitions {
 | 
			
		||||
			if p.Type == "crypto_LUKS" {
 | 
			
		||||
				// Get the luks UUID directly from cryptsetup
 | 
			
		||||
				volumeUUID, err := utils.SH(fmt.Sprintf("cryptsetup luksUUID %s", filepath.Join("/dev", p.Name)))
 | 
			
		||||
				logger.Info().Msgf("Got luks UUID %s for partition %s\n", volumeUUID, p.Name)
 | 
			
		||||
				if err != nil {
 | 
			
		||||
					return err
 | 
			
		||||
				}
 | 
			
		||||
				volumeUUID = strings.TrimSpace(volumeUUID)
 | 
			
		||||
				if volumeUUID == "" {
 | 
			
		||||
					fmt.Printf("No uuid for %s, skipping\n", p.Name)
 | 
			
		||||
					logger.Warn().Msgf("No uuid for %s, skipping\n", p.Name)
 | 
			
		||||
					continue
 | 
			
		||||
				}
 | 
			
		||||
				p.Label, err = config.GetLabelForUUID(volumeUUID)
 | 
			
		||||
				if err != nil {
 | 
			
		||||
					return err
 | 
			
		||||
				}
 | 
			
		||||
				// Check if device is already mounted
 | 
			
		||||
				// We mount it under /dev/mapper/DEVICE, so It's pretty easy to check
 | 
			
		||||
				if !utils.Exists(filepath.Join("/dev", "mapper", p.Name)) {
 | 
			
		||||
					fmt.Printf("Unmounted Luks found at '%s' LABEL '%s' \n", filepath.Join("/dev", p.Name), p.Label)
 | 
			
		||||
					err = UnlockDisk(p)
 | 
			
		||||
					if err != nil {
 | 
			
		||||
						fmt.Printf("Unlocking failed: '%s'\n", err.Error())
 | 
			
		||||
					logger.Info().Msgf("Unmounted Luks found at '%s' \n", filepath.Join("/dev", p.Name))
 | 
			
		||||
					if tpm {
 | 
			
		||||
						out, err := utils.SH(fmt.Sprintf("/usr/lib/systemd/systemd-cryptsetup attach %s %s - tpm2-device=auto", p.Name, filepath.Join("/dev", p.Name)))
 | 
			
		||||
						if err != nil {
 | 
			
		||||
							logger.Warn().Msgf("Unlocking failed: '%s'\n", err.Error())
 | 
			
		||||
							logger.Warn().Msgf("Unlocking failed, command output: '%s'\n", out)
 | 
			
		||||
						}
 | 
			
		||||
					} else {
 | 
			
		||||
						p.FilesystemLabel, err = config.GetLabelForUUID(volumeUUID)
 | 
			
		||||
						if err != nil {
 | 
			
		||||
							return err
 | 
			
		||||
						}
 | 
			
		||||
						err = UnlockDisk(p)
 | 
			
		||||
						if err != nil {
 | 
			
		||||
							logger.Warn().Msgf("Unlocking failed: '%s'\n", err.Error())
 | 
			
		||||
						}
 | 
			
		||||
					}
 | 
			
		||||
				} else {
 | 
			
		||||
					fmt.Printf("Device %s seems to be mounted at %s, skipping\n", filepath.Join("/dev", p.Name), filepath.Join("/dev", "mapper", p.Name))
 | 
			
		||||
					logger.Info().Msgf("Device %s seems to be mounted at %s, skipping\n", filepath.Join("/dev", p.Name), filepath.Join("/dev", "mapper", p.Name))
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
			}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										28
									
								
								pkg/lib/utils.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								pkg/lib/utils.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,28 @@
 | 
			
		||||
package lib
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"fmt"
 | 
			
		||||
	"os"
 | 
			
		||||
	"os/exec"
 | 
			
		||||
	"time"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func SH(c string) (string, error) {
 | 
			
		||||
	o, err := exec.Command("/bin/sh", "-c", c).CombinedOutput()
 | 
			
		||||
	return string(o), err
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func Waitdevice(device string, attempts int) error {
 | 
			
		||||
	for tries := 0; tries < attempts; tries++ {
 | 
			
		||||
		_, err := SH("udevadm settle")
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			return err
 | 
			
		||||
		}
 | 
			
		||||
		_, err = os.Lstat(device)
 | 
			
		||||
		if !os.IsNotExist(err) {
 | 
			
		||||
			return nil
 | 
			
		||||
		}
 | 
			
		||||
		time.Sleep(1 * time.Second)
 | 
			
		||||
	}
 | 
			
		||||
	return fmt.Errorf("no device found %s", device)
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										18
									
								
								renovate.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								renovate.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
{
 | 
			
		||||
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
 | 
			
		||||
  "extends": [
 | 
			
		||||
    "config:base"
 | 
			
		||||
  ],
 | 
			
		||||
  "schedule": [
 | 
			
		||||
    "after 11pm every weekday",
 | 
			
		||||
    "before 7am every weekday",
 | 
			
		||||
    "every weekend"
 | 
			
		||||
  ],
 | 
			
		||||
  "timezone": "Europe/Brussels",
 | 
			
		||||
  "packageRules": [
 | 
			
		||||
    {
 | 
			
		||||
      "matchUpdateTypes": ["patch"],
 | 
			
		||||
      "automerge": true
 | 
			
		||||
    }
 | 
			
		||||
  ]
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user